Lines 1837-1843
sub searchResults {
Link Here
|
1837 |
if ( $item->{wthdrawn} |
1837 |
if ( $item->{wthdrawn} |
1838 |
|| $item->{itemlost} |
1838 |
|| $item->{itemlost} |
1839 |
|| $item->{damaged} |
1839 |
|| $item->{damaged} |
1840 |
|| $item->{notforloan} > 0 |
1840 |
|| $item->{notforloan} |
1841 |
|| $reservestatus eq 'Waiting' |
1841 |
|| $reservestatus eq 'Waiting' |
1842 |
|| ($transfertwhen ne '')) |
1842 |
|| ($transfertwhen ne '')) |
1843 |
{ |
1843 |
{ |
Lines 1849-1861
sub searchResults {
Link Here
|
1849 |
$item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan}; |
1849 |
$item->{status} = $item->{wthdrawn} . "-" . $item->{itemlost} . "-" . $item->{damaged} . "-" . $item->{notforloan}; |
1850 |
|
1850 |
|
1851 |
# can place hold on item ? |
1851 |
# can place hold on item ? |
1852 |
if ((!$item->{damaged} || C4::Context->preference('AllowHoldsOnDamagedItems')) |
1852 |
if ( !$item->{itemlost} ) { |
1853 |
&& !$item->{itemlost} |
1853 |
if ( !$item->{wthdrawn} ){ |
1854 |
&& !$item->{withdrawn} |
1854 |
if ( $item->{damaged} ){ |
1855 |
) { |
1855 |
if ( C4::Context->preference('AllowHoldsOnDamagedItems') ){ |
1856 |
$can_place_holds = 1; |
1856 |
# can place a hold on a damaged item if AllowHoldsOnDamagedItems is true |
|
|
1857 |
if ( ( !$item->{notforloan} || $item->{notforloan} < 0 ) ){ |
1858 |
# item is either for loan or has notforloan < 0 |
1859 |
$can_place_holds = 1; |
1860 |
} |
1861 |
} |
1862 |
} elsif ( $item->{notforloan} < 0 ) { |
1863 |
# item is not damaged and notforloan is < 0 |
1864 |
$can_place_holds = 1; |
1865 |
} |
1866 |
} |
1857 |
} |
1867 |
} |
1858 |
|
1868 |
|
1859 |
$other_count++; |
1869 |
$other_count++; |
1860 |
|
1870 |
|
1861 |
my $key = $prefix . $item->{status}; |
1871 |
my $key = $prefix . $item->{status}; |
1862 |
- |
|
|