Changeset 25284


Ignore:
Timestamp:
03/23/12 16:42:33 (9 years ago)
Author:
sjm84
Message:

Fixed several links

Location:
main/trunk/greenstone3/web/interfaces/oran/js/documentbasket
Files:
3 edited

Legend:

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

    r24656 r25284  
    124124
    125125var request_type = "GET";
    126 var docAddurlPath ="?a=pr&rt=r&ro=1&s=AddDocument&c=&s1.id=2&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=";
    127 var docDelurlPath ="?a=pr&rt=r&ro=1&s=DeleteDocument&c=&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=";
     126var docAddurlPath = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=AddDocument&c=&s1.id=2&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=";
     127var docDelurlPath = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=DeleteDocument&c=&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=";
    128128var postdata = null;
    129129
  • main/trunk/greenstone3/web/interfaces/oran/js/documentbasket/documentbasket.js

    r25096 r25284  
    1818   
    1919    var request_type = "GET";
    20     var url = "?a=pr&rt=r&ro=1&s=GetDocuments&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&c=";
     20    var url = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=GetDocuments&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&c=";
    2121
    2222    var responseSuccess = function(o){
     
    7676function clearBasket()
    7777{
    78     var delurlPath ="?a=pr&rt=r&ro=1&s=ClearDocuments&c=&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.c=" + gs.cgiParams.c;
     78    var delurlPath = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=ClearDocuments&c=&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.c=" + gs.cgiParams.c;
    7979    var callback =
    8080    {
     
    230230   
    231231    fullView.appendChild(document.createTextNode('Full View »'));
    232     fullView.setAttribute("href","?a=g&sa=documentbasket&c=&s=DisplayDocumentList&rt=r&p.c=" + collectionName);
     232    fullView.setAttribute("href", gs.xsltParams.library_name + "?a=g&sa=documentbasket&c=&s=DisplayDocumentList&rt=r&p.c=" + collectionName);
    233233    fullView.setAttribute("id","documentpagesFullViewLink");
    234234
     
    278278
    279279function addDocument(el){
    280     var addurl = "?a=pr&rt=r&ro=1&s=AddDocument&c=&s1.id=2&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=" + el.id;
     280    var addurl = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=AddDocument&c=&s1.id=2&o=XML&hhf=[{\"name\":\"Cache-Control\", \"value\":\"no-cache\"}]&s1.item=" + el.id;
    281281
    282282    var addSuccess = function(o){
  • main/trunk/greenstone3/web/interfaces/oran/js/documentbasket/documentcheckout.js

    r24510 r25284  
    149149        li.appendChild(img);
    150150       
    151         a.href ="?a=d&c="+doc['collection']+"&d="+doc['name'];
     151        a.href = gs.xsltParams.library_name + "?a=d&c="+doc['collection']+"&d="+doc['name'];
    152152       
    153153        if(window.interfaceName && window.interfaceName == "dev")
     
    397397
    398398function sendMail(){
    399     var url = "?a=pr&rt=r&ro=1&s=SendMail&c=";
     399    var url = gs.xsltParams.library_name + "?a=pr&rt=r&ro=1&s=SendMail&c=";
    400400    var request_type = "POST";
    401401    var postdata = "";
Note: See TracChangeset for help on using the changeset viewer.