@@ -, +, @@ using the username (userid) - Apply patch - Do searches from Home > Patrons - Search after a full username or parts of a username with Search fields = Standard and Search fields = Userid - Perform the searches from the top bar (expand with [+]) and from the "Filters" part at the left - Make sure that other searches behave as before --- C4/Utils/DataTables/Members.pm | 3 ++- koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc | 5 +++++ koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt | 5 +++++ svc/members/search | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) --- a/C4/Utils/DataTables/Members.pm +++ a/C4/Utils/DataTables/Members.pm @@ -61,9 +61,10 @@ sub search { # split on coma $searchmember =~ s/,/ /g if $searchmember; my $searchfields = { - standard => 'surname,firstname,othernames,cardnumber', + standard => 'surname,firstname,othernames,cardnumber,userid', email => 'email,emailpro,B_email', borrowernumber => 'borrowernumber', + userid => 'userid', phone => 'phone,phonepro,B_phone,altcontactphone,mobile', address => 'streettype,address,address2,city,state,zipcode,country', dateofbirth => 'dateofbirth', --- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc @@ -32,6 +32,11 @@ [% ELSE %] [% END %] + [% IF searchfieldstype == "userid" %] + + [% ELSE %] + + [% END %] [% IF searchfieldstype == "phone" %] [% ELSE %] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt @@ -424,6 +424,11 @@ function filterByFirstLetterSurname(letter) { [% ELSE %] [% END %] + [% IF searchfieldstype == "userid" %] + + [% ELSE %] + + [% END %] [% IF searchfieldstype == "phone" %] [% ELSE %] --- a/svc/members/search +++ a/svc/members/search @@ -140,7 +140,7 @@ All following params are optional: firstletter => search patrons with surname begins with this pattern (currently only used for 1 letter) categorycode and branchcode => search patrons belong to a given categorycode or a branchcode searchtype: can be 'contain' or 'start_with' - searchfieldstype: Can be 'standard', 'email', 'borrowernumber', 'phone' or 'address' + searchfieldstype: Can be 'standard', 'email', 'borrowernumber', 'userid', 'phone' or 'address' =cut --