From 744dd370ced6bc336be42baeb8038b8a1ca9d1c8 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. Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- 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.39.5