Changeset 31556 for main


Ignore:
Timestamp:
2017-03-31T18:15:35+13:00 (7 years ago)
Author:
ak19
Message:

Adding the ability to turn on user comments from GLI. Off by default. Need to add usage instructions on wiki.

Location:
main/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/Format4gs3Manager.java

    r29037 r31556  
    111111        String DISPLAY_DEFAULT_FORMAT_TEMP = "" +
    112112        "<gsf:option name=\"TOC\" value=\"true\"/>" +
     113        "<gsf:option name=\"UserComments\" value=\"true\"/>" +
    113114        "<!--" +
    114115            "Overwriting this template allows you to change the heading of the document." +
  • main/trunk/greenstone2/collect/modelcol/etc/collectionConfig.xml

    r30536 r31556  
    146146        <format>
    147147            <gsf:option name="TOC" value="true"/>
    148 
     148            <gsf:option name="UserComments" value="false"/>
    149149            <!--
    150150                Overwriting this template allows you to change the heading of the document.
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/usercomments.xsl

    r31543 r31556  
    1010
    1111<xsl:template name="userCommentsSection">
    12 
     12 <xsl:if test="/page/pageResponse/format[@type='display']/gsf:option[@name='UserComments']/@value='true'">
    1313  <!-- 1. Make some variables available to javascript that the usercomments related js functions need -->
    1414  <gsf:variable name="d"><xsl:value-of select="/page/pageRequest/paramList/param[@name='d']/@value"/></gsf:variable>
     
    6868
    6969  </div>
    70 
     70 </xsl:if>
    7171</xsl:template>
    7272
Note: See TracChangeset for help on using the changeset viewer.