@@ -, +, @@ authorized values the item detail page. status.' --- catalogue/moredetail.pl | 1 + .../prog/en/modules/catalogue/moredetail.tt | 50 ++++++++++++++-------- 2 files changed, 34 insertions(+), 17 deletions(-) --- a/catalogue/moredetail.pl +++ a/catalogue/moredetail.pl @@ -139,6 +139,7 @@ foreach my $item (@items){ $item->{object} = Koha::Items->find( $item->{itemnumber} ); $item->{itemlostloop}= GetAuthorisedValues(GetAuthValCode('items.itemlost',$fw),$item->{itemlost}) if GetAuthValCode('items.itemlost',$fw); $item->{itemdamagedloop}= GetAuthorisedValues(GetAuthValCode('items.damaged',$fw),$item->{damaged}) if GetAuthValCode('items.damaged',$fw); + $item->{itemwithdrawnloop}= GetAuthorisedValues(GetAuthValCode('items.withdrawn',$fw),$item->{withdrawn}) if GetAuthValCode('items.withdrawn',$fw); $item->{'collection'} = $ccodes->{ $item->{ccode} } if ($ccodes); $item->{'itype'} = $itemtypes->{ $item->{'itype'} }->{'translated_description'}; $item->{'replacementprice'} = sprintf( "%.2f", $item->{'replacementprice'} ); --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt @@ -162,25 +162,41 @@ [% END %] [% END %] -
  • Withdrawn?:[% IF ( ITEM_DAT.withdrawn ) %]Yes[% ELSE %]No[% END %] - [% IF ( CAN_user_circulate ) %] -
    - - - - - - [% IF ( ITEM_DAT.withdrawn ) %] - [% ELSE %] - [% END %] - [% IF ( ITEM_DAT.withdrawn ) %] - [% ELSE %] - [% END %] -
    + [% IF ( ITEM_DAT.itemwithdrawnloop ) %] +
  • Withdrawn status: + [% IF ( CAN_user_circulate ) %] +
    + + + + + + +
    + [% ELSE %] + [% FOREACH itemwithdrawn IN ITEM_DAT.itemwithdrawnloop %] + [% IF ( itemwithdrawn.selected ) %] + [% itemwithdrawn.lib %] + [% END %] + [% END %] +   + [% END %] +
  • + [% IF ITEM_DAT.withdrawn != "" && ITEM_DAT.withdrawn_on %] +
  • Withdrawn on:[% ITEM_DAT.withdrawn_on | $KohaDates %]  
  • [% END %] - - [% IF ITEM_DAT.withdrawn_on %]
  • Withdrawn on:[% ITEM_DAT.withdrawn_on | $KohaDates %]  
  • [% END %] + [% END %] +

    History

      --