Bug 1633: [SIGNED-OFF] Don't show image tab when inappropriate
commit57288e020d5b89543dbc025d8268b5c24b91809e
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Wed, 14 Dec 2011 02:02:03 +0000 (13 21:02 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 24 Jan 2012 10:16:07 +0000 (24 11:16 +0100)
tree5a56b73690e2d20d47dcc51e8798c4200e95e374
parenteff760b352a8b8722ac454663a7bcb6f97826d38
Bug 1633: [SIGNED-OFF] Don't show image tab when inappropriate

This patch corrects the bug spotted by Owen Leonard where the Images tab was
showing up even for records that didn't have local cover images attached to
them. The tab is now hidden on the OPAC for records that don't have any
images. In the Intranet, an Images tab will show for staff with permission
to upload images, suggesting that they do so. For staff without that
permission, the tab is not shown.

This permission also disables returning images via the opac-image.pl and
catalogue/image.pl scripts when local cover images have been disabled.

Signed-off-by: Magnus Enger <magnus@enger.priv.no>
Signed-off-by: Koustubha Kale <kmkale@anantcorp.com>
catalogue/image.pl
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-detail.tt
opac/opac-image.pl
opac/opac-imageviewer.pl