Changeset 33182

Show
Ignore:
Timestamp:
21.06.2019 14:33:58 (4 weeks ago)
Author:
kjdon
Message:

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

Files:
1 modified

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    }