From 90058d08e41967eb29a03e8a6fa23c56d451c6a0 Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Thu, 7 Jun 2018 11:14:50 +0100 Subject: [PATCH] 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: Magnus Enger Works as advertised. The link is only displayed if there is a biblionumber to link to. --- koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt index 0763ba8552..7e503b8cc6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt @@ -118,11 +118,12 @@ // Our 'render' function for biblio_id var createBiblioLink = function(data, type, row) { - return '' + row.biblio_id + - ''; + '' : ''; }; // Our 'render' function for the library name -- 2.11.0