Bugzilla – Attachment 6445 Details for
Bug 7270
Removing double itemtype on shelve contents page when no icon is shown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
patch.txt (text/plain), 1.94 KB, created by
Marcel de Rooy
on 2011-11-28 13:03:12 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2011-11-28 13:03:12 UTC
Size:
1.94 KB
patch
obsolete
>From cc223cc5518771c40f6eec0ecb147e4177b018ee Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Mon, 28 Nov 2011 13:51:31 +0100 >Subject: [PATCH] Bug 7270: Removing double itemtype on shelve contents page >Content-Type: text/plain; charset="utf-8" > >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7270
:
6445
|
6446
|
6473
|
6474
|
6485