[koha-commits] main Koha release repository branch new/bug_8710 created. v3.08.00-1332-gbc1cd0a

Git repo owner gitmaster at git.koha-community.org
Thu Nov 29 00:53:00 CET 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, new/bug_8710 has been created
        at  bc1cd0a656269ec0503f11ca17e955b09d44c456 (commit)

- Log -----------------------------------------------------------------
commit bc1cd0a656269ec0503f11ca17e955b09d44c456
Author: Owen Leonard <oleonard at myacpl.org>
Date:   Fri Oct 26 09:14:15 2012 -0400

    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.
    
    Signed-off-by: Melia Meggs <melia at test.bywatersolutions.com>
    Signed-off-by: Jonathan Druart <jonathan.druart at biblibre.com>
    Signed-off-by: Jared Camins-Esakov <jcamins at cpbibliography.com>

-----------------------------------------------------------------------


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list