Bugzilla – Attachment 27732 Details for
Bug 11859
Add edition and publication year to PDF templates in acquisitions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11856: Add publiction year and edition to French acq PDF template
PASSED-QA-Bug-11856-Add-publiction-year-and-editio.patch (text/plain), 2.85 KB, created by
Kyle M Hall (khall)
on 2014-04-28 16:58:39 UTC
(
hide
)
Description:
[PASSED QA] Bug 11856: Add publiction year and edition to French acq PDF template
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-04-28 16:58:39 UTC
Size:
2.85 KB
patch
obsolete
>From 059ce39947eb528438901840a0bc44aff49a6df1 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Thu, 27 Feb 2014 16:30:29 +0100 >Subject: [PATCH] [PASSED QA] Bug 11856: Add publiction year and edition to French acq PDF template > >Follow up to the patch for the English templates - repeat tests >with OrderPDFFormat set to pdfformat::layout3pagesfr. > >Additional change: >Translates 'published by' to 'publie par' > >http://bugs.koha-community.org/show_bug.cgi?id=11859 >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > acqui/pdfformat/layout3pagesfr.pm | 24 +++++++++++++++++++++++- > 1 files changed, 23 insertions(+), 1 deletions(-) > >diff --git a/acqui/pdfformat/layout3pagesfr.pm b/acqui/pdfformat/layout3pagesfr.pm >index 1fdd319..f3bb1d8 100644 >--- a/acqui/pdfformat/layout3pagesfr.pm >+++ b/acqui/pdfformat/layout3pagesfr.pm >@@ -107,10 +107,32 @@ sub printorders { > push(@$arrbasket, $bkey); > } > push(@$abaskets, $arrbasket); >+ >+ my $titleinfo; > foreach my $line (@{$orders->{$basket->{basketno}}}) { > $arrbasket = undef; >+ $titleinfo = ""; >+ if ( C4::Context->preference("marcflavour") eq 'UNIMARC' ) { >+ $titleinfo = $line->{title} . " / " . $line->{author} . >+ ( $line->{isbn} ? " ISBN : " . $line->{isbn} : '' ) . >+ ( $line->{en} ? " EN : " . $line->{en} : '' ) . >+ ( $line->{itemtype} ? ", " . $line->{itemtype} : '' ) . >+ ( $line->{edition} ? ", " . $line->{edition} : '' ) . >+ ( $line->{publishercode} ? ' publié par '. $line->{publishercode} : '') . >+ ( $line->{publicationyear} ? ', '. $line->{publicationyear} : ''); >+ } >+ else { # MARC21, NORMARC >+ $titleinfo = $line->{title} . " " . $line->{author} . >+ ( $line->{isbn} ? " ISBN : " . $line->{isbn} : '' ) . >+ ( $line->{en} ? " EN : " . $line->{en} : '' ) . >+ ( $line->{itemtype} ? " " . $line->{itemtype} : '' ) . >+ ( $line->{edition} ? ", " . $line->{edition} : '' ) . >+ ( $line->{publishercode} ? ' publié par '. $line->{publishercode} : '') . >+ ( $line->{copyrightdate} ? ' '. $line->{copyrightdate} : ''); >+ } >+ > push( @$arrbasket, >- $line->{title} . " / " . $line->{author} . ( $line->{isbn} ? " ISBN : " . $line->{isbn} : '' ) . ( $line->{en} ? " EN : " . $line->{en} : '' ) . ", " . $line->{itemtype} . ( $line->{publishercode} ? ' published by '. $line->{publishercode} : ""), >+ $titleinfo, > $line->{quantity}, > $num->format_price($line->{rrpgste}), > $num->format_price($line->{rrpgsti}), >-- >1.7.2.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 11859
:
25703
|
25704
|
25705
|
27470
|
27471
|
27474
|
27723
|
27724
|
27725
|
27726
|
27727
|
27728
|
27730
|
27731
| 27732