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