Lines 2085-2091
sub searchResults {
Link Here
|
2085 |
$onloan_items->{$key} = { %$item }; |
2085 |
$onloan_items->{$key} = { %$item }; |
2086 |
$onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } ); |
2086 |
$onloan_items->{$key}->{due_date} = output_pref( { dt => dt_from_string( $item->{onloan} ), dateonly => 1 } ); |
2087 |
$onloan_items->{$key}->{count}++ if $item->{$hbranch}; |
2087 |
$onloan_items->{$key}->{count}++ if $item->{$hbranch}; |
2088 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2088 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2089 |
$onloan_items->{$key}->{imageurl} = |
2089 |
$onloan_items->{$key}->{imageurl} = |
2090 |
getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2090 |
getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2091 |
|
2091 |
|
Lines 2174-2192
sub searchResults {
Link Here
|
2174 |
$other_items->{$key} = { %$item }; |
2174 |
$other_items->{$key} = { %$item }; |
2175 |
$other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0; |
2175 |
$other_items->{$key}->{intransit} = ( $transfertwhen ne '' ) ? 1 : 0; |
2176 |
$other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0; |
2176 |
$other_items->{$key}->{onhold} = ($reservestatus) ? 1 : 0; |
2177 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value and $item->{notforloan}; |
2177 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) |
2178 |
$other_items->{$key}->{count}++ if $item->{$hbranch}; |
2178 |
if $notforloan_authorised_value and $item->{notforloan}; |
2179 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2179 |
$other_items->{$key}->{count}++ |
2180 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2180 |
if $item->{$hbranch}; |
|
|
2181 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
2182 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2181 |
} |
2183 |
} |
2182 |
# item is available |
2184 |
# item is available |
2183 |
else { |
2185 |
else { |
2184 |
$can_place_holds = 1; |
2186 |
$can_place_holds = 1; |
2185 |
$available_count++; |
2187 |
$available_count++; |
2186 |
$available_items->{$prefix} = { %$item }; |
2188 |
$available_items->{$prefix} = { %$item }; |
2187 |
$available_items->{$prefix}->{count}++ if $item->{$hbranch}; |
2189 |
$available_items->{$prefix}->{count}++ |
2188 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
2190 |
if $item->{$hbranch}; |
2189 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2191 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
|
|
2192 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
2190 |
} |
2193 |
} |
2191 |
} |
2194 |
} |
2192 |
} # notforloan, item level and biblioitem level |
2195 |
} # notforloan, item level and biblioitem level |
2193 |
- |
|
|