From 88bf8d0b580d8d01a5a658e0124bbcfbcafabe55 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sun, 27 Feb 2022 01:09:20 +0100 Subject: [PATCH] Bug 29048: Fix link to linked records from authority search results in OPAC Without this patch the constructed search link would give wrong results with Elasticsearch. If you searched for records linked to authority id 3 it would also turn up all other records linked to an authority where the id started with 3... This just copies the more specific link using an,phr used in the staff interface and the OPAC detail page to make things consistent To test: - Turn on Elasticsearch - Search for authorities in the OPAC - Locate a authority with a low ID in your result list - Note the number of linked records - Click on the link - It will give you more results than it said before - Verify results don't match your search - Apply patch - Try again - now it should all match up --- .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt index 8bc51138b0..22779cb554 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt @@ -110,7 +110,7 @@ [% resul.authtype | html %] [% UNLESS ( resul.isEDITORS ) %] - [% IF resul.used > 0 %][% resul.used | html %] biblios[% ELSE %]0 biblios[% END %] + [% IF resul.used > 0 %][% resul.used | html %] biblios[% ELSE %]0 biblios[% END %] [% END %] -- 2.30.2