Lines 1480-1486
sub searchResults {
Link Here
|
1480 |
$oldbiblio->{result_number} = $i + 1; |
1480 |
$oldbiblio->{result_number} = $i + 1; |
1481 |
|
1481 |
|
1482 |
# add imageurl to itemtype if there is one |
1482 |
# add imageurl to itemtype if there is one |
1483 |
$oldbiblio->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); |
1483 |
$oldbiblio->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $oldbiblio->{itemtype} }->{imageurl} ); |
1484 |
|
1484 |
|
1485 |
$oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ); |
1485 |
$oldbiblio->{'authorised_value_images'} = C4::Items::get_authorised_value_images( C4::Biblio::get_biblio_authorised_values( $oldbiblio->{'biblionumber'}, $marcrecord ) ); |
1486 |
$oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); |
1486 |
$oldbiblio->{normalized_upc} = GetNormalizedUPC( $marcrecord,$marcflavour); |
Lines 1601-1607
sub searchResults {
Link Here
|
1601 |
$onloan_items->{$key}->{branchname} = $item->{branchname}; |
1601 |
$onloan_items->{$key}->{branchname} = $item->{branchname}; |
1602 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
1602 |
$onloan_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
1603 |
$onloan_items->{$key}->{itemcallnumber} = $item->{itemcallnumber}; |
1603 |
$onloan_items->{$key}->{itemcallnumber} = $item->{itemcallnumber}; |
1604 |
$onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); |
1604 |
$onloan_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
1605 |
# if something's checked out and lost, mark it as 'long overdue' |
1605 |
# if something's checked out and lost, mark it as 'long overdue' |
1606 |
if ( $item->{itemlost} ) { |
1606 |
if ( $item->{itemlost} ) { |
1607 |
$onloan_items->{$prefix}->{longoverdue}++; |
1607 |
$onloan_items->{$prefix}->{longoverdue}++; |
Lines 1674-1680
sub searchResults {
Link Here
|
1674 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value; |
1674 |
$other_items->{$key}->{notforloan} = GetAuthorisedValueDesc('','',$item->{notforloan},'','',$notforloan_authorised_value) if $notforloan_authorised_value; |
1675 |
$other_items->{$key}->{count}++ if $item->{$hbranch}; |
1675 |
$other_items->{$key}->{count}++ if $item->{$hbranch}; |
1676 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
1676 |
$other_items->{$key}->{location} = $shelflocations->{ $item->{location} }; |
1677 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); |
1677 |
$other_items->{$key}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
1678 |
} |
1678 |
} |
1679 |
# item is available |
1679 |
# item is available |
1680 |
else { |
1680 |
else { |
Lines 1685-1691
sub searchResults {
Link Here
|
1685 |
$available_items->{$prefix}->{$_} = $item->{$_}; |
1685 |
$available_items->{$prefix}->{$_} = $item->{$_}; |
1686 |
} |
1686 |
} |
1687 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
1687 |
$available_items->{$prefix}->{location} = $shelflocations->{ $item->{location} }; |
1688 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( 'opac', $itemtypes{ $item->{itype} }->{imageurl} ); |
1688 |
$available_items->{$prefix}->{imageurl} = getitemtypeimagelocation( $search_context, $itemtypes{ $item->{itype} }->{imageurl} ); |
1689 |
} |
1689 |
} |
1690 |
} |
1690 |
} |
1691 |
} # notforloan, item level and biblioitem level |
1691 |
} # notforloan, item level and biblioitem level |
1692 |
- |
|
|