Koha/api/v1/swagger/paths
Andrew Isherwood 0c7d9e4cc8 Bug 20563: Allow display of requested partners
This patch adds the display of requested partner email addresses when an
ILL backend provides the ability to send requests to partners. Partner
email addresses are displayed in the illlist and illview displays, they
are also included in the 'illrequests' API response.

* api/v1/swagger/paths/illrequests.json:
  - Add 'requested_partners' as an 'embed' enum
* Koha/Illrequest.pm:
  - Add 'requested_partners' accessor calling optional backend 'get_requested_partners' method.
  - Store requested partners upon email send, calling optional backend 'set_requested_partners' method.
  - Add 'requested_parners' embed to overloaded TO_JSON method.
* koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt:
  - Add 'requested_partners' embed to illrequests API call
  - Add render function for "Additional status" datatables column
  - Add display of requested partner email addresses to illlist table
  - Add display of requested partner email addresses to illview display

To test:
1) Enable Interlibrary loans
2) Add a backend that supports sending requests to partners, e.g.
FreeForm
3) Set up at least one partner
4) Create an ILL request
5) Send request to partner(s)
6) Observe partner(s) email address(es) are displayed in "View ILL
requests" view
7) Observe partner(s) email address(es) are displayed in "Manage ILL
request" view

Signed-off-by: mmg@interleaf.ie

https://bugs.koha-community.org/show_bug.cgi?id=20653

Bug 20563: (follow-up) Fix requested partners

As per:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20563#c10

Thanks for the suggestion on merging the "Status" and "Additional status" columns, looks much better!

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2019-03-15 19:33:37 +00:00
..
acquisitions_vendors.json Bug 18120: (QA followup) 'vendors_manage' permission fits better than full acq 2017-09-29 17:13:13 -03:00
cities.json Bug 22227: Make GET /cities staff only 2019-02-15 18:42:46 +00:00
holds.json Bug 19784: Remove reference to 'borrowernumber' param from other endpoints 2018-03-29 11:42:08 -03:00
illrequests.json Bug 20563: Allow display of requested partners 2019-03-15 19:33:37 +00:00
libraries.json Bug 16497: (follow-up) GET operations require staff access 2019-02-19 13:52:14 +00:00
oauth.json Bug 20402: Implement OAuth2 authentication for REST API 2018-05-08 15:55:42 -03:00
patrons.json Bug 22216: Make GET /patrons/{patron_id} staff only 2019-02-22 13:15:11 +00:00
patrons_account.json Bug 20944: OpenAPI spec for /patrons/{patron_id}/account/credits 2018-08-31 12:46:59 +00:00
patrons_password.json Bug 17006: OpenAPI spec 2019-01-28 15:25:39 +00:00
public_patrons.json Bug 22061: (QA follow-up) Rename password_2 => password_repeated 2019-01-28 15:45:56 +00:00
rotas.json Bug 11897: Use 'stockrotation' permission for the endpoint 2018-10-09 15:46:06 +00:00