Bug 4173: Followup: put the lib into a variable
Prevent 2 calls instead of 1 Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
6f431883f8
commit
7891bd570a
1 changed files with 6 additions and 4 deletions
|
@ -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 %]
|
||||
|
|
Loading…
Reference in a new issue