Changeset 30659
- Timestamp:
- 2016-08-02T16:24:56+12:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js
r30617 r30659 424 424 function callMetadataServer(callingFunction, url, responseFunction) 425 425 { 426 var async_setting = true; // Internal processing of 'read' operations (get meta) is not order dependent 427 426 428 // If doing set- or remove- (not get-) metadata, then rewrite URLs to call GS2Construct's ModfiyMetadata service instead (which will ensure this only works when authenticated). 427 429 // From: … … 436 438 url = url.replace(/(&|\?)([^=]*=)/g, "$1"+"s1.$2"); // prefix param names with "s1." 437 439 url = url.replace("cgi-bin/metadata-server.pl?", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=ModifyMetadata&"); 438 console.log("@@@@@ URL is " + url); 440 441 //console.log("@@@@@ URL is " + url); 442 443 async_setting = false; // for 'write' operations (set/remove meta), we force sequential processing of the internal operation. 444 439 445 } // otherwise, such as for get- metadata operation, we proceed as before, which will not require authentication 440 441 $.ajax(url, {async: false}) 446 447 448 $.ajax(url, {async: async_setting}) 442 449 .success(function(response) 443 450 {
Note:
See TracChangeset
for help on using the changeset viewer.