Changeset 38194
- Timestamp:
- 2023-09-24T21:13:41+13:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js
r38189 r38194 1020 1020 } 1021 1021 1022 // metamode (such as accumulate) has no meaning when removingMetadata, 1023 // so best not make it an option to avoid confusing callers? 1024 gs.functions.removeMetadataArray = function(collection, site, docArray, /*metamode,*/ 1025 where, successResponseFunction, forceSync, errorResponseFunction) 1026 { 1027 if( typeof errorResponseFunction === 'undefined' ) { errorResponseFunction = null; } // force error callback to be defined: either null or has value 1028 1029 var payload = gs.functions.getComplexDataForMetadataServer("remove-metadata-array", collection, site, docArray, null/*metamode*/, where); 1030 1031 // set operations are generally synchronous, but allow calling function to force ajax call 1032 // to be synchronous or not. Default is synchronous, as it was for GS2 1033 if(forceSync == null) { 1034 forceSync = true; 1035 } 1036 1037 //console.log("cgi-bin/metadata-server.pl?"+params); 1038 1039 var response = gs.functions._callMetadataServer("Removing metadata from "+where, payload, successResponseFunction, errorResponseFunction, {"forceSync": forceSync, "requestMethod": "POST"}); 1040 1041 return response; 1042 } 1043 1022 1044 1023 1045 /***********************************************************
Note:
See TracChangeset
for help on using the changeset viewer.