Bugzilla – Attachment 1220 Details for
Bug 3317
Author displays inconsistently ( and incorrectly ) in opac-basket.pl (and when emailing cart )
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for email portion
0010-Bug-3317-Adds-author-and-added-author-to-email-sent.patch (text/plain), 3.55 KB, created by
Chris Cormack
on 2009-06-27 18:13:00 UTC
(
hide
)
Description:
Patch for email portion
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2009-06-27 18:13:00 UTC
Size:
3.55 KB
patch
obsolete
>From 30d7ec051f185a853b22d4aa2db41ed988a66e63 Mon Sep 17 00:00:00 2001 >From: Garry Collum <gcollum@gmail.com> >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. > <!-- TMPL_IF NAME="comment" --> > <!-- TMPL_VAR NAME="comment" --> > <!-- /TMPL_IF --> >-<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF --><!-- TMPL_IF name="MARCAUTHORS" --> >-Author(s): <!-- TMPL_LOOP NAME="MARCAUTHORS" --><!-- TMPL_LOOP NAME="MARCAUTHOR_SUBFIELDS_LOOP" --><!-- TMPL_VAR NAME="separator" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_LOOP --><!-- TMPL_UNLESS NAME="__last__" -->; <!-- TMPL_ELSE --> >-<!-- /TMPL_UNLESS --><!-- /TMPL_LOOP --><!-- /TMPL_IF --><!-- TMPL_IF name="ISBN" --> >+<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" --><!-- TMPL_VAR NAME="title" --><!-- TMPL_IF name="subtitle" --> <!-- TMPL_VAR NAME="subtitle" --><!-- /TMPL_IF --><!-- TMPL_IF "HASAUTHORS" --> >+Author(s): <!-- TMPL_IF NAME="author" --><!-- TMPL_VAR NAME="author" --><!-- /TMPL_IF --><!-- TMPL_IF name="MARCAUTHORS" --><!-- TMPL_IF NAME="author" -->; <!-- /TMPL_IF --><!-- TMPL_LOOP NAME="MARCAUTHORS" --><!-- TMPL_LOOP NAME="MARCAUTHOR_SUBFIELDS_LOOP" --><!-- TMPL_VAR NAME="separator" --><!-- TMPL_VAR NAME="value" --><!-- /TMPL_LOOP --><!-- TMPL_UNLESS NAME="__last__" -->; <!-- TMPL_ELSE --><!-- /TMPL_UNLESS --><!-- /TMPL_LOOP --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- TMPL_IF name="ISBN" --> > ISBN: <!-- TMPL_VAR NAME="ISBN" --><!-- /TMPL_IF --> > <!-- TMPL_IF name="publishercode" -->Published by: <!-- TMPL_VAR NAME="publishercode" --><!-- /TMPL_IF --><!-- TMPL_IF name="publicationyear" --> in <!-- /TMPL_IF --><!-- TMPL_VAR NAME="publicationyear" --><!-- TMPL_IF name="pages" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="pages" --><!-- TMPL_IF name="size" -->, <!-- /TMPL_IF --><!-- TMPL_VAR name="size" --><!-- TMPL_IF name="collection" --> > Collection: <!-- TMPL_VAR NAME="seriestitle" --><!-- /TMPL_IF --><!-- TMPL_IF name="subject" --> >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 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 3317
:
1216
|
1217
|
1218
|
1219
|
1220