Koha-clms/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 5c3ee79814
Bug 32176: Remove duplicated code to select patron from autocomplete
On bug 31782 we centralized the code to autocomplete when searching for patron
There were several occurrences in the code where some code were
duplicated (when selecting patrons and allowing to remove them from a
list).

This patch centralizes this code by adding another parameter to
patron_autocomplete: on-select-add-to

Test plan:
When duplicating an order, searching for orders, editing a course (and
adding instructors) and adding patrons to a patron list, you should now
see the correct patron details displayed: with preferred name, without
"null" in case of missing surname, correct spacing, etc. Like (almost)
everywhere else in Koha.

Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2025-10-31 15:26:25 -06:00
..
acqui Bug 32176: Remove duplicated code to select patron from autocomplete 2025-10-31 15:26:25 -06:00
admin Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
authorities Bug 40092: Fill auto-populated control fields in MARC editors 2025-07-11 15:26:49 -06:00
basket Bug 40222: Bootstrap popover components not updated for BS5 2025-07-23 16:36:19 -06:00
batch Bug 40407: Remove legacy "pre-wrap" versions 2025-07-21 14:01:32 -06:00
bookings Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
catalogue Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
cataloguing Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
circ Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
clubs Bug 40400: Changed club start date and end date to Enrollment start date and Enrollment end date 2025-07-28 16:26:45 -06:00
course_reserves Bug 32176: Remove duplicated code to select patron from autocomplete 2025-10-31 15:26:25 -06:00
erm Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
errors Bug 28146: Respect ReplytoDefault in error pages 2025-10-09 14:58:41 -06:00
ill Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
installer Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
labels Bug 40366: (follow-up) Remove inclusion of greybox.inc 2025-09-18 14:30:56 -06:00
mana Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
members Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
offline_circ Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
onboarding Bug 40557: Fix layout of enrollment period fields in onboarding 2025-08-29 11:08:50 -06:00
patron_lists Bug 32176: Remove duplicated code to select patron from autocomplete 2025-10-31 15:26:25 -06:00
patroncards Bug 40412: (follow-up) Remove inclusion of greybox.inc 2025-09-18 14:30:54 -06:00
plugins Bug 38984: Uniformize noSort NoExport NoExport 2025-04-22 08:46:33 +02:00
pos Bug 40625: Fix duplicate cashup records via POST/REDIRECT/GET pattern 2025-09-26 10:37:00 -06:00
preservation Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
recalls Bug 27934: Remove title-string to order by dates 2025-09-19 08:42:51 -06:00
reports Bug 41082: Fix batch tools from reports when itemnumber col has been renamed 2025-10-31 15:26:08 -06:00
reserve Bug 40517: Patron page holds table buttons rearrangement 2025-10-29 11:50:09 -06:00
reviews Bug 28453: Update pagination subroutine to generate Bootstrap markup 2025-02-18 10:55:30 +01:00
rotating_collections Bug 39567: Remove form-submit includes from tt files 2025-05-15 08:34:01 +02:00
serials Bug 16721: Add table configuration to serial claims table 2025-10-14 14:51:59 -06:00
services Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
suggestion Bug 40593: Restore searchable columns to the suggestions table 2025-09-26 10:36:59 -06:00
tags Bug 39083: Fix title sorting on list of tagged titles 2025-05-07 14:29:57 +02:00
tools Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
virtualshelves Bug 40585: (follow-up) Display error if no records were found 2025-09-19 08:42:46 -06:00
about.tt Bug 40692: Wrong color background in Perl modules page 2025-09-05 08:02:26 -06:00
auth.tt Bug 40160: Use HTTPS for links to community websites 2025-07-11 15:26:50 -06:00
intranet-main.tt Bug 40040: RTL CSS files not loaded in templates; legacy right-to-left.css causing UI issues 2025-09-05 08:02:27 -06:00