Show
Ignore:
Timestamp:
24.03.2017 21:37:12 (3 years ago)
Author:
ak19
Message:

First commit for getting user comments working for GS3. It all works, but there's debugging statements still and haven't cleaned up commented out code. After that, would like to make POST rather than GET AJAX calls, so more refactoring required. 1. config_format.xsl is just minor spelling corrections. 2. header.xsl has a new function generateLogoutURL. 3. document.xsl imports and calls new usercomments.xsl to set up the user comments area. 4. New usercomments.js is imported by new usercomments.xsl, and sets up the interaction of the usercomments area. 5. javascript-global-functions.js now contains setMetadataArray and getMetadataArray functions to parallel what GS2 used in gsajaxapi.js, but for GS3 need to go through GS2Construct.processModifyMetadata() service in java code. 5. GS2Construct.java does different checking for users adding user comments versus users doing document editing. For the latter, the user needs to have editing permissions for the document. But any user is allowed to add comments on any accessible document. But ModifyMetadata? should not allow any other metadata to be modified other than meta fields. 6. New language strings for usercomment area and GS2Construct errors in the 2 changed properties files.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/classes/interface_default.properties

    r31381 r31537  
    141141 
    142142doc.map_nearby_docs=Show documents near here 
     143 
    143144maps.scrolllabel=Scroll through places 
    144145 
     
    146147external.text=The link you have selected is external to any of your currently selected collections. If you still wish to view this link and your browser has access to the Web, you can {0-go-forward-link} to this page; otherwise use your browsers 'back' button to return to the previous document. 
    147148external.go_forward=go forward 
     149 
     150######################################################### 
     151#  User Comments section (available on a document page) # 
     152######################################################### 
     153 
     154usercomments.username=User name 
     155usercomments.add=Add Comment 
     156usercomments.submit=Submit Comment 
     157usercomments.submitted=Comment Submitted 
     158usercomments.isempty=Comment was empty. 
     159usercomments.heading=Comments 
    148160 
    149161#####################