diff --git a/catalogue/moredetail.pl b/catalogue/moredetail.pl index 1b33f75e86..aa23799d35 100755 --- a/catalogue/moredetail.pl +++ b/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'} ); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt index 63c09a3c5f..d3caf166d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/moredetail.tt +++ b/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