Ignore:
Timestamp:
2018-02-13T11:43:05+13:00 (6 years ago)
Author:
kjdon
Message:

added multivalued metadata input shortcut functionality. In documentedit_scripts you can specify which metadata fields are multivalued, and what the delimiter is. For these fields, the user can put a delimiter spearated list, and the values will get split and saved to the doc.xml file individually

File:
1 edited

Legend:

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

    r31909 r32132  
    3232var dcSubject_values = ["Kings", "Queens", "others"];
    3333*/
     34
     35/* The metadata specified in multiValuedMetadata array will be treated as a delimited list, using mvm_delimiter. On saving, the values will be separated and saved individually */
     36
     37var multiValuedMetadata = new Array(); // eg ["xx.Person", "xx.Location"];
     38var mvm_delimiter = ";";
    3439
    3540/************************
Note: See TracChangeset for help on using the changeset viewer.