From b844a45034521e95ca7dbcfdf4e68e5ad6ac3b1a Mon Sep 17 00:00:00 2001 From: Andrew Isherwood Date: Wed, 23 May 2018 12:26:25 +0100 Subject: [PATCH] Bug 20797 - Add link to biblio detail view from ILL detail view Signed-off-by: Marcel de Rooy --- .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 b188945d12..146402f501 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 @@ -116,6 +116,15 @@ ''; }; + // Our 'render' function for biblio_id + var createBiblioLink = function(data, type, row) { + return '' + + row.biblio_id + + ''; + }; + // Our 'render' function for the library name var createLibrary = function(data, type, row) { return row.library.branchname; @@ -187,6 +196,7 @@ }, biblio_id: { name: _("Bibliograpic Record ID") + func: createBiblioLink }, library: { name: _("Library"), @@ -521,7 +531,11 @@
Bibliographic record ID: - [% request.biblio_id || "N/A" | html %] + [% IF request.biblio_id %] + [% request.biblio_id | html %] + [% ELSE %] + N/A + [% END %]
Library: -- 2.11.0