@@ -, +, @@
---
basket/sendbasket.pl | 5 +----
koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt | 5 +++--
2 files changed, 4 insertions(+), 6 deletions(-)
--- a/basket/sendbasket.pl
+++ a/basket/sendbasket.pl
@@ -25,7 +25,6 @@ use Try::Tiny qw( catch try );
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;
@@ -76,8 +75,6 @@ if ( $email_add ) {
my $marcauthorsarray = $biblio->get_marc_contributors;
my $marcsubjctsarray = GetMarcSubjects( $record, $marcflavour );
- my @items = GetItemsInfo( $biblionumber );
-
my $hasauthors = 0;
if($dat->{'author'} || @$marcauthorsarray) {
$hasauthors = 1;
@@ -88,7 +85,7 @@ if ( $email_add ) {
$dat->{MARCAUTHORS} = $marcauthorsarray;
$dat->{HASAUTHORS} = $hasauthors;
$dat->{'biblionumber'} = $biblionumber;
- $dat->{ITEM_RESULTS} = \@items;
+ $dat->{ITEM_RESULTS} = $biblio->items->search_ordered;
$iso2709 .= $record->as_usmarc();
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/basket/sendbasket.tt
@@ -1,6 +1,7 @@
[% USE raw %]
[% USE HtmlToText %]
[% USE Koha %]
+[% USE Branches %]
Items: