[Patches] [PATCH] Bug 7270: Removing double itemtype on shelve contents page when no icon is shown
koha-patchbot at kohaaloha.com
koha-patchbot at kohaaloha.com
Thu Dec 1 04:55:02 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
Content-Type: text/plain; charset="utf-8"
Just adding a check on imageurl in the template.
---
.../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.6.0.6
More information about the Patches
mailing list