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>
// 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