Ignore:
Timestamp:
2017-03-27T18:01:36+13:00 (7 years ago)
Author:
ak19
Message:

Some commits ahead of further changes: 1. Kathy came up with better name for GS2Construct.java method (to be refactored) that's more descriptive of the multiple tasks it performs. Removed unused paramter. 2. Javascript user_comments.js displays the heading for the comments section only when appropriate, which is when there is a comment history or when the form to add a comment is shown. Otherwise only the Add Comment link will be shown. 3. Changed core.css colours of links and headings in comments section to better match GS3. 4. document.xsl needs to display usercomments section not just for simple docs but also for wrapped docs.

Location:
main/trunk/greenstone3/web/interfaces/default/transform
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/usercomments.xsl

    r31537 r31540  
    2727  <div id="commentssection" class="centrediv">   
    2828    <div id="usercomments">
    29       <!-- The div that loads the user comments that were already submitted -->
    30       <div class="usercommentheading"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'usercomments.heading')"/></div>
     29      <!-- A heading for the comment section will be added here dynamically either if
     30       previously submitted comments exist, or if the form#usercommentform to add
     31       a new comment is displayed. Otherwise only the "Add Comments" link is shown. -->
     32      <xsl:comment>Existing comments will be loaded dynamically loaded into this div#usercomments</xsl:comment>
    3133    </div>
    3234
  • main/trunk/greenstone3/web/interfaces/default/transform/pages/document.xsl

    r31537 r31540  
    374374            <xsl:otherwise> <!-- display the standard greenstone document -->
    375375                <xsl:call-template name="wrappedDocument"/>
     376                <br /><xsl:call-template name="userCommentsSection"/>
    376377            </xsl:otherwise>
    377378        </xsl:choose>
Note: See TracChangeset for help on using the changeset viewer.