From d6829ebb5fd88e3019d30e6738d0903ed3cb1c75 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 --- .../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 2954c8d934..327607ca0d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tt @@ -354,7 +354,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 b753722ee3..5fbdf70b15 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.30.2