Ignore:
Timestamp:
2017-03-24T21:37:12+13:00 (7 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/style/core.css

    r31530 r31537  
    12401240}
    12411241
     1242/* User comments area: display of existing user comments and display of the form and of the add user/logout links */
     1243
     1244#usercomments, #usercommentform, #usercommentlink a, #usercommentlogoutlink a {
     1245    font-family: sans-serif;
     1246    font-size: 12px;
     1247}
     1248
     1249#usercomments {
     1250    margin: 10px 0;
     1251}
     1252
     1253.usercommentheading {
     1254    font-weight: bold;
     1255    color: #006666;
     1256    border-top: solid 1px black;
     1257}
     1258
     1259.usercomment {
     1260    margin: 10px 0;
     1261}
     1262
     1263#usercommentlink, #usercommentlogoutlink {
     1264    margin: 10px 0 20px 0;
     1265}
     1266
     1267#usercommentlink a, #usercommentlogoutlink a {
     1268 text-decoration: none;
     1269 font-weight: bold;
     1270 color: #006666;
     1271}
     1272#usercommentlink a:visited, #usercommentlogoutlink a:visited {
     1273    color: #006666;
     1274}
     1275
     1276.centrediv {
     1277    width:50%;
     1278    margin: 0 auto;
     1279}
Note: See TracChangeset for help on using the changeset viewer.