Bugzilla – Attachment 11135 Details for
Bug 4173
Statuses not appearing in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 4173: Followup: put the lib into a variable
Bug-4173-Followup-put-the-lib-into-a-variable.patch (text/plain), 1.81 KB, created by
Kyle M Hall (khall)
on 2012-07-25 16:13:58 UTC
(
hide
)
Description:
Bug 4173: Followup: put the lib into a variable
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2012-07-25 16:13:58 UTC
Size:
1.81 KB
patch
obsolete
>From 6f318eaa6857ef7f1247945376bf3f9a8e1e1c59 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Wed, 25 Jul 2012 16:20:30 +0200 >Subject: [PATCH] Bug 4173: Followup: put the lib into a variable > >Prevent 2 calls instead of 1 > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > .../opac-tmpl/prog/en/includes/item-status.inc | 10 ++++++---- > 1 files changed, 6 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >index c456675..51c2e9f 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >+++ b/koha-tmpl/opac-tmpl/prog/en/includes/item-status.inc >@@ -14,8 +14,9 @@ > [% ELSIF ( item.wthdrawn ) %] > Item withdrawn > [% ELSIF ( item.itemlost ) %] >- [% IF KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >- [% KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >+ [% av_lib_include = KohaAuthorisedValues.GetByCode( 'LOST', item.itemlost, 1 ) %] >+ [% IF ( av_lib_include ) %] >+ [% av_lib_include %] > [% ELSE %] > [% IF ( item.lostimageurl ) %] > <img src="[% item.lostimageurl %]" alt="[% item.lostimagelabel %]" title="[% item.lostimagelabel %]"> >@@ -32,8 +33,9 @@ > [% ELSIF ( item.notforloan_per_itemtype ) %] > Not for loan [% IF ( item.restrictedopac ) %]<span class="restricted">([% item.restrictedopac %])</span>[% END %] > [% ELSIF ( item.damaged ) %] >- [% IF KohaAuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %] >- [% KohaAuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %] >+ [% av_lib_include = KohaAuthorisedValues.GetByCode( 'DAMAGED', item.damaged, 1 ) %] >+ [% IF av_lib_include %] >+ [% av_lib_include %] > [% ELSE %] > Item damaged > [% END %] >-- >1.7.2.5
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 4173
:
1884
|
1885
|
1886
|
1887
|
2810
|
2863
|
2864
|
10798
|
11132
|
11133
|
11135
|
12009
|
12010
|
18158
|
18161
|
18162