Bug 16875: OPAC - removing link to records if authority is not used by any records
authorAleisha <aleishaamohia@hotmail.com>
Thu, 7 Jul 2016 23:26:12 +0000 (23:26 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Tue, 13 Sep 2016 07:15:23 +0000 (09:15 +0200)
commit2763b96d2af3f3c10c6b5c392f85919f1225ab1a
tree7b41b74287555d9b13649dba8831fb7b7b6ef71e
parentb6b101fe12c8214695cb0aa2b1ca2c8cc6836b3f
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
Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit d8aae99a1cf69a019139debbbb18906956b0702a)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth-detail.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-authoritiessearchresultlist.tt