From a8d6f8fbb053504e266cc3d2f9f1bc08775639f7 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 --- .../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 c063817a0f0..45a2ecb0460 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 @@ -78,7 +78,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.30.2