From a1f827a6114c861d9cb442c07c6591f4db3e0ea3 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Sat, 27 Jun 2009 13:48:18 -0400 Subject: [PATCH] Bug 3317: Adds author and added-author to email sent from basket (Cart). Adds the author and added author fields to the email that is sent from the shopping cart. This makes the data sent via email consistent with the data that is viewed in the basket. There is still a problem with author authority records other than 100 tags appearing correctly in the shopping cart. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tmpl | 5 ++--- opac/opac-sendbasket.pl | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tmpl index b55760a7a1..033c4d21d1 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tmpl +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-sendbasket.tmpl @@ -17,9 +17,8 @@ Reference Manager or ProCite. - -Author(s): ; - + +Author(s): ; ; ISBN: Published by: in , , Collection: diff --git a/opac/opac-sendbasket.pl b/opac/opac-sendbasket.pl index f17bb71657..f06230cb08 100755 --- a/opac/opac-sendbasket.pl +++ b/opac/opac-sendbasket.pl @@ -80,9 +80,16 @@ if ( $email_add ) { my @items = &GetItemsInfo( $biblionumber, 'opac' ); + my $hasauthors = 0; + if($dat->{'author'} || @$marcauthorsarray) { + $hasauthors = 1; + } + + $dat->{MARCNOTES} = $marcnotesarray; $dat->{MARCSUBJCTS} = $marcsubjctsarray; $dat->{MARCAUTHORS} = $marcauthorsarray; + $dat->{HASAUTHORS} = $hasauthors; $dat->{'biblionumber'} = $biblionumber; $dat->{ITEM_RESULTS} = \@items; -- 2.39.5