Ignore:
Timestamp:
2019-06-21T14:33:58+12:00 (5 years ago)
Author:
kjdon
Message:

source links now do have library/sites/localsite etc, so we don't need to remove the library part

File:
1 edited

Legend:

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

    r33114 r33182  
    11// 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"
     3var default_link_type = "source";
    34// use the appropriate one of these to override the default for particular collections.
    45var source_link_collections = new Array(); // or add list of collections like ["pdfberry", "mgppdemo"];
     
    557558    url = root_url+"/collection/"+doc["collection"]+"/document/"+doc["name"];
    558559    } else if (link_type == "source") {
    559     // remove library
    560     root_url = root_url.substring(0, root_url.lastIndexOf('/'));
    561560    url = root_url+"/sites/"+gs.xsltParams.site_name+"/collect/"+doc['collection']+"/index/assoc/"+doc["root_assocfilepath"]+"/"+doc["root_srclinkFile"];
    562561    }
Note: See TracChangeset for help on using the changeset viewer.