]> git.koha-community.org Git - koha.git/commit
Bug 25639: Add search query strings as global javascript variables
authorNick Clemens <nick@bywatersolutions.com>
Wed, 29 Jul 2020 10:56:37 +0000 (10:56 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 4 Sep 2020 20:28:31 +0000 (20:28 +0000)
commit4a2e76d83ae76f72365f663effa372d018638856
treecda8e99bf1ac7a6eeec146a15a6d9252bff79778
parentb8d9d6242d837162e210c7adfd486521a6246733
Bug 25639: Add search query strings as global javascript variables

To test:
1 - Search on OPAC for "qwertyuiop"
2 - View the HTML source
3 - Find 'qwertyuiop' in the source, it is not easily accessible via JS
4 - Apply patch
5 - Repeat
6 - Note that now there are global variables with the query strings
7 - Add to OpacUserJs:
    console.log( query_desc );
    console.log( querystring );
    console.log( query_cgi );
8 - Reload page and confirm variables are warned in the JS console (Press F12)
9 - Sign off

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit cf93255428125241745faaaec0a0b1f8455c7526)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt