From 94511a6e8bd73a4edd46f5225fdc73e80b7759f5 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 --- .../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 0d1ec14417..4776a24610 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: - [% request.biblio_id || "N/A" | html %] + [% IF request.biblio_id %] + [% request.biblio_id | html %] + [% ELSE %] + N/A + [% END %]
Library: -- 2.11.0