Bug 20212: Re-add EAN for UNIMARC
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
6180725e61
commit
41c20e07cd
1 changed files with 5 additions and 1 deletions
|
@ -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 += "<br/>" + _("Publisher: ") + row.biblio.publisher.escapeHtml();
|
||||
if ( row.biblio.publication_year != null ) {
|
||||
|
|
Loading…
Reference in a new issue