View | Details | Raw Unified | Return to bug 18921
Collapse All | Expand All

(-)a/C4/XSLT.pm (-4 / +3 lines)
Lines 292-303 sub buildKohaItemsNamespace { Link Here
292
292
293
        my $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} );
293
        my $reservestatus = C4::Reserves::GetReserveStatus( $item->{itemnumber} );
294
294
295
        if ( $itemtypes->{ $item->{itype} }->{notforloan} || $item->{notforloan} || $item->{onloan} || $item->{withdrawn} || $item->{itemlost} || $item->{damaged} ||
295
        if ( ( $item->{itype} && $itemtypes->{ $item->{itype} }->{notforloan} ) || $item->{notforloan} || $item->{onloan} || $item->{withdrawn} || $item->{itemlost} || $item->{damaged} ||
296
             (defined $transfertwhen && $transfertwhen ne '') || $item->{itemnotforloan} || (defined $reservestatus && $reservestatus eq "Waiting") ){ 
296
             (defined $transfertwhen && $transfertwhen ne '') || $item->{itemnotforloan} || (defined $reservestatus && $reservestatus eq "Waiting") ){ 
297
            if ( $item->{notforloan} < 0) {
297
            if ( $item->{notforloan} < 0) {
298
                $status = "On order";
298
                $status = "On order";
299
            } 
299
            } 
300
            if ( $item->{itemnotforloan} > 0 || $item->{notforloan} > 0 || $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) {
300
            if ( $item->{itemnotforloan} && $item->{itemnotforloan} > 0 || $item->{notforloan} && $item->{notforloan} > 0 || $item->{itype} && $itemtypes->{ $item->{itype} }->{notforloan} && $itemtypes->{ $item->{itype} }->{notforloan} == 1 ) {
301
                $status = "reference";
301
                $status = "reference";
302
            }
302
            }
303
            if ($item->{onloan}) {
303
            if ($item->{onloan}) {
Lines 333-339 sub buildKohaItemsNamespace { Link Here
333
          . "<holdingbranch>$holdingbranch</holdingbranch>"
333
          . "<holdingbranch>$holdingbranch</holdingbranch>"
334
          . "<location>$location</location>"
334
          . "<location>$location</location>"
335
          . "<ccode>$ccode</ccode>"
335
          . "<ccode>$ccode</ccode>"
336
          . "<status>$status</status>"
336
          . "<status>".( $status // q{} )."</status>"
337
          . "<itemcallnumber>$itemcallnumber</itemcallnumber>"
337
          . "<itemcallnumber>$itemcallnumber</itemcallnumber>"
338
          . "<stocknumber>$stocknumber</stocknumber>"
338
          . "<stocknumber>$stocknumber</stocknumber>"
339
          . "</item>";
339
          . "</item>";
340
- 

Return to bug 18921