Changeset 32857


Ignore:
Timestamp:
2019-03-05T14:22:22+13:00 (5 years ago)
Author:
ak19
Message:

Adding a comment that deletions to GPS.mapOverlay metadata are treated as changes not separately as deletions, and are recorded in doc.xml as [].

File:
1 edited

Legend:

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

    r32854 r32857  
    510510    }
    511511
    512     // Check for changes to any map editors in the document
    513     var modified_map_editors_data = getDocMapsEditDataForSaving(gs.cgiParams.c); // collection 
     512    // Check for changes to any map editors in the document
     513    // NOTE: At present, we don't maintain a list of deletions for the map editor:
     514    // GPS.mapOverlay data that has been removed is recorded as a change not a deletion,
     515    // with the metadata's new value being the string of an empty JSON array, [],
     516    // and entered as such into doc.xml.
     517    var modified_map_editors_data = getDocMapsEditDataForSaving(gs.cgiParams.c); // collection 
    514518    for(var i = 0; i < modified_map_editors_data.length; i++) {     
    515519        metadataChanges.push(modified_map_editors_data[i]); // of the form { collection: gs.cgiParams.c, docID: nodeID, name:"GSP.mapOverlay", metapos: 0, value: <stringifiedJSON> }
Note: See TracChangeset for help on using the changeset viewer.