Lines 2099-2110
sub searchResults {
Link Here
|
2099 |
my $userenv = C4::Context->userenv; |
2099 |
my $userenv = C4::Context->userenv; |
2100 |
if ( $item->{onloan} && !(C4::Members::GetHideLostItemsPreference($userenv->{'number'}) && $item->{itemlost}) ) { |
2100 |
if ( $item->{onloan} && !(C4::Members::GetHideLostItemsPreference($userenv->{'number'}) && $item->{itemlost}) ) { |
2101 |
$onloan_count++; |
2101 |
$onloan_count++; |
2102 |
my $key = $prefix . $item->{onloan} . $item->{barcode}; |
2102 |
my $key = $prefix . $item->{onloan} . $item->{barcode}; |
2103 |
$onloan_items->{$key} = { %$item }; |
2103 |
$onloan_items->{$key} = { %$item }; |
2104 |
$onloan_items->{$key}->{due_date} = format_date($item->{onloan}); |
2104 |
$onloan_items->{$key}->{due_date} = format_date($item->{onloan}); |
2105 |
$onloan_items->{$key}->{count}++ if $item->{$hbranch}; |
2105 |
$onloan_items->{$key}->{count}++ |
2106 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2106 |
if $item->{$hbranch}; |
2107 |
$onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2107 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
|
|
2108 |
$onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2108 |
# if something's checked out and lost, mark it as 'long overdue' |
2109 |
# if something's checked out and lost, mark it as 'long overdue' |
2109 |
if ( $item->{itemlost} ) { |
2110 |
if ( $item->{itemlost} ) { |
2110 |
$onloan_items->{$prefix}->{longoverdue}++; |
2111 |
$onloan_items->{$prefix}->{longoverdue}++; |
Lines 2186-2204
sub searchResults {
Link Here
|
2186 |
$other_items->{$key} = { %$item }; |
2187 |
$other_items->{$key} = { %$item }; |
2187 |
$other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0; |
2188 |
$other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0; |
2188 |
$other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0; |
2189 |
$other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0; |
2189 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value and $item->{notforloan}; |
2190 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) |
2190 |
$other_items->{$key}->{count}++ if $item->{$hbranch}; |
2191 |
if $notforloan_authorised_value and $item->{notforloan}; |
2191 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2192 |
$other_items->{$key}->{count}++ |
2192 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2193 |
if $item->{$hbranch}; |
|
|
2194 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2195 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2193 |
} |
2196 |
} |
2194 |
# item is available |
2197 |
# item is available |
2195 |
else { |
2198 |
else { |
2196 |
$can_place_holds = 1; |
2199 |
$can_place_holds = 1; |
2197 |
$available_count++; |
2200 |
$available_count++; |
2198 |
$available_items->{$prefix} = { %$item }; |
2201 |
$available_items->{$prefix} = { %$item }; |
2199 |
$available_items->{$prefix}->{count}++ if $item->{$hbranch}; |
2202 |
$available_items->{$prefix}->{count}++ |
2200 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
2203 |
if $item->{$hbranch}; |
2201 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2204 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
|
|
2205 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2202 |
} |
2206 |
} |
2203 |
} |
2207 |
} |
2204 |
} # notforloan, item level and biblioitem level |
2208 |
} # notforloan, item level and biblioitem level |
2205 |
- |
|
|