]> git.koha-community.org Git - koha.git/commit
Bug 10584 - Hide OPAC biblio details if all items are hidden
authorMark Tompsett <mtompset@hotmail.com>
Fri, 12 Jul 2013 03:13:42 +0000 (23:13 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 18 Sep 2013 15:31:04 +0000 (15:31 +0000)
commite191bb02bfda7f17ae8b4f681314c51d2e7e6b92
tree929e49055370a97a9e9bed7db8637f2e9bedfb0b
parentdcbe50cde84505198dffbd1a65d998287f0902dc
Bug 10584 - Hide OPAC biblio details if all items are hidden

If there are items for a given biblio number, and they are all
hidden, then biblio needs to be hidden. If the biblio needs to
be hidden, it immediately redirects to a 404.pl page, just as
if the biblionumber does not exist.

Arrays used to represent all the items were relocated and used,
added if they didn't exist. Arrays representing the hidden
items were relocated and used if they existed, added if they
didn't exist.

Upon debugging the opac-MARCdetail.pl modification, it was
discovered the reason getHiddenItems was failing was because
'use YAML qw/Load/;' was not mentioned in C4::Items, and other
libraries were triggering the loading of YAML to compensate
for opac-detail.pl and opac-ISBDdetail.pl files.

Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
opac/opac-ISBDdetail.pl
opac/opac-MARCdetail.pl
opac/opac-detail.pl