Ignore:
Timestamp:
2017-03-20T11:33:00+13:00 (7 years ago)
Author:
kjdon
Message:

we want to keep p.s arg in the expand/contract contents links so that search term highlighting still works if we have got to that document from a search.

File:
1 edited

Legend:

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

    r31520 r31523  
    471471        url += "&a=d&d=&alb=1&rl=1&href=" + gs.cgiParams.href;
    472472    }
     473    // later on we want this arg p.s so we can keep search term highlighting for expand document link
     474    if (gs.cgiParams.p_s && gs.cgiParams.p_s.length > 0) {
     475    url += "&p.s=" + gs.cgiParams.p_s;
     476    }
    473477   
    474478    if (gs.xsltParams.use_client_side_xslt == "true") { // note xsltParams are of type string, so test needs to be in quotes
Note: See TracChangeset for help on using the changeset viewer.