From 4b7cf01d3eb2caabd5435222f5f399458c3f08e9 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: Magnus Enger Tested thusly: - Make sure there are a couple of ILL requests with biblionumber - Apply the patch - Go to "List requests" page - Biblionumber is now a link, clicking on it leads to the detail view of the biblio - Go to "Manage request" - Biblionumber is a link here too, clicking on it leads to 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 70f31ca..d24ecea 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.1.4