Koha-clms/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
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
..
csv Bug 38664: Fix some tests 2025-02-11 14:58:26 +01:00
acqui-home.tt Bug 40988: Remove pagination for funds on acqui home 2025-10-31 15:26:11 -06:00
addorder.tt Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
addorderiso2709.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
ajax.tt
…
basket.tt Bug 40982: Remove cannot_be_toggled for modify and cancel 2025-10-20 10:12:54 -06:00
basketgroup.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
basketheader.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
booksellers.tt Bug 38010: (QA follow-up) UI fixes 2025-05-02 17:19:13 +02:00
cancelorder.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
duplicate_orders.tt Bug 32176: Remove duplicated code to select patron from autocomplete 2025-10-31 15:26:25 -06:00
edifactmsgs.tt Bug 40333: Tidy commit 2025-10-22 07:42:52 -06:00
edimsg.tt Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
histsearch.tt Bug 32176: Remove duplicated code to select patron from autocomplete 2025-10-31 15:26:25 -06:00
invoice-files.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
invoice.tt Bug 40333: (follow-up) Terminology 2025-10-22 07:42:51 -06:00
invoices.tt Bug 39567: Remove form-submit includes from tt files 2025-05-15 08:34:01 +02:00
lateorders.tt Bug 39816: (QA follow-up) Rename 'late_since_days' to 'days_late' 2025-10-22 07:42:55 -06:00
moddeliverydate.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
modordernotes.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
neworderempty.tt Bug 40870: Set the fund code to selected on acqui/neworderempty.pl 2025-09-24 09:25:05 -06:00
neworderempty_duplicate.tt Bug 7132: Acq: Check for duplicates when ordering from empty record 2025-10-15 16:12:08 -06:00
newordersubscription.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
newordersuggestion.tt Bug 31632: (QA follow-up) Adjust TT filters and remove extra form-submit.js 2025-06-30 16:00:43 -06:00
ordered.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
orderreceive.tt Bug 40743: Fix description of inactive budget 2025-10-24 07:57:02 -06:00
parcel.tt Bug 40510: Add context to the word "More" in several templates 2025-09-19 08:42:45 -06:00
parcels.tt Bug 39834: Replace some tabs with spaces 2025-06-02 15:26:17 -06:00
showorder.tt Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
spent.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
transferorder.tt Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
uncertainprice.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
vendor_issues.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00
vendors.tt Bug 40958: Move patron_to_html to a standalone JS file 2025-10-31 15:26:23 -06:00
z3950_search.tt Bug 38010: (QA follow-up) Update routes to include 'acquisition' 2025-05-02 17:19:09 +02:00