Changeset 25442

Show
Ignore:
Timestamp:
19.04.2012 16:14:05 (8 years ago)
Author:
sjm84
Message:

Some changes to allow for RESTful classifiers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/oran/js/classifier_scripts.js

    r25063 r25442  
    115115        var sectionToggle = document.getElementById("toggle" + sectionID); 
    116116        sectionToggle.setAttribute("src", gs.imageURLs.loading); 
    117  
    118         var url = document.URL; 
    119         url = url.replace(/(&|\?)cl=[a-z\.0-9]+/gi, "$1cl=" + sectionID + "&excerptid=div" + sectionID); 
     117         
     118        var url = gs.xsltParams.library_name + "/collection/" + gs.cgiParams.c + "/browse/" + sectionID.replace(/\./g, "/") + "?excerptid=div" + sectionID; 
    120119 
    121120        if(gs.cgiParams.berryBasket == "on")