Koha/api/v1/swagger/paths
Jonathan Druart 9309dedb53
Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route
This patch removes the circ/ysearch.pl script used by the jQuery autocomplete widget.
We can now use the /api/v1/patrons endpoint to retrieve the patrons and
generate the patron result list.

Prior to this patch the different occurrences were defining the style
and the list of patron's attributes to display for each option (name,
date of birth, age, address, etc.). Now they are all displaying the same
information.

To acchieve this we had to:
* Make js-date-format.inc and js-patron-get-age.inc available from js_includes.inc
and so available from everywhere, which is certainly a good move. We
could discuss why this code is in include file instead of JS files
however.
* Remove the .ajaxSetup call in tags-review.js to reduce its scope: an
underscore parameter was added to the REST API query (?)

A better solution would have been to extend the existing widget
(https://learn.jquery.com/jquery-ui/widget-factory/extending-widgets/)
but I didn't manage to do it, and I feel like there is a bug in jQuery
autocomplete. The "source" was not taken into account.
We could think about replacing the jQuery autocomplete with something
else, but that's outside the scope of this bug.

Test plan:
Search for patrons and confirm the autocomplete works and that the
"select" action works as before (either a redirect or select the
patrons) on the different views:
* Place a hold
* Search for tags (form on the left)
* In the header, "Check out" and "Search patrons"
* Add instructors to course reserves
* View logs (the "librarian" input)

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-07-18 11:01:34 -03:00
..
acquisitions_baskets.yaml Bug 30536: (QA follow-up) POD + Spec Consistency 2022-05-03 11:19:51 -10:00
acquisitions_funds.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
acquisitions_orders.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
acquisitions_vendors.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
advancededitormacros.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
article_requests.yaml
biblios.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
biblios_item_groups.yaml Bug 24857: Fix missing additionalProperties in spec 2022-07-08 19:11:23 -03:00
cash_registers.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
checkouts.yaml Bug 30275: (follow-up) Rebase fixes 2022-07-05 09:46:12 -03:00
circulation-rules.yaml
cities.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
clubs.yaml
config_smtp_servers.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
holds.yaml Bug 30780: Librarians with only "place_holds" permissions can not update holds data via REST API 2022-06-13 11:48:10 -03:00
ill_backends.yaml
illrequests.yaml
import_batch_profiles.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
import_batches.yaml Bug 30855: Rename /import => /import_batches 2022-06-02 13:42:28 -03:00
items.yaml Bug 28854: Improve lost details display for bundle items 2022-07-13 10:35:36 -03:00
libraries.yaml Bug 30536: Update spec files 2022-05-03 11:19:51 -10:00
oauth.yaml
patrons.yaml Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
patrons_account.yaml
patrons_extended_attributes.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
patrons_holds.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
patrons_password.yaml Bug 29926: (QA follow-up) Date format missing in spec 2022-05-06 10:33:10 -10:00
public_patrons.yaml
quotes.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00
return_claims.yaml
rotas.yaml
suggestions.yaml Bug 30663: Add x-koha-override options to /suggestions 2022-05-05 10:26:41 -03:00
transfer_limits.yaml Bug 30394: Add x-koha-request-id support on API routes 2022-04-04 16:23:46 +02:00