Bug 21850: (follow-up) Add query information in title attribute
authorOwen Leonard <oleonard@myacpl.org>
Mon, 28 Jan 2019 18:46:41 +0000 (18:46 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Feb 2019 15:58:20 +0000 (15:58 +0000)
This follow-up adds back the old machine-friendly search details to a
title attribute in case it might be useful for debugging purposes.

To test, apply the patch and perform a search in the OPAC. On the search
results page, hover your mouse over the "Results" link in the
breadcrumbs. The title attribute value should appear with the search
details.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt

index 5ecd8c4..e35af15 100644 (file)
@@ -41,9 +41,9 @@
                     [% END %]
                     <li>
                         [% IF ( ms_value ) %]
-                            <a href="#">Results of search for '[% ms_value | html %]'</a>
+                            <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Results of search for '[% ms_value | html %]'</a>
                         [% ELSE %]
-                            <a href="#">Search results</a>
+                            <a href="#" title="You searched [% IF ( query_desc ) %] for '[% query_desc | html %]'[% END %][% IF ( limit_desc ) %] with limit(s): '[% limit_desc | html %]'[% END %]">Search results</a>
                         [% END %]
                     </li>
                 [% ELSE %]