Ignore:
Timestamp:
2023-11-25T19:06:30+13:00 (7 months ago)
Author:
anupama
Message:
  1. For editing user comments with the document editor, I want to set metamode to override just once instead of for each docid (that is, for each docrecord). This didn't work before because the perl code didn't allow it as optional argument, although the actual set-metadata-array() perl subroutines were coded for it. 2. The Java code needs to allow an array of document records, without requiring that each docrecord contains a metatable field (a sub array of meta records). This is because the perl code set-metadata-array() subroutines allowed for this, but when set-metadata functionality started needing authentication/user editing powers (authentication goes through java, which then relays the command to perl), this pre-existing, optional way of setting metadata in the perl code wasn't opened up through java.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/documentedit_scripts_usercomments.js

    r38426 r38431  
    6868    docArray.push({
    6969        docid:docid,
    70         metatable:metatable,
    71         metamode:"override"
     70        metatable:metatable/*,
     71        metamode:"override"*/ // metamode set universally to override in
     72              // documentedit_scripts_util.js::processChangesLoop when change.type=editUserComments
    7273    });
    7374    }
Note: See TracChangeset for help on using the changeset viewer.