[Koha-bugs] [Bug 8710] Do not show the images tab in the OPAC if the record has no local cover images

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Oct 26 15:26:01 CEST 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8710

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 13072
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=13072&action=edit
Bug 8710 - Don't show the images tab in the OPAC if the record has no local
images

For unknown reasons, having ListImagesForBiblio return undef
when there are no images still results in a variable being passed
to the template which evaluates as true, with a size of 1.

This patch alters ListImagesForBiblio to remove the "return undef"
condition, allowing the template to evaluate images as false
and show no tab.

To test, turn on local cover images and view records in the OPAC
which do and do not have cover images attached. Images should
display as expected when present, and no images tab should appear
on records which have none.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list