Lines 966-980
sub _availability {
Link Here
|
966 |
my $itemcallnumber = $item->itemcallnumber; |
966 |
my $itemcallnumber = $item->itemcallnumber; |
967 |
|
967 |
|
968 |
if ( $item->notforloan ) { |
968 |
if ( $item->notforloan ) { |
969 |
return ( $biblionumber, 'not available', 'Not for loan', $location ); |
969 |
return ( $biblionumber, 'not available', 'Not for loan', $location, $itemcallnumber ); |
970 |
} elsif ( $item->onloan ) { |
970 |
} elsif ( $item->onloan ) { |
971 |
return ( $biblionumber, 'not available', 'Checked out', $location ); |
971 |
return ( $biblionumber, 'not available', 'Checked out', $location, $itemcallnumber ); |
972 |
} elsif ( $item->itemlost ) { |
972 |
} elsif ( $item->itemlost ) { |
973 |
return ( $biblionumber, 'not available', 'Item lost', $location ); |
973 |
return ( $biblionumber, 'not available', 'Item lost', $location, $itemcallnumber ); |
974 |
} elsif ( $item->withdrawn ) { |
974 |
} elsif ( $item->withdrawn ) { |
975 |
return ( $biblionumber, 'not available', 'Item withdrawn', $location ); |
975 |
return ( $biblionumber, 'not available', 'Item withdrawn', $location, $itemcallnumber ); |
976 |
} elsif ( $item->damaged ) { |
976 |
} elsif ( $item->damaged ) { |
977 |
return ( $biblionumber, 'not available', 'Item damaged', $location ); |
977 |
return ( $biblionumber, 'not available', 'Item damaged', $location, $itemcallnumber ); |
978 |
} else { |
978 |
} else { |
979 |
return ( $biblionumber, 'available', undef, $location, $itemcallnumber ); |
979 |
return ( $biblionumber, 'available', undef, $location, $itemcallnumber ); |
980 |
} |
980 |
} |