From 7effe35ec6973750c783a541aece5bb374d755ea 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 Signed-off-by: Katrin Fischer --- .../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 3724895..fe9a7b3 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"), @@ -526,7 +536,11 @@
Bibliographic record ID: - [% IF request.biblio_id %][% request.biblio_id | html %][% ELSE %]N/A[% END %] + [% IF request.biblio_id %] + [% request.biblio_id | html %] + [% ELSE %] + N/A + [% END %]
Library: -- 2.1.4