Changeset 32300 for main

Show
Ignore:
Timestamp:
24.07.2018 11:59:41 (13 months ago)
Author:
kjdon
Message:

made gs document links restful - collection/demo/document/xxx, instead of a=d&d=xxx&c=demo

Files:
1 modified

Legend:

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

    r32298 r32300  
    383383    var link_type = getDefaultLinkType(doc["collection"]); 
    384384    if (link_type == "document") { 
    385     url = root_url+"?a=d&c="+doc["collection"]+"&d="+doc["name"]; 
     385    url = root_url+"/collection/"+doc["collection"]+"/document/"+doc["name"]; 
    386386    } else if (link_type == "source") {  
    387387    // remove library