Bugzilla – Attachment 53209 Details for
Bug 16875
OPAC: Removing link to records if authority is not used by any records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16875: OPAC - removing link to records if authority is not used by any records
Bug-16875-OPAC---removing-link-to-records-if-autho.patch (text/plain), 3.11 KB, created by
Aleisha Amohia
on 2016-07-07 23:34:32 UTC
(
hide
)
Description:
Bug 16875: OPAC - removing link to records if authority is not used by any records
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2016-07-07 23:34:32 UTC
Size:
3.11 KB
patch
obsolete
>From da42270074f31a12c6509cccd16ff9250ddfaa91 Mon Sep 17 00:00:00 2001 >From: Aleisha <aleishaamohia@hotmail.com> >Date: Thu, 7 Jul 2016 23:26:12 +0000 >Subject: [PATCH] Bug 16875: OPAC - removing link to records if authority is > not used by any records > >To test: >1) Do an authority search. Notice that authorities not used by any records have a clickable link (under Biblio records) which redirects to a catalog search with no results >2) Go back to the authority search and click View full heading for an authority with no records. Notice that under the auth name, it says Number of records used in: 0, with a link to a catalog search >3) Apply patch >4) Repeat steps 1 and 2. Authorities not used in any records should no longer have clickable links nd authorities which have records should work as expected. > >Sponsored-by: Catalyst IT >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt | 2 +- > .../bootstrap/en/modules/opac-authoritiessearchresultlist.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >index 3f3f55c..fd85eda 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt >@@ -46,7 +46,7 @@ > <h1>[% summary.mainentry %][% IF authtypetext %] ([% authtypetext %])[% END %]</h1> > > <div class="usedin"> >- <a href="opac-search.pl?type=opac&q=[% authid %]&idx=an,phr">Number of records used in: [% count %]</a> >+ [% IF count > 0 %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&q=[% authid %]&idx=an,phr">Number of records used in: [% count %]</a>[% ELSE %]This authority is not used in any records.[% END %] > </div> > > <div class="authstanza"> >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 4ebaac6..efacd76 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt >@@ -90,7 +90,7 @@ > <td>[% resul.authtype %]</td> > [% UNLESS ( resul.isEDITORS ) %] > <td> >- <a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an=[% resul.authid %]">[% resul.used %] biblios</a> >+ [% IF resul.used > 0 %]<a href="/cgi-bin/koha/opac-search.pl?type=opac&op=do_search&q=an=[% resul.authid %]">[% resul.used %] biblios</a>[% ELSE %]0 biblios[% END %] > </td> > [% END %] > <td> >-- >1.7.10.4
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 16875
:
53209
|
53251
|
53706