Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members
Jonathan Druart 551721f702 Bug 30055: Make patron searches use the REST API
This patch will rewrite some of our patron searches to make them use the
REST API routes (and so the powerful the DataTables wrapper which will
bring all the nice DT feature to filter, sort, etc.)

The patron searches we will take into account here are those that we use
to select a patron in a pop-up:
 * Guarantor
 * Suggestion's manager
 * Patron's card
 * Serial routing list
 * Users to notify when order is received
 * Manager of an acquisition basket
 * Owner and users of a fund

Regarding permissions there are two main problematics:
 * Filter a patron set by patrons having a
specific subpermissions (in case of adding a manager to a suggestion or
when we deal with acquisition and funds). We added a new
Koha::Patrons->filter_by_have_subpermission method that will take in
parameter a subpermission. To make thing transparent for the callers we
are adding new routes, like /suggestions/managers to list the possible
managers of suggestions.
 * Restrict/allow access to the default patron searches /patrons
We need to access it when a logged in patron does not have borrowers
permission.
Ideally we need a separate "search_borrowers" subpermissions but it's
considered outside the scope of this change.

For each patch you will take care of testing the different permissions
that are into effect (either for the logged in patron or the patrons
returned by the search).

The tables should contain the same columns as prior to this patch,
except for "categories" and "library". We have the filter on top of the
page and so we need to add them to the table as new columns if they
weren't there before.

Test plan (for this patch):
Search for guarantor and select

Test plan (for all patches):
Add/Select patrons from the correct place where you can search for
patrons, play extensively with the filters/pagination/etc

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

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>
2022-04-04 09:46:57 +02:00
..
tables Bug 30055: Make patron searches use the REST API 2022-04-04 09:46:57 +02:00
accountline-details.tt Bug 22435: Update accountline-details page to show all history 2021-08-04 14:06:43 +02:00
apikeys.tt Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
boraccount.tt Bug 28663: Prevent discounts against void lines 2022-03-01 22:47:46 -10:00
deletemem.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharge.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
discharges.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
files.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
holdshistory.tt Bug 27990: Replace obsolete title-string sorting: Patrons 2021-04-06 15:56:31 +02:00
housebound.tt Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
ill-requests.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
mancredit.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
maninvoice.tt Bug 27636: (QA follow-up) Fix tests and validate 2021-04-30 17:07:31 +02:00
member-flags.tt Bug 28882: Disable select/hide all links 2021-09-09 10:59:37 +02:00
member-password.tt Bug 28428: Capitalization: Password Updated 2021-06-21 12:07:28 +02:00
member.tt Bug 30325: (Bug 30098 follow-up) Fix broken patron search redirect when one result 2022-03-22 10:17:33 -10:00
memberentrygen.tt Bug 29684: (QA follow-up) add lost borrower_data. prefix in memberentrygen.tt for: - primary_contact_method - autorenew_checkouts - sort1 - sort2 2022-03-15 22:30:50 -10:00
members-update.tt Bug 28073: Patron modifications should auto-open panel for referring patron record 2021-07-26 12:46:32 +02:00
merge-patrons.tt Bug 29513: Convert remaining breadcrumbs div blocks into nav 2021-12-01 21:38:12 -10:00
moremember-brief.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
moremember-print.tt Bug 29820: Set paging option using boolean instead of string 2022-01-18 21:15:05 -10:00
moremember.tt Bug 6815: Capture member photo via webcam 2022-03-24 14:22:10 -10:00
notices.tt Bug 29491: Improve display of notices in patron details 2022-01-13 16:37:32 -10:00
pay.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
paycollect.tt Bug 29684: (QA follow-up) paycollect.pl don't needs borrower_data at all 2022-03-15 22:30:50 -10:00
printfeercpt.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
printinvoice.tt Bug 26734: Convert printfeercpt/printinvoice to use GetPreparedLetter 2021-04-27 16:23:49 +02:00
purchase-suggestions.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
readingrec.tt Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
recallshistory.tt Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
routing-lists.tt Bug 27846: (follow-up) Add id back to breadcrumbs container 2021-04-01 18:51:38 +02:00
search.tt Bug 30055: Make patron searches use the REST API 2022-04-04 09:46:57 +02:00
statistics.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00
update-child.tt Bug 26703: members folder 2021-04-21 11:16:34 +02:00