From 1eb3dcbc06450381a336228adda2d90f615f0241 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 11 May 2022 21:23:58 -1000 Subject: [PATCH] Bug 30740: Link to authorities 'used in' should not use equal When showing an authority, there is a link to search biblio records it is used in. Actually this link uses 'q=an=$auth_id', this is wrong for an URL, and other places use 'idx:value'. It does not break search with Zebra nor Elasticsearch but it is better to use ':' Test plan : Check changed links return same results with and without patch Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/authorities/authorities.tt | 2 +- koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt | 2 +- .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt index f454623a9f..548b841aa1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -358,7 +358,7 @@
[% IF count %] - Used in [% count | html %] record(s) + Used in [% count | html %] record(s) [% ELSE %] This authority is not used in any records. [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt index 68c493bee4..8b18746d6f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/detail.tt @@ -62,7 +62,7 @@
[% IF count %] - Used in [% count | html %] record(s) + Used in [% count | html %] record(s) [% ELSE %] This authority is not used in any records. [% END %] 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 9c0623c95f..27e000e504 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt @@ -112,7 +112,7 @@ [% UNLESS ( resul.isEDITORS ) %] [% IF resul.used > 0 %] - [% resul.used | html %] [% tn('record', 'records', resul.used ) | html %] + [% resul.used | html %] [% tn('record', 'records', resul.used ) | html %] [% ELSE %] 0 records [% END %] -- 2.39.5