From a7f91406ede430c22efca73a7016f2ceb819d480 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Nov 2015 15:18:56 +0000 Subject: [PATCH] Bug 15137: Display ISBN and author info when sending list by email MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Disclaimer: this is not caused by bug 14544 :) And can be backported! Both isbn and author information are missing when a list is sent by email. Emails sent from OPAC and staff should be (almost) the same. Test plan: 1/ Sent a list by email (Button "Send list") 2/ The email you will receive should contain the isbn and author info Signed-off-by: Bernardo Gonzalez Kriegel On top of last patch of Bug 14544 Works ok, mail with authors and ISBN No errors Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit eb286ebbc3c594e8e81e1e8b1848ca1d52b8bccb) Signed-off-by: Frédéric Demians (cherry picked from commit caf0e23032c0ced4bba07ab4d888bd74695c9110) Signed-off-by: Liz Rea --- .../intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt | 2 +- virtualshelves/sendshelf.pl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt index b70dac9595..e63d6f5cde 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/sendshelf.tt @@ -56,7 +56,7 @@ Your list: [% shelfname %] [% IF ( BIBLIO_RESULT.ISBN ) %] ISBN: [% FOREACH isbn IN BIBLIO_RESULT.ISBN %] - [% isbn.marcisbn %] + [% isbn %] [% UNLESS ( loop.last ) %]; [% END %] [% END %]
diff --git a/virtualshelves/sendshelf.pl b/virtualshelves/sendshelf.pl index 6f6c078afb..25cb5f5659 100755 --- a/virtualshelves/sendshelf.pl +++ b/virtualshelves/sendshelf.pl @@ -89,12 +89,14 @@ if ($email) { my @items = GetItemsInfo($biblionumber); + $dat->{ISBN} = GetMarcISBN($record, $marcflavour); $dat->{MARCNOTES} = $marcnotesarray; $dat->{MARCSUBJCTS} = $marcsubjctsarray; $dat->{MARCAUTHORS} = $marcauthorsarray; $dat->{'biblionumber'} = $biblionumber; $dat->{ITEM_RESULTS} = \@items; $dat->{subtitle} = $subtitle; + $dat->{HASAUTHORS} = $dat->{'author'} || @$marcauthorsarray; $iso2709 .= $record->as_usmarc(); -- 2.39.5