From 2f6823b4350f26a9756e8ccc0f12665fdd44348b Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Sun, 19 Apr 2015 20:28:21 -0400 Subject: [PATCH] Bug 11122: Address MARC21 vs. UNIMARC issue In comment #6 and comment #17, Katrin pointed out the discrepancy between UNIMARC (using publisheryear) vs. Other MARC installations (using copyrightdate). This was dealt with in invoice.tt already. This patch does similar logic for the other 3 template files. Signed-off-by: Katrin Fischer Signed-off-by: Josef Moravec Signed-off-by: Jonathan Druart Signed-off-by: Mason James --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 8 ++++++-- .../intranet-tmpl/prog/en/modules/acqui/transferorder.tt | 4 +++- .../intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt index 42fb58c5f0..79665fe5f4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -272,7 +272,9 @@ [% IF ( loop_order.isbn ) %] – [% loop_order.isbn %][% END %] [% IF ( loop_order.publishercode ) %]
Publisher: [% loop_order.publishercode %] - [%- IF ( loop_order.publicationyear ) %], [% loop_order.publicationyear %][% END %] + [%- IF ( loop_order.publicationyear > 0) -%], [% loop_order.publicationyear %] + [%- ELSIF ( loop_order.copyrightdate > 0) -%], [% loop_order.copyrightdate %] + [% END %] [% END %] [% IF ( loop_order.suggestionid ) %]
@@ -422,7 +424,9 @@ [% IF ( order.isbn ) %] - [% order.isbn %][% END %] [% IF ( order.publishercode ) %]
Publisher: [% order.publishercode %] - [%- IF ( order.publicationyear ) %], [% order.publicationyear %][% END %] + [%- IF ( order.publicationyear > 0) -%], [% order.publicationyear %] + [%- ELSIF ( order.copyrightdate > 0) -%], [% order.copyrightdate %] + [% END %] [% END %] [% IF ( order.suggestionid ) %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt index 5722d3e102..d9ad86918c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/transferorder.tt @@ -100,7 +100,9 @@ [% IF ( ordersloo.isbn ) %] – [% ordersloo.isbn %][% END %] [% IF ( ordersloo.publishercode ) %]
Publisher: [% ordersloo.publishercode %] - [%- IF ( ordersloo.publicationyear ) %], [% ordersloo.publicationyear %][% END %] + [%- IF ( ordersloo.publicationyear > 0) -%], [% ordersloo.publicationyear %] + [%- ELSIF ( ordersloo.copyrightdate > 0) -%], [% ordersloo.copyrightdate %] + [% END %] [% END %] Transfer diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt index 19d961bfec..e0967cfa2d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/uncertainprice.tt @@ -114,7 +114,9 @@ function check(form) { [% IF ( uncertainpriceorder.author ) %] by [% uncertainpriceorder.author %][% END %] [% IF ( uncertainpriceorder.publishercode ) %]
Publisher: [% uncertainpriceorder.publishercode %] - [%- IF ( uncertainpriceorder.publicationyear ) %], [% uncertainpriceorder.publicationyear %][% END %] + [%- IF ( uncertanpriceorder.publicationyear > 0) -%], [% uncertanpriceorder.publicationyear %] + [%- ELSIF ( uncertanpriceorder.copyrightdate > 0) -%], [% uncertanpriceorder.copyrightdate %] + [% END %] [% END %] [% IF ( uncertainpriceorder.isbn ) %]
[% uncertainpriceorder.isbn %][% END %]
-- 2.39.5