Bugzilla – Attachment 105487 Details for
Bug 25639
Add search queries to HTML so queries can be retrieved via JS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25639: Add query strings to html
Bug-25639-Add-query-strings-to-html.patch (text/plain), 1.70 KB, created by
ByWater Sandboxes
on 2020-06-02 13:41:14 UTC
(
hide
)
Description:
Bug 25639: Add query strings to html
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-06-02 13:41:14 UTC
Size:
1.70 KB
patch
obsolete
>From fd32456afb1501474f430069c89c3847f954d3b2 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Mon, 1 Jun 2020 10:48:30 +0000 >Subject: [PATCH] Bug 25639: Add query strings to html > >This development simply adds the contructed queries generated by Koha >to the HTML source. This is useful for integrations like the Hoopla plugin: >https://github.com/bywatersolutions/koha-plugin-hoopla > >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 spans with data elements containing the queries used by Koha >7 - Sign off > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >index 17564fad73..1430172b71 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt >@@ -30,6 +30,10 @@ > [% INCLUDE 'bodytag.inc' bodyid='results' bodyclass='scrollto' %] > [% INCLUDE 'masthead.inc' %] > >+ <span class="querystring" data-querystring="[% querystring |replace("'", "\'") |replace('\n', '\\n') |replace('\r', '\\r') | html %]"></span> >+ <span class="query_cgi" data-query_cgi="[% query_cgi | html %]"></span> >+ <span class="query_desc" data-query_desc="[% query_desc | html %]"></span> >+ > <div class="main"> > <ul class="breadcrumb"> > <li><a href="/cgi-bin/koha/opac-main.pl">Home</a> <span class="divider">›</span></li> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 25639
:
105458
|
105487
|
106112
|
107440
|
107486
|
107711
|
107712
|
107713
|
107714
|
107715
|
107745
|
109120
|
109221
|
109258