- Timestamp:
- 2019-06-21T14:33:58+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/berrybasket/berrycheckout.js
r33114 r33182 1 1 // The default link type in the basket - "document" = greenstone version of the document, "source" = link to source file eg pdf. 2 var default_link_type = "document"; // "source" or "document" 2 //var default_link_type = "document"; // "source" or "document" 3 var default_link_type = "source"; 3 4 // use the appropriate one of these to override the default for particular collections. 4 5 var source_link_collections = new Array(); // or add list of collections like ["pdfberry", "mgppdemo"]; … … 557 558 url = root_url+"/collection/"+doc["collection"]+"/document/"+doc["name"]; 558 559 } else if (link_type == "source") { 559 // remove library560 root_url = root_url.substring(0, root_url.lastIndexOf('/'));561 560 url = root_url+"/sites/"+gs.xsltParams.site_name+"/collect/"+doc['collection']+"/index/assoc/"+doc["root_assocfilepath"]+"/"+doc["root_srclinkFile"]; 562 561 }
Note:
See TracChangeset
for help on using the changeset viewer.