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

(-)a/C4/Utils/DataTables/Members.pm (-1 / +1 lines)
Lines 13-19 sub search { Link Here
13
    my $firstletter = $params->{firstletter};
13
    my $firstletter = $params->{firstletter};
14
    my $categorycode = $params->{categorycode};
14
    my $categorycode = $params->{categorycode};
15
    my $branchcode = $params->{branchcode};
15
    my $branchcode = $params->{branchcode};
16
    my $searchtype = $params->{searchtype} || 'start_with';
16
    my $searchtype = $params->{searchtype} || 'contain';
17
    my $searchfieldstype = $params->{searchfieldstype} || 'standard';
17
    my $searchfieldstype = $params->{searchfieldstype} || 'standard';
18
    my $dt_params = $params->{dt_params};
18
    my $dt_params = $params->{dt_params};
19
19
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-4 / +4 lines)
Lines 68-79 Link Here
68
        <p>
68
        <p>
69
            <label for="searchtype">Search type:</label>
69
            <label for="searchtype">Search type:</label>
70
            <select name="searchtype" id="searchtype">
70
            <select name="searchtype" id="searchtype">
71
              [% IF searchtype != 'start_with' %]
71
              [% IF searchtype == 'start_with' %]
72
                  <option value='start_with'>Starts with</option>
73
                  <option selected="selected" value='contain'>Contains</option>
74
              [% ELSE %]
75
                  <option selected="selected" value='start_with'>Starts with</option>
72
                  <option selected="selected" value='start_with'>Starts with</option>
76
                  <option value='contain'>Contains</option>
73
                  <option value='contain'>Contains</option>
74
              [% ELSE %]
75
                  <option value='start_with'>Starts with</option>
76
                  <option selected="selected" value='contain'>Contains</option>
77
              [% END %]
77
              [% END %]
78
            </select>
78
            </select>
79
        </p>
79
        </p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-3 / +4 lines)
Lines 468-477 function filterByFirstLetterSurname(letter) { Link Here
468
            <li>
468
            <li>
469
              <label for="searchtype_filter">Search type:</label>
469
              <label for="searchtype_filter">Search type:</label>
470
              <select name="searchtype" id="searchtype_filter">
470
              <select name="searchtype" id="searchtype_filter">
471
                <option value='start_with'>Starts with</option>
471
                [% IF searchtype == "start_with" %]
472
                [% IF searchtype == "contain" %]
472
                  <option value='start_with' selected="selected">Starts with</option>
473
                  <option value="contain" selected="selected">Contains</option>
473
                  <option value="contain">Contains</option>
474
                [% ELSE %]
474
                [% ELSE %]
475
                  <option value='start_with'>Starts with</option>
475
                  <option value="contain" selected="selected">Contains</option>
476
                  <option value="contain" selected="selected">Contains</option>
476
                [% END %]
477
                [% END %]
477
              </select>
478
              </select>
(-)a/members/member.pl (-2 / +1 lines)
Lines 79-85 $template->param( Link Here
79
    searchmember        => $searchmember,
79
    searchmember        => $searchmember,
80
    branchcode_filter   => $input->param('branchcode_filter'),
80
    branchcode_filter   => $input->param('branchcode_filter'),
81
    categorycode_filter => $input->param('categorycode_filter'),
81
    categorycode_filter => $input->param('categorycode_filter'),
82
    searchtype          => $input->param('searchtype') || 'start_with',
82
    searchtype          => $input->param('searchtype') || 'contain',
83
    searchfieldstype    => $searchfieldstype,
83
    searchfieldstype    => $searchfieldstype,
84
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
84
    PatronsPerPage      => C4::Context->preference("PatronsPerPage") || 20,
85
    view                => $view,
85
    view                => $view,
86
- 

Return to bug 15930