From a11f6c7430fe34516020bc30cbf26799c72ab2d7 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 Content-Type: text/plain; charset=utf-8 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 b188945..146402f 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.1.4