- Timestamp:
- 2015-05-12T21:47:35+12:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js
r27811 r29869 424 424 function callMetadataServer(callingFunction, url, responseFunction) 425 425 { 426 // rewrite URLs to call GS2Construct's SetMetadata service instead 427 url = url.replace("&c=", "&collection="); // c is a special param name for GS2Construct 428 url = url.replace(/(&|\?)([^=]*=)/g, "$1"+"s1.$2"); // prefix param names with "s1." 429 url = url.replace("cgi-bin/metadata-server.pl?", gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=SetMetadata&"); 430 431 426 432 $.ajax(url) 427 433 .success(function(response)
Note:
See TracChangeset
for help on using the changeset viewer.