Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
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
..
access_files.tt
additional-contents.tt Bug 22659: Add save and continue button to additional-contents.tt 2022-06-25 10:52:35 -03:00
automatic_item_modification_by_age.tt
batch_delete_records.tt
batch_extend_due_dates.tt
batch_record_modification.tt
batchMod-del.tt
batchMod-edit.tt
batchMod.tt
cleanborrowers.tt
csv-profiles.tt
export.tt
holidays.tt
import_borrowers.tt
inventory.tt Bug 30994: Typo: item was on loan. couldn't be returned. 2022-06-25 15:23:22 -03:00
letter.tt Bug 30773: (follow-up) Remove spaces between brackets 2022-07-08 15:12:27 -03:00
manage-marc-import.tt
marc_modification_templates.tt
modborrowers.tt
overduerules.tt
picture-upload.tt
preview_letter.tt Bug 30767: Changes word "issue" to "item" 2022-07-08 15:23:00 -03:00
problem-reports.tt
quotes-upload.tt Bug 30903: (follow-up) Fix error message class 2022-07-06 16:42:05 -03:00
quotes.tt Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt
stockrotation.tt
tools-home.tt Bug 31122: Terminology - Replace occurences of 'Notices & slips' with 'Notices and slips' 2022-07-08 15:08:23 -03:00
upload-images.tt
upload.tt
viewlog.tt Bug 30823: Filling recalls uses 'FILL' action in action logs 2022-07-01 16:09:13 -03:00