Bugzilla – Attachment 75656 Details for
Bug 20797
If an Ill request has an associated bib record, the detail view should contain a link to the record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20797 - Add link to biblio detail view from ILL detail view
Bug-20797---Add-link-to-biblio-detail-view-from-IL.patch (text/plain), 4.39 KB, created by
Andrew Isherwood
on 2018-05-30 10:49:42 UTC
(
hide
)
Description:
Bug 20797 - Add link to biblio detail view from ILL detail view
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2018-05-30 10:49:42 UTC
Size:
4.39 KB
patch
obsolete
>From c34e3f1b9fda9928c200746c12916ae5bb49b279 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >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 @@ > '</a>'; > }; > >+ // Our 'render' function for biblio_id >+ var createBiblioLink = function(data, type, row) { >+ return '<a title="' + _("View biblio details") + '" ' + >+ 'href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=' + >+ row.biblio_id + '">' + >+ row.biblio_id + >+ '</a>'; >+ }; >+ > // 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 @@ > </li> > <li class="cost"> > <label class="cost">Cost:</label> >- [% request.cost || 'N/A' %] >+ [% IF request.cost %] >+ [% request.cost %] >+ [% ELSE %] >+ <span>N/A</span> >+ [% END %] > </li> > <li class="req_id"> > <label class="req_id">Request number:</label> >@@ -506,7 +520,11 @@ > <div class="rows"> > <div class="orderid"> > <span class="label orderid">Order ID:</span> >- [% request.orderid || "N/A" %] >+ [% IF request.orderid %] >+ [% request.orderid %] >+ [% ELSE %] >+ <span>N/A</span> >+ [% END %] > </div> > <div class="borrowernumber"> > <span class="label borrowernumber">Patron:</span> >@@ -518,7 +536,11 @@ > > <div class="biblio_id"> > <span class="label biblio_id">Biblio ID:</span> >- [% request.biblio_id || "N/A" %] >+ [% IF request.biblio_id %] >+ <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% request.biblio_id %]">[% request.biblio_id %]</a> >+ [% ELSE %] >+ <span>N/A</span> >+ [% END %] > </div> > <div class="branchcode"> > <span class="label branchcode">Library:</span> >@@ -538,7 +560,11 @@ > </div> > <div class="cost"> > <span class="label cost">Cost:</span> >- [% request.cost || "N/A" %] >+ [% IF request.cost %] >+ [% request.cost %] >+ [% ELSE %] >+ <span>N/A</span> >+ [% END %] > </div> > <div class="req_id"> > <span class="label req_id">Request number:</span> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20797
:
75454
|
75485
|
75486
|
75656
|
75870
|
79495
|
79496
|
79497
|
79578
|
79579
|
79580
|
79581
|
79582
|
79946
|
79947
|
80018
|
80019
|
80021
|
80022
|
80038
|
80040
|
80047
|
80048
|
80049
|
80055
|
80071
|
80072
|
80073
|
80120
|
80121
|
80122