[Patches] [PATCH] Bug 7270: Removing double itemtype on shelve contents page
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Thu Dec 1 21:30:03 NZDT 2011
From: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Wed, 30 Nov 2011 16:42:19 +0100
Subject: [PATCH] Bug 7270: Removing double itemtype on shelve contents page
when no icon is shown
Just adding a check on imageurl in the template.
Signed-off-by: Chris Cormack <chrisc at catalyst.net.nz>
---
.../prog/en/modules/virtualshelves/shelves.tt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
index d7a34a1..12a0665 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt
@@ -194,7 +194,7 @@ function placeHold () {
</td>
[% END %]
[% UNLESS ( item_level_itypes ) %]<td>
- [% UNLESS ( noItemTypeImages ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
+ [% UNLESS ( noItemTypeImages || !itemsloo.imageurl ) %]<img src="[% itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% itemsloo.description %]" />[% END %][% itemsloo.description %]
</td>[% END %]
<td>
[% INCLUDE 'biblio-default-view.inc' biblionumber = itemsloo.biblionumber %]
--
1.7.5.4
More information about the Patches
mailing list