Bugzilla – Attachment 100548 Details for
Bug 24565
ILL requests do not display in patron profile in intranet
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24565: Add patron profile to ILL list pages
Bug-24565-Add-patron-profile-to-ILL-list-pages.patch (text/plain), 1.96 KB, created by
Martin Renvoize (ashimema)
on 2020-03-11 12:00:43 UTC
(
hide
)
Description:
Bug 24565: Add patron profile to ILL list pages
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-03-11 12:00:43 UTC
Size:
1.96 KB
patch
obsolete
>From 15480b3aa5468d4494c1be17aa1f9686cf8415c7 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Mon, 3 Feb 2020 11:14:50 +0000 >Subject: [PATCH] Bug 24565: Add patron profile to ILL list pages > >We need the API call to get ILL requests on the patron profile page, >this commit allows this. > >Test plan: >- Do not apply the patch. >- Go to the "Ill requests history" page for a patron who has made ILL > requests >- TEST: Observe that no requests are displayed >- Apply the patch >- Refresh the page >- TEST: Observe that requests are displayed >- Go to the main "ILL requests" page >- TEST: Observe that requests are displayed > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >index 5e23d7ba20..1365174674 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js >@@ -363,8 +363,16 @@ $(document).ready(function() { > // Get our data from the API and process it prior to passing > // it to datatables > var filterParam = prefilters ? '&' + prefilters : ''; >- // Only fire the request if we're on the ILL list page >- if (window.location.search.length == 0) { >+ // Only fire the request if we're on an appropriate page >+ if ( >+ ( >+ // ILL list requests page >+ window.location.href.match(/ill\/ill-requests\.pl/) && >+ window.location.search.length == 0 >+ ) || >+ // Patron profile page >+ window.location.href.match(/members\/ill-requests\.pl/) >+ ) { > var ajax = $.ajax( > '/api/v1/illrequests?embed=metadata,patron,capabilities,library,status_alias,comments,requested_partners' > + filterParam >-- >2.20.1
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 24565
:
98281
|
100414
| 100548