From 30d7ec051f185a853b22d4aa2db41ed988a66e63 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Sat, 27 Jun 2009 13:39:24 -0400 Subject: [PATCH] Bug 3317: Adds author and added-author to email sent from basket (Cart). Content-Type: text/plain; charset="utf-8" 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. --- .../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 b55760a..033c4d2 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 f17bb71..f06230c 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; -- 1.5.6.5