Bug 18589: Show ILLs as part of patron profile
authorAndrew Isherwood <andrew.isherwood@ptfs-europe.com>
Mon, 11 Mar 2019 11:56:28 +0000 (11:56 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 22 Mar 2019 20:21:46 +0000 (20:21 +0000)
commitdaac852c04eb0e9c866aef970f8a79e6db9261d3
treef4685bc34e80b14e9a1c00c23fdf11e95459bb2c
parente9fa69ca64e78cc9ea540e3fed1e9ffb1b3488fe
Bug 18589: Show ILLs as part of patron profile

This patch moves the display of a patron's ILL requests to be inline in
the Patron Profile page, as per all other patron information.

It includes a substantial refactor of
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt in that it
moves the display of the illlist table (which is populated by an API
request) into it's own separate include file. It also moves the
datatable related Javascript for this table into it's own JS file. Doing
this allows us to reuse both in both the new members/ill-requests.tt
template and the pre-existing ill/ill-requests.tt template.

To test:
1) Ensure ILL is enabled and your user has sufficient permissions
2) Ensure your user has some ILL requests
3) Navigate to the user's patron profile page
4) Click on the "Interlibrary loans" tab
5) Observe that the requests table is displayed inline
6) Observe that only your user's requests are displayed

Signed-off-by: Niamh.Walker-Headon@it-tallaght.ie

This is essentially a reimplementation of attachment 84796 to take into
account all changes that had happened beneath this bug and also to
ensure JS strings are translatable.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/REST/V1/Illrequests.pm
ill/ill-requests.pl
koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc
koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table-strings.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/includes/ill-list-table.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt
koha-tmpl/intranet-tmpl/prog/en/modules/members/ill-requests.tt [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/js/ill-list-table.js [new file with mode: 0644]
members/ill-requests.pl [new file with mode: 0755]