Prevents log error:
EXPR:at pos 14: non-initialized variable notforloantext
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
$item->{'datelastseen'} = format_date($item->{'datelastseen'});
$item->{'ordernumber'} = $ordernum;
$item->{'booksellerinvoicenumber'} = $order->{'booksellerinvoicenumber'};
+ if ($item->{notforloantext} or $item->{itemlost} or $item->{damaged} or $item->{wthdrawn}) {
+ $item->{status_advisory} = 1;
+ }
if (C4::Context->preference("IndependantBranches")) {
#verifying rights
<!-- TMPL_IF NAME="copyvol" --><li><span class="label">Copy / Vol :</span> <!-- TMPL_VAR NAME="copyvol" --> </li> <!-- /TMPL_IF -->
<!-- TMPL_IF NAME="replacementprice" --><li><span class="label">Replacement Price:</span> <!-- TMPL_VAR NAME="replacementprice" --> </li> <!-- /TMPL_IF -->
</ol></div>
- <div class="listgroup"><h4>Statuses <!-- TMPL_IF EXPR="notforloantext || itemlost || damaged || wthdrawn" -->(
+ <div class="listgroup"><h4>Statuses <!-- TMPL_IF NAME="status_advisory" -->(
<!-- TMPL_IF name="notforloantext" --><!-- TMPL_VAR name="notforloantext" --> <!-- /TMPL_IF -->
<!-- TMPL_IF name="itemlost"-->Lost<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="damaged" -->Damaged<!-- /TMPL_IF -->