[Koha-devel] Item type images in opac-user.tmpl
Owen Leonard
oleonard at myacpl.org
Mon Aug 25 17:58:11 CEST 2008
A recent change to opac-user.tmpl displays the item type image in
place of the book cover if all enhanced content preferences are turned
off:
<!-- TMPL_UNLESS NAME="JacketImages" --><img src="<!-- TMPL_VAR
NAME="imageurl" -->" alt="<!-- TMPL_VAR NAME="description" -->"
title="<!-- TMPL_VAR NAME="description" -->" /><!-- /TMPL_UNLESS -->
But further down in that template the item type image may be displayed again:
<!-- TMPL_UNLESS NAME="item-level_itypes" --><td><!-- TMPL_IF
NAME="imageurl" --><img src="<!-- TMPL_VAR NAME="imageurl" -->"
title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR
NAME="description" -->" /><!-- /TMPL_IF --> <!-- TMPL_VAR
name="description" --></td><!-- /TMPL_UNLESS -->
Couple of questions: why should the item type image only be a fallback
for book covers? Is there any reason not to do both? And why not show
the item type image when item-level_itypes is turned on? Shouldn't
that be checking for noItemTypeImages?
Owen
--
Web Developer
Athens County Public Libraries
http://www.myacpl.org
More information about the Koha-devel
mailing list