From c34e3f1b9fda9928c200746c12916ae5bb49b279 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 --- .../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 70f31cad16..da3100f2d5 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"), @@ -440,7 +450,11 @@
  • - [% request.cost || 'N/A' %] + [% IF request.cost %] + [% request.cost %] + [% ELSE %] + N/A + [% END %]
  • @@ -506,7 +520,11 @@
    Order ID: - [% request.orderid || "N/A" %] + [% IF request.orderid %] + [% request.orderid %] + [% ELSE %] + N/A + [% END %]
    Patron: @@ -518,7 +536,11 @@
    Biblio ID: - [% request.biblio_id || "N/A" %] + [% IF request.biblio_id %] + [% request.biblio_id %] + [% ELSE %] + N/A + [% END %]
    Library: @@ -538,7 +560,11 @@
    Cost: - [% request.cost || "N/A" %] + [% IF request.cost %] + [% request.cost %] + [% ELSE %] + N/A + [% END %]
    Request number: -- 2.11.0