Changeset 29876

Show
Ignore:
Timestamp:
13.05.2015 18:57:36 (4 years ago)
Author:
ak19
Message:

Helpful comments to yesterday's commit

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/javascript-global-functions.js

    r29869 r29876  
    424424function callMetadataServer(callingFunction, url, responseFunction) 
    425425{ 
    426     // rewrite URLs to call GS2Construct's SetMetadata service instead 
     426    // rewrite URLs to call GS2Construct's SetMetadata service instead.  
     427    // From: 
     428    // <gs3server>/cgi-bin/metadata-server.pl?a=set-archives-metadata&c=smallcol&site=localsite&d=HASH01454f31011f6b6b26eaf8d7&metaname=Title&metavalue=Moo&prevmetavalue=Blabla&metamode=override 
     429    // To: 
     430    // <gs3server>/library?a=g&rt=r&ro=1&s=SetMetadata&s1.collection=smallcol&s1.site=localsite&s1.d=HASH01454f31011f6b6b26eaf8d7&s1.metaname=Title&s1.metavalue=Moo&s1.prevmetavalue=Blabla&s1.metamode=override 
     431 
    427432    url = url.replace("&c=",  "&collection="); // c is a special param name for GS2Construct 
    428433    url = url.replace(/(&|\?)([^=]*=)/g, "$1"+"s1.$2"); // prefix param names with "s1." 
    429434    url = url.replace("cgi-bin/metadata-server.pl?",  gs.xsltParams.library_name + "?a=g&rt=r&ro=1&s=SetMetadata&"); 
    430435 
    431  
    432436    $.ajax(url) 
    433437    .success(function(response)