]> git.koha-community.org Git - koha.git/commit
Bug 30093: Make patron search from request.pl use the REST API
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 Feb 2022 15:29:23 +0000 (16:29 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 4 Apr 2022 07:47:00 +0000 (09:47 +0200)
commit89a54da63ea8da4951d9f3f02a10ca50e96c399f
tree93a2271c184176c64b354de98967c7a22832d606
parentce1ab5a38692fb890b526dfc3ab2ea8605ac7cbd
Bug 30093: Make patron search from request.pl use the REST API

In this patch we want to reuse what has been done in the previous bug
report to search patrons using the REST API route.
The code is mainly in members/search.tt, for all the patron searches
that "add" or "select" a patron (popup windows).
The patron search for holds is a bit different, we don't want to open a
popup window.
We are moving to code to an include file (patron-search.tt) to make it
reusable easily.

Note that we are improving how the patron's addresses are displayed, and
provide a JS equivalent to the TT includes files.

Test plan:
Search for patrons from the "Place a hold on" view.
You should see the same view as behaviour, with more filters.

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/js-patron-format-address.inc
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/members/search.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/tables/members_results.tt [deleted file]
members/search.pl
reserve/request.pl