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:
parent
dd91fa1712
commit
7da41e430d
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue