Koha-clms/circ
Kyle M Hall 50f270140a Bug 17352 - Patron search type is hard coded to 'contain' in circ/circulation.pl
The patron search type is hard coded to 'contain' in
circ/circulation.pl.

This causes problems because a mis-scanned cardnumber can bring up the
wrong patron.

The example that our partner gave us involved scanning '1733', which
doesn't match any borrowers when we do a 'start_with' search, but
matches the cardnumber 'p291733'.

If we follow the usage in members/member.pl, we can set searchtype in
HTTP params, which is amenable to fixes in intranetuserjs

Test Plan:
1) Apply this patch
2) Use the checkout search, not changes should be noted

Extra credit:
1) Add javascript to intranetuserjs to add a hidden input named
'searchtype' with the value 'start_with'
2) Checkout searches should now give only results where a searched
   field starts with the given string(s)

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 56da7be50a)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
(cherry picked from commit 26efec07d7)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
2016-10-24 11:35:49 +02:00
..
add_message.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
bookcount.pl Bug 14890: Simplify processing to display a date with hours 2015-10-08 10:59:05 -03:00
branchoverdues.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
branchtransfers.pl Bug 12045 - Transfer impossible if barcode includes spaces 2016-01-27 15:36:03 +01:00
circulation-home.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
circulation.pl Bug 17352 - Patron search type is hard coded to 'contain' in circ/circulation.pl 2016-10-24 11:35:49 +02:00
del_message.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
hold-transfer-slip.pl Bug 13482: Prevent race condition on printing a ReserveSlip 2015-04-22 16:32:15 -03:00
offline-mf.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
offline.pl Bug 11944: use CGI( -utf8 ) everywhere 2015-01-13 13:07:21 -03:00
on-site_checkouts.pl Bug 11201: Add a in-house use list pages 2015-03-31 11:30:55 -03:00
overdue.pl Bug 17001: fix due date filter on the overdue report 2016-08-24 12:45:36 +02:00
pendingreserves.pl Bug 15560: Fix display of multiple item types in pending reserves report 2016-01-25 12:41:55 +01:00
renew.pl Bug 15462 - Unable to renew books via circ/renew.pl 2016-01-12 14:08:56 +01:00
reserveratios.pl Bug 15997 - Hold Ratios for ordered items doesn't count orders where AcqCreateItem is set to 'receiving' 2016-03-23 08:56:18 +01:00
returns.pl Bug 16154: CGI->multi_param - Force scalar context 2016-05-16 14:42:43 +02:00
selectbranchprinter.pl Bug 16154: CGI->multi_param - Force scalar context 2016-05-16 14:42:43 +02:00
transfer-slip.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
transferstoreceive.pl Bug 15344: Remove some other calls of GetMemberDetails from pl scripts 2015-12-31 10:29:16 +01:00
view_holdsqueue.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
waitingreserves.pl Bug 17010: Fix syntax error (RMaint followup) 2016-09-16 14:07:28 +02:00
ypattrodue-attr-search-authvalue.pl Bug 9978: (followup) Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:43 -03:00
ysearch.pl Bug 14871: Extend the patrons search to search like %$term% (checkout tab) 2015-10-21 13:31:41 -03:00