From 11d875596ada869f6bd0f0a82cd3df1e539dcc59 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 --- .../intranet-tmpl/prog/en/modules/ill/ill-requests.tt | 18 ++++++++++++++++-- 1 file changed, 16 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 70f31cad16..2a0b4cda21 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 @@ -115,6 +115,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; @@ -185,7 +194,8 @@ func: createStatus }, biblio_id: { - name: _("Biblio ID") + name: _("Biblio ID"), + func: createBiblioLink }, library: { name: _("Library"), @@ -518,7 +528,11 @@
Biblio ID: - [% request.biblio_id || "N/A" %] + [% IF request.biblio_id %] + [% request.biblio_id %] + [% ELSE %] + N/A + [% END %]
Library: -- 2.11.0