From 839897062f008f3cb3525a534d0835d2591c5af6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 13 Jan 2021 11:17:48 +0100 Subject: [PATCH] Bug 20212: Re-add EAN for UNIMARC --- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 4b19420edf..48061e49ee 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcel.tt @@ -430,7 +430,7 @@ } }, { - "data": "biblio.author:biblio.title:biblio.isbn", + "data": [% IF Koha.Preference('marcflavour')=='UNIMARC' %]"biblio.author:biblio.title:biblio.isbn:biblio.ean"[% ELSE %]"biblio.author:biblio.title:biblio.isbn"[% END %], "render": function(data, type, row, meta) { var result = ''; if ( row && row.biblio_id != null ) { @@ -439,6 +439,10 @@ result += _(" by ") + row.biblio.author.escapeHtml(); if ( row.biblio.isbn != null ) result += " – " + row.biblio.isbn.escapeHtml(); + [% IF Koha.Preference('marcflavour')=='UNIMARC' %] + if ( row.biblio.ean != null ) + result += " – EAN:" + row.biblio.ean.escapeHtml(); + [% END %] if ( row.biblio.publisher != null ) { result += "
" + _("Publisher: ") + row.biblio.publisher.escapeHtml(); if ( row.biblio.publication_year != null ) { -- 2.20.1