[Koha-patches] [PATCH] Display item type description when no image is available

Frédéric Demians f.demians at tamil.fr
Tue May 18 12:29:55 CEST 2010


On OPAC search result page, when item type is at biblio level, biblio
item type is displayed in resultset table 2nd column. If an icon is
linked to an itemtype, the icon is displayed. When no icon is available,
item type description was displayed in 3.0 but not anymore in 3.2. This
patch get it back.
---
 .../opac-tmpl/prog/en/modules/opac-results.tmpl    |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
index d5d87a2..acde03e 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-results.tmpl
@@ -376,6 +376,8 @@ $(document).ready(function(){
 				<td class="itypecol">
                 <!-- TMPL_IF name="imageurl" -->
 				<img src="<!-- TMPL_VAR name="imageurl" -->" title="<!-- TMPL_VAR name="description" -->" alt="<!-- TMPL_VAR name="description" -->" />
+                <!-- TMPL_ELSE -->
+                 <!-- TMPL_VAR name="description" -->
                 <!-- /TMPL_IF -->
 				</td>
                 <!-- /TMPL_UNLESS-->
-- 
1.7.1




More information about the Koha-patches mailing list