From 0a8ed4e43dc586346e8dc0d2e906d72614b52abe Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 4 Oct 2022 11:21:33 +0000 Subject: [PATCH] Bug 31635: Fix output of current title in OPAC browse results This patch makes a correction to the output of OPAC browse results. In the numbered result navigation links, a title tag on each navigation link should contain the title of the record. The link for the current title didn't include the title information in the title tag because it used the wrong template variables. To test, apply the patch and make sure OpacBrowseResults is enabled. - In OPAC, perform a search that will return multiple results. - View one of the results. - In the right-hand sidebar, click "Browse results." - In the list of numbered links at the top of the panel, hover your mouse over each link. They should each display a tooltip with "View record [title]" - Confirm that the current title in the list includes the correct tooltip. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 319d584cd9..35e32d6eed 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1045,7 +1045,11 @@ [% ELSE %]
  • [% END %] + [% IF ( listitem.biblionumber == biblionumber ) %] + [% loop.count + offset | html %] + [% ELSE %] [% loop.count + offset | html %] + [% END # /IF listitem.biblionumber %]
  • [% END # /FOREACH listitem %] -- 2.20.1