Bugzilla – Attachment 157421 Details for
Bug 35106
ILL - Add patron autocomplete to 'Edit request' Patron ID input
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 35106: Add patron search autocomplete to Patron ID input
Bug-35106-Add-patron-search-autocomplete-to-Patron.patch (text/plain), 2.25 KB, created by
Pedro Amorim
on 2023-10-19 11:15:20 UTC
(
hide
)
Description:
Bug 35106: Add patron search autocomplete to Patron ID input
Filename:
MIME Type:
Creator:
Pedro Amorim
Created:
2023-10-19 11:15:20 UTC
Size:
2.25 KB
patch
obsolete
>From afbaa87d1ee466ae6fe7e28a3f46963110e1f767 Mon Sep 17 00:00:00 2001 >From: Pedro Amorim <pedro.amorim@ptfs-europe.com> >Date: Thu, 19 Oct 2023 09:35:32 +0000 >Subject: [PATCH] Bug 35106: Add patron search autocomplete to Patron ID input > >Test plan, k-t-d: >1) Install FreeForm and enable ILLmodule, run: >bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh) >2) Visit /cgi-bin/koha/ill/ill-requests.pl >3) Create 'New ILL request' >4) Select the request type, input cardnumber '42' and select a library. Hit 'Create' >5) Manage the request created just now: click the request id or 'manage request' button from the table >6) Click "Edit request" from the top actions toolbar >7) Input text in Patron ID e.g. 'koha'. Notice you get patron suggestions. >8) Click one of the suggestions and save the request, notice the patron is saved correctly. >--- > .../prog/en/modules/ill/ill-requests.tt | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >index 87d73fc747..60300c53f2 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/ill/ill-requests.tt >@@ -396,7 +396,7 @@ > <!-- generic_confirm ends here --> > > [% ELSIF query_type == 'edit_action' %] >- <form method="POST" action="/cgi-bin/koha/ill/ill-requests.pl"> >+ <form method="POST" id="ill_edit_action_form" action="/cgi-bin/koha/ill/ill-requests.pl"> > <fieldset class="rows"> > <legend>Request details</legend> > <ol> >@@ -945,6 +945,17 @@ > $('.ill_checkout_due_date').show(); > } > }); >+ >+ patron_autocomplete( >+ $('#ill_edit_action_form #borrowernumber'), >+ { >+ 'on-select-callback': function( event, ui ) { >+ $("#ill_edit_action_form #borrowernumber").val( ui.item.patron_id ); >+ return false; >+ } >+ } >+ ); >+ > </script> > [% INCLUDE 'ill-list-table-strings.inc' %] > [% INCLUDE 'ill-batch-table-strings.inc' %] >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 35106
:
157421
|
157422
|
157498
|
157499
|
159934
|
159935
|
164258
|
164259
|
164260
|
165543
|
165544
|
165545