Lines 1842-1847
sub searchResults {
Link Here
|
1842 |
my $item_in_transit_count = 0; |
1842 |
my $item_in_transit_count = 0; |
1843 |
my $can_place_holds = 0; |
1843 |
my $can_place_holds = 0; |
1844 |
my $item_onhold_count = 0; |
1844 |
my $item_onhold_count = 0; |
|
|
1845 |
my $notforloan_count = 0; |
1845 |
my $items_count = scalar(@fields); |
1846 |
my $items_count = scalar(@fields); |
1846 |
my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults'); |
1847 |
my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults'); |
1847 |
my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1; |
1848 |
my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1; |
Lines 1912-1917
sub searchResults {
Link Here
|
1912 |
# item is on order |
1913 |
# item is on order |
1913 |
if ( $item->{notforloan} < 0 ) { |
1914 |
if ( $item->{notforloan} < 0 ) { |
1914 |
$ordered_count++; |
1915 |
$ordered_count++; |
|
|
1916 |
} elsif ( $item->{notforloan} > 0 ) { |
1917 |
$notforloan_count++; |
1915 |
} |
1918 |
} |
1916 |
|
1919 |
|
1917 |
# is item in transit? |
1920 |
# is item in transit? |
Lines 2051-2056
sub searchResults {
Link Here
|
2051 |
$oldbiblio->{intransitcount} = $item_in_transit_count; |
2054 |
$oldbiblio->{intransitcount} = $item_in_transit_count; |
2052 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2055 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2053 |
$oldbiblio->{orderedcount} = $ordered_count; |
2056 |
$oldbiblio->{orderedcount} = $ordered_count; |
|
|
2057 |
$oldbiblio->{notforloancount} = $notforloan_count; |
2054 |
|
2058 |
|
2055 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2059 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2056 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |
2060 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |