From dd91fa17124b4432321ac4f64099a225623521bb 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 Signed-off-by: Tomas Cohen Arazi --- .../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 6a17b7d88a..fb580339c6 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"), @@ -514,7 +524,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.39.5