From 60e2c5d5f6a5fb7f8ae1182abff4cd1b70c1b878 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Fri, 5 Mar 2021 14:05:09 +1300 Subject: [PATCH] Bug 35768: Show 'Used in' records link for results in cataloguing authority plugin search To test: 1. Edit a biblio record 2. Go to the 100 tab and click the plugin launcher icon for an author tag i.e. next to 100$a 3. Search for an authority and observe the results 4. Notice that the number of times this authority has been "Used" in a record is now a link, and clicking it does a search showing those records. Sponsored-by: Education Services Australia SCIS Signed-off-by: Owen Leonard Signed-off-by: Kyle M Hall Signed-off-by: Katrin Fischer (cherry picked from commit 553126e5a3fc59c988185a26562ab02fc2c84619) Signed-off-by: Fridolin Somers --- .../prog/en/modules/authorities/searchresultlist-auth.tt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt index ee21847f27..7987f0dbcd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/searchresultlist-auth.tt @@ -73,7 +73,13 @@ [% PROCESS authresult summary=resul.summary authid=resul.authid auth_preview=1 %] [% resul.summary.label | html %] - [% resul.used | html %] times + + [% IF resul.used > 0 %] + [% resul.used | html %] times + [% ELSE %] + 0 times + [% END %] + [% IF Koha.Preference('ShowHeadingUse') %]
  • [% IF resul.main %][% ELSE %][% END %] Main/Added Entry
  • -- 2.39.5