From 7a01db9a2f4f9f1c21eaaefdb821026f1cd12cdf 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 --- .../prog/en/modules/ill/ill-requests.tt | 36 +++++++++++++++++++--- 1 file changed, 31 insertions(+), 5 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 8bc9268364..0763ba8552 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; @@ -186,7 +195,8 @@ func: createStatus }, biblio_id: { - name: _("Biblio ID") + name: _("Biblio ID"), + func: createBiblioLink }, library: { name: _("Library"), @@ -441,7 +451,11 @@
  • - [% request.cost || 'N/A' | html %] + [% IF request.cost %] + [% request.cost %] + [% ELSE %] + N/A + [% END %]
  • @@ -511,7 +525,11 @@
    Order ID: - [% request.orderid || "N/A" | html %] + [% IF request.orderid %] + [% request.orderid %] + [% ELSE %] + N/A + [% END %]
    Patron: @@ -523,7 +541,11 @@
    Biblio ID: - [% request.biblio_id || "N/A" | html %] + [% IF request.biblio_id %] + [% request.biblio_id %] + [% ELSE %] + N/A + [% END %]
    Library: @@ -543,7 +565,11 @@
    Cost: - [% request.cost || "N/A" | html %] + [% IF request.cost %] + [% request.cost %] + [% ELSE %] + N/A + [% END %]
    Request number: -- 2.11.0