use C4::Biblio qw(
GetMarcSubjects
);
-use C4::Items qw( GetItemsInfo );
use C4::Auth qw( get_template_and_user );
use C4::Output qw( output_and_exit output_html_with_http_headers );
use C4::Templates;
my $marcauthorsarray = $biblio->get_marc_contributors;
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
- my @items = GetItemsInfo( $biblionumber );
-
my $hasauthors = 0;
if($dat->{'author'} || @$marcauthorsarray) {
$hasauthors = 1;
$dat->{MARCAUTHORS} = $marcauthorsarray;
$dat->{HASAUTHORS} = $hasauthors;
$dat->{'biblionumber'} = $biblionumber;
- $dat->{ITEM_RESULTS} = \@items;
+ $dat->{ITEM_RESULTS} = $biblio->items->search_ordered;
$iso2709 .= $record->as_usmarc();
[% USE raw %]
[% USE HtmlToText %]
[% USE Koha %]
+[% USE Branches %]
<SUBJECT>
Your cart
In online catalog: [% OPACBaseURL | $raw %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% BIBLIO_RESULT.biblionumber | html %]
</p>
[% END %]
- [% IF ( BIBLIO_RESULT.ITEM_RESULTS.size ) %]
+ [% IF ( BIBLIO_RESULT.ITEM_RESULTS.count ) %]
<p>Items:
<ul>
[% FOREACH ITEM_RESULT IN BIBLIO_RESULT.ITEM_RESULTS %]<li>
- [% ITEM_RESULT.branchname | $raw %]
+ [% Branches.GetName(ITEM_RESULT.holdingbranch) | $raw %]
[% ITEM_RESULT.location | $raw %]
[% IF ITEM_RESULT.itemcallnumber %]([% ITEM_RESULT.itemcallnumber | $raw %])[% END %]
[% ITEM_RESULT.barcode | $raw %]