From 41c20e07cd4748556f125cd74289b51c3cee531c 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 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- 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 fbb354134c..606c61a4ef 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.39.5