Lines 1856-1861
sub searchResults {
Link Here
|
1856 |
my $item_in_transit_count = 0; |
1856 |
my $item_in_transit_count = 0; |
1857 |
my $can_place_holds = 0; |
1857 |
my $can_place_holds = 0; |
1858 |
my $item_onhold_count = 0; |
1858 |
my $item_onhold_count = 0; |
|
|
1859 |
my $notforloan_count = 0; |
1859 |
my $items_count = scalar(@fields); |
1860 |
my $items_count = scalar(@fields); |
1860 |
my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults'); |
1861 |
my $maxitems_pref = C4::Context->preference('maxItemsinSearchResults'); |
1861 |
my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1; |
1862 |
my $maxitems = $maxitems_pref ? $maxitems_pref - 1 : 1; |
Lines 1926-1931
sub searchResults {
Link Here
|
1926 |
# item is on order |
1927 |
# item is on order |
1927 |
if ( $item->{notforloan} < 0 ) { |
1928 |
if ( $item->{notforloan} < 0 ) { |
1928 |
$ordered_count++; |
1929 |
$ordered_count++; |
|
|
1930 |
} elsif ( $item->{notforloan} > 0 ) { |
1931 |
$notforloan_count++; |
1929 |
} |
1932 |
} |
1930 |
|
1933 |
|
1931 |
# is item in transit? |
1934 |
# is item in transit? |
Lines 2065-2070
sub searchResults {
Link Here
|
2065 |
$oldbiblio->{intransitcount} = $item_in_transit_count; |
2068 |
$oldbiblio->{intransitcount} = $item_in_transit_count; |
2066 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2069 |
$oldbiblio->{onholdcount} = $item_onhold_count; |
2067 |
$oldbiblio->{orderedcount} = $ordered_count; |
2070 |
$oldbiblio->{orderedcount} = $ordered_count; |
|
|
2071 |
$oldbiblio->{notforloancount} = $notforloan_count; |
2068 |
|
2072 |
|
2069 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2073 |
if (C4::Context->preference("AlternateHoldingsField") && $items_count == 0) { |
2070 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |
2074 |
my $fieldspec = C4::Context->preference("AlternateHoldingsField"); |