Bug 21850: (follow-up) Add query information in title attribute

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>
This commit is contained in:
Owen Leonard 2019-01-28 18:46:41 +00:00 committed by Nick Clemens
parent aa3294ae57
commit dd7daf493b
1 changed files with 2 additions and 2 deletions

View 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 %]