Patch initializes template variable noItemTypeImages now.
Corrects the template so that description is not listed twice.
---
 .../prog/en/modules/virtualshelves/shelves.tt      |    2 +-
 virtualshelves/shelves.pl                          |    3 +++
 2 files changed, 4 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..09a40bb 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 ) %]<img src="[% 
itemsloo.imageurl %]" alt="[% itemsloo.description %]" title="[% 
itemsloo.description %]" />[% ELSE %][% itemsloo.description %][% END %]
                        </td>[% END %]
                        <td>
                        [% INCLUDE 'biblio-default-view.inc' biblionumber = 
itemsloo.biblionumber %]
diff --git a/virtualshelves/shelves.pl b/virtualshelves/shelves.pl
index 0b208a9..62e1bb4 100755
--- a/virtualshelves/shelves.pl
+++ b/virtualshelves/shelves.pl
@@ -35,4 +35,7 @@ my ( $template, $loggedinuser, $cookie ) = 
get_template_and_user(
         flagsrequired   => { catalogue => 1 },
     }
 );
+$template->param(
+       noItemTypeImages => C4::Context->preference('noItemTypeImages'),
+);
 shelfpage('intranet', $query, $template, $loggedinuser, $cookie);
-- 
1.6.0.6

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to