View | Details | Raw Unified | Return to bug 14782
Collapse All | Expand All

(-)a/C4/Utils/DataTables/Members.pm (-1 / +2 lines)
Lines 61-69 sub search { Link Here
61
    # split on coma
61
    # split on coma
62
    $searchmember =~ s/,/ /g if $searchmember;
62
    $searchmember =~ s/,/ /g if $searchmember;
63
    my $searchfields = {
63
    my $searchfields = {
64
        standard => 'surname,firstname,othernames,cardnumber',
64
        standard => 'surname,firstname,othernames,cardnumber,userid',
65
        email => 'email,emailpro,B_email',
65
        email => 'email,emailpro,B_email',
66
        borrowernumber => 'borrowernumber',
66
        borrowernumber => 'borrowernumber',
67
        userid => 'userid',
67
        phone => 'phone,phonepro,B_phone,altcontactphone,mobile',
68
        phone => 'phone,phonepro,B_phone,altcontactphone,mobile',
68
        address => 'streettype,address,address2,city,state,zipcode,country',
69
        address => 'streettype,address,address2,city,state,zipcode,country',
69
        dateofbirth => 'dateofbirth',
70
        dateofbirth => 'dateofbirth',
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (+5 lines)
Lines 32-37 Link Here
32
              [% ELSE %]
32
              [% ELSE %]
33
                <option value='borrowernumber'>Borrower number</option>
33
                <option value='borrowernumber'>Borrower number</option>
34
              [% END %]
34
              [% END %]
35
              [% IF searchfieldstype == "userid" %]
36
                <option selected="selected" value='userid'>Username</option>
37
              [% ELSE %]
38
                <option value='userid'>Username</option>
39
              [% END %]
35
              [% IF searchfieldstype == "phone" %]
40
              [% IF searchfieldstype == "phone" %]
36
                <option selected="selected" value='phone'>Phone number</option>
41
                <option selected="selected" value='phone'>Phone number</option>
37
              [% ELSE %]
42
              [% ELSE %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (+5 lines)
Lines 424-429 function filterByFirstLetterSurname(letter) { Link Here
424
                [% ELSE %]
424
                [% ELSE %]
425
                  <option value='borrowernumber'>Borrower number</option>
425
                  <option value='borrowernumber'>Borrower number</option>
426
                [% END %]
426
                [% END %]
427
                [% IF searchfieldstype == "userid" %]
428
                  <option selected="selected" value='userid'>Username</option>
429
                [% ELSE %]
430
                  <option value='userid'>Username</option>
431
                [% END %]
427
                [% IF searchfieldstype == "phone" %]
432
                [% IF searchfieldstype == "phone" %]
428
                  <option selected="selected" value='phone'>Phone number</option>
433
                  <option selected="selected" value='phone'>Phone number</option>
429
                [% ELSE %]
434
                [% ELSE %]
(-)a/svc/members/search (-2 / +1 lines)
Lines 140-146 All following params are optional: Link Here
140
    firstletter => search patrons with surname begins with this pattern (currently only used for 1 letter)
140
    firstletter => search patrons with surname begins with this pattern (currently only used for 1 letter)
141
    categorycode and branchcode => search patrons belong to a given categorycode or a branchcode
141
    categorycode and branchcode => search patrons belong to a given categorycode or a branchcode
142
    searchtype: can be 'contain' or 'start_with'
142
    searchtype: can be 'contain' or 'start_with'
143
    searchfieldstype: Can be 'standard', 'email', 'borrowernumber', 'phone' or 'address'
143
    searchfieldstype: Can be 'standard', 'email', 'borrowernumber', 'userid', 'phone' or 'address'
144
144
145
=cut
145
=cut
146
146
147
- 

Return to bug 14782