Bugzilla – Attachment 25704 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]
Bug 11856: Add publiction year and edition to German acq PDF template
Bug-11856-Add-publiction-year-and-edition-to-Germa.patch (text/plain), 2.67 KB, created by
Katrin Fischer
on 2014-02-27 15:33:40 UTC
(
hide
)
Description:
Bug 11856: Add publiction year and edition to German acq PDF template
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-02-27 15:33:40 UTC
Size:
2.67 KB
patch
obsolete
>From f5dc25cb617f533cf5a05baf68ce2da39a6e9903 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer@bsz-bw.de> >Date: Thu, 27 Feb 2014 16:29:08 +0100 >Subject: [PATCH] Bug 11856: Add publiction year and edition to German acq PDF > template > >Follow up to the patch for the English templates - repeat tests >with OrderPDFFormat set to pdfformat::layout2pagesde. > >http://bugs.koha-community.org/show_bug.cgi?id=11859 >--- > acqui/pdfformat/layout2pagesde.pm | 22 +++++++++++++++++++++- > 1 file changed, 21 insertions(+), 1 deletion(-) > >diff --git a/acqui/pdfformat/layout2pagesde.pm b/acqui/pdfformat/layout2pagesde.pm >index 8fa15f4..d76b882 100644 >--- a/acqui/pdfformat/layout2pagesde.pm >+++ b/acqui/pdfformat/layout2pagesde.pm >@@ -88,12 +88,32 @@ sub printorders { > } > push(@$abaskets, $arrbasket); > >+ my $titleinfo; > for my $basket (@$baskets){ > for 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} ? ' Verlag: '. $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} ? ' Verlag: '. $line->{publishercode} : '') . >+ ( $line->{copyrightdate} ? ' '. $line->{copyrightdate} : ''); >+ } > push( @$arrbasket, > $basket->{basketno}, >- $line->{title} . " / " . $line->{author} . ( $line->{isbn} ? " ISBN: " . $line->{isbn} : '' ) . ( $line->{en} ? " EN: " . $line->{en} : '' ) . ", " . $line->{itemtype} . ( $line->{publishercode} ? 'Verlag:'. $line->{publishercode} : ""), >+ $titleinfo, > $line->{quantity}, > $num->format_price($line->{rrpgsti}), > $num->format_price($line->{discount}).'%', >-- >1.7.10.4
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