Bugzilla – Attachment 160843 Details for
Bug 35768
Show 'Used in' records link for results in cataloguing authority plugin
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35768: Show 'Used in' records link for results in cataloguing authority plugin search
Bug-35768-Show-Used-in-records-link-for-results-in.patch (text/plain), 2.17 KB, created by
Owen Leonard
on 2024-01-11 12:01:04 UTC
(
hide
)
Description:
Bug 35768: Show 'Used in' records link for results in cataloguing authority plugin search
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2024-01-11 12:01:04 UTC
Size:
2.17 KB
patch
obsolete
>From c4ff2f6289accc2bb48b615b497344e510cf6ae8 Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >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 <oleonard@myacpl.org> >--- > .../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 c063817a0f..45a2ecb046 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 @@ > <tr> > <td>[% PROCESS authresult summary=resul.summary authid=resul.authid auth_preview=1 %]</td> > <td>[% resul.summary.label | html %]</td> >- <td>[% resul.used | html %] times</td> >+ <td> >+ [% IF resul.used > 0 %] >+ <a href="/cgi-bin/koha/catalogue/search.pl?type=intranet&op=do_search&idx=an,phr&q=[% resul.authid | uri %]" class="button">[% resul.used | html %] times</a> >+ [% ELSE %] >+ 0 times >+ [% END %] >+ </td> > [% IF Koha.Preference('ShowHeadingUse') %] > <td class="heading_use"><ul class="usefor"> > <li>[% IF resul.main %]<i class="fa fa-check"></i>[% ELSE %]<i class="fa fa-times"></i>[% END %] Main/Added Entry</li> >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35768
:
160796
|
160843
|
160967