Bug 20797: (follow-up) Conditionally link

We don't want to display the link to the biblio if the biblio_id is null

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Andrew Isherwood 2018-06-07 11:14:50 +01:00 committed by Tomas Cohen Arazi
parent dd91fa1712
commit 7da41e430d

View file

@ -118,11 +118,12 @@
// Our 'render' function for biblio_id
var createBiblioLink = function(data, type, row) {
return '<a title="' + _("View biblio details") + '" ' +
return (row.biblio_id) ?
'<a title="' + _("View biblio details") + '" ' +
'href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' +
row.biblio_id + '">' +
row.biblio_id +
'</a>';
'</a>' : '';
};
// Our 'render' function for the library name