Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 30161: Remove duplicate z3950_search include 2022-03-22 10:17:34 -10:00
admin Bug 24221: Move OPACMySummaryNote to HTML customizations in additional-contents 2022-03-25 11:01:04 -10:00
authorities Bug 24415: Authority enhancement - Improve access to tabs 2022-03-24 14:22:10 -10:00
basket Bug 26703: authorities, basket and batch folders 2021-04-21 11:16:33 +02:00
batch Bug 29244: Add dialog class where missing in print-notices.tt 2021-10-21 12:24:04 +02:00
catalogue Bug 30227: Replace the use of jQueryUI tabs on bibliographic detail page 2022-03-25 11:01:04 -10:00
cataloguing Bug 30161: Remove duplicate z3950_search include 2022-03-22 10:17:34 -10:00
circ Bug 29103: Change desk when checking in a waiting reserve 2022-03-25 11:01:04 -10:00
clubs Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
course_reserves Bug 28898: (follow-up) Add context to some more occurrences of Term in course reserves 2021-09-21 20:22:57 +02:00
errors Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
ill Bug 30212: Make Select2 available for ILL backends 2022-03-17 11:22:56 -10:00
installer Bug 27823: List upcoming steps during installation process 2021-11-03 15:40:52 +01:00
labels Bug 29824: Allow editing of quick spine labels 2022-02-24 14:35:36 -10:00
mana
members Bug 30055: Make patron searches use the REST API 2022-04-04 09:46:57 +02:00
offline_circ Bug 26703: offline_circ and onboarding folders 2021-04-21 11:16:34 +02:00
onboarding Bug 28982: Use Flatpickr on onboarding pages 2021-11-03 15:40:53 +01:00
patron_lists Bug 16446: (follow-up) Fix translation and adjust radio buttons 2021-10-21 12:24:04 +02:00
patroncards Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
plugins Bug 25285: Fix wrong message about required Koha version in plugins 2022-03-17 11:22:56 -10:00
pos Bug 27801: Fix javascript price calculations 2021-12-15 12:15:00 -10:00
recalls Bug 19532: (follow-up) Fixing OPAC display and staff client errors 2022-03-14 22:45:51 -10:00
reports Bug 29876: (follow-up) Change "Report number" to "Report ID" 2022-02-22 22:27:29 -10:00
reserve Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
reviews Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
rotating_collections Bug 26703: reserve, reviews & rotating_collections folders 2021-04-21 11:16:35 +02:00
serials Bug 26257: Move translatable strings out of subscription-add.tt and into subscription-add.js 2022-02-14 21:41:38 -10:00
services Bug 29496: (bug 27526 follow-up) Fix item form validation 2021-11-19 15:07:10 +01:00
suggestion Bug 24370: (QA follow-up) Make new suggestions default to the library you re viewing 2021-11-02 14:57:04 +01:00
tags Bug 29240: Rename start_for with date_to 2021-10-19 14:08:09 +02:00
test
tools Bug 24221: Move OPACMySummaryNote to HTML customizations in additional-contents 2022-03-25 11:01:04 -10:00
virtualshelves Bug 28782: Use query param list instead of splitting elements using '/' 2022-03-03 16:11:50 -10:00
about.tt Bug 29960: Remove Modernizr dependency in the OPAC 2022-02-16 21:52:51 -10:00
auth.tt Bug 29915: Add selenium tests 2022-03-22 10:17:33 -10:00
intranet-main.tt Bug 30425: April fools 🐟: Add ponies to staff homepage 2022-04-01 08:35:28 +02:00