Koha/koha-tmpl/intranet-tmpl/prog/en/modules/circ
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
..
article-requests.tt Bug 31116: (QA follow-up) Remove duplicate line 2022-07-11 18:22:23 -03:00
bookcount.tt Bug 27631: (follow-up) Some minor corrections 2022-04-20 09:03:38 -10:00
branchoverdues.tt
branchtransfers.tt Bug 30733: Split strings differently 2022-06-17 10:16:44 -03:00
checkout-notes.tt
circulation-home.tt Bug 27631: circ folder 2022-04-20 09:03:37 -10:00
circulation.tt Bug 30578: Remove circ/ysearch.pl in favor of the /patrons REST API route 2022-07-18 11:01:34 -03:00
circulation_batch_checkouts.tt Bug 30772: Terminology: Replace instances of "reserve" with "hold" 2022-06-01 16:00:00 -03:00
offline-mf.tt Bug 13614: Replace usage of YUI on basket groups page 2022-06-07 09:32:17 -03:00
offline.tt Bug 30453: Convert offline circulation tabs to Bootstrap 2022-05-02 11:22:57 -10:00
on-site_checkouts.tt
overdue.tt Bug: 27996: Updates the Circulation report overdues page to display date in red. 2022-07-08 15:24:11 -03:00
pendingreserves.tt Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
printslip.tt Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
renew.tt Bug 27631: circ folder 2022-04-20 09:03:37 -10:00
request-article.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
reserveratios.tt Bug 29648: Holds ratios - normal but no sort 2022-04-27 11:20:44 -10:00
returns.tt Bug 28854: (follow-up) Translations fixes 2022-07-13 10:35:53 -03:00
set-library.tt Bug 27631: circ folder 2022-04-20 09:03:37 -10:00
transfers_to_send.tt Bug 29859: Use iterator instead of as_list 2022-02-09 15:36:23 -10:00
transferstoreceive.tt Bug 30924: Fix transferstoreceive.pl explosion on recalls 2022-06-13 10:30:50 -03:00
view_holdsqueue.tt Bug 30733: Simplify translatable strings 2022-06-17 10:16:34 -03:00
waitingreserves.tt Bug 31141: Remove 'select_column' from waiting_holds.inc 2022-07-13 10:35:09 -03:00