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

(-)a/C4/Auth.pm (-1 / +1 lines)
Lines 480-486 sub get_template_and_user { Link Here
480
            AmazonCoverImages                                                          => C4::Context->preference("AmazonCoverImages"),
480
            AmazonCoverImages                                                          => C4::Context->preference("AmazonCoverImages"),
481
            AutoLocation                                                               => C4::Context->preference("AutoLocation"),
481
            AutoLocation                                                               => C4::Context->preference("AutoLocation"),
482
            "BiblioDefaultView" . C4::Context->preference("IntranetBiblioDefaultView") => 1,
482
            "BiblioDefaultView" . C4::Context->preference("IntranetBiblioDefaultView") => 1,
483
            PatronAutocompletion                                                       => C4::Context->preference("PatronAutocompletion"),
483
            PatronAutoComplete                                                       => C4::Context->preference("PatronAutoComplete"),
484
            FRBRizeEditions                                                            => C4::Context->preference("FRBRizeEditions"),
484
            FRBRizeEditions                                                            => C4::Context->preference("FRBRizeEditions"),
485
            IndependentBranches                                                        => C4::Context->preference("IndependentBranches"),
485
            IndependentBranches                                                        => C4::Context->preference("IndependentBranches"),
486
            IntranetNav                                                                => C4::Context->preference("IntranetNav"),
486
            IntranetNav                                                                => C4::Context->preference("IntranetNav"),
(-)a/C4/UsageStats.pm (-1 / +1 lines)
Lines 182-188 sub BuildReport { Link Here
182
        TransferWhenCancelAllWaitingHolds
182
        TransferWhenCancelAllWaitingHolds
183
        AllowAllMessageDeletion
183
        AllowAllMessageDeletion
184
        AllowOfflineCirculation
184
        AllowOfflineCirculation
185
        PatronAutocompletion
185
        PatronAutoComplete
186
        CircAutoPrintQuickSlip
186
        CircAutoPrintQuickSlip
187
        DisplayClearScreenButton
187
        DisplayClearScreenButton
188
        FilterBeforeOverdueReport
188
        FilterBeforeOverdueReport
(-)a/circ/branchtransfers.pl (-1 / +1 lines)
Lines 241-247 $template->param( Link Here
241
    setwaiting              => $setwaiting,
241
    setwaiting              => $setwaiting,
242
    trsfitemloop            => \@trsfitemloop,
242
    trsfitemloop            => \@trsfitemloop,
243
    errmsgloop              => \@errmsgloop,
243
    errmsgloop              => \@errmsgloop,
244
    PatronAutocompletion    => C4::Context->preference("PatronAutocompletion"),
244
    PatronAutoComplete    => C4::Context->preference("PatronAutoComplete"),
245
);
245
);
246
246
247
# Checking if there is a Fast Cataloging Framework
247
# Checking if there is a Fast Cataloging Framework
(-)a/circ/circulation.pl (-1 / +1 lines)
Lines 636-642 my $has_modifications = Koha::Patron::Modifications->search( { borrowernumber => Link Here
636
$template->param(
636
$template->param(
637
    debt_confirmed            => $debt_confirmed,
637
    debt_confirmed            => $debt_confirmed,
638
    SpecifyDueDate            => $duedatespec_allow,
638
    SpecifyDueDate            => $duedatespec_allow,
639
    PatronAutocompletion      => C4::Context->preference("PatronAutocompletion"),
639
    PatronAutoComplete      => C4::Context->preference("PatronAutoComplete"),
640
    debarments                => scalar GetDebarments({ borrowernumber => $borrowernumber }),
640
    debarments                => scalar GetDebarments({ borrowernumber => $borrowernumber }),
641
    todaysdate                => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ),
641
    todaysdate                => output_pref( { dt => dt_from_string()->set(hour => 23)->set(minute => 59), dateformat => 'sql' } ),
642
    has_modifications         => $has_modifications,
642
    has_modifications         => $has_modifications,
(-)a/installer/data/mysql/atomicupdate/bug_23697.perl (-2 / +2 lines)
Lines 1-6 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "UPDATE systempreferences SET variable="PatronAutocompletion" WHERE variable="CircAutocompl" LIMIT 1" );
3
    $dbh->do( "UPDATE systempreferences SET variable="PatronAutoComplete" WHERE variable="CircAutocompl" LIMIT 1" );
4
    SetVersion( $DBversion );
4
    SetVersion( $DBversion );
5
    print "Upgrade to $DBversion done (Bug 23697 - Rename CircAutocompl system preference to PatronAutocompletion)\n";
5
    print "Upgrade to $DBversion done (Bug 23697 - Rename CircAutocompl system preference to PatronAutoComplete)\n";
6
}
6
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 463-469 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
463
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
463
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
464
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
464
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
465
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
465
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
466
('PatronAutocompletion','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
466
('PatronAutoComplete','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
467
('patronimages','0',NULL,'Enable patron images for the Staff Client','YesNo'),
467
('patronimages','0',NULL,'Enable patron images for the Staff Client','YesNo'),
468
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
468
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
469
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
469
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-2 / +2 lines)
Lines 81-87 Link Here
81
[% END %]
81
[% END %]
82
82
83
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
83
[% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
84
    [% IF ( PatronAutocompletion ) %]
84
    [% IF ( PatronAutoComplete ) %]
85
        <script>
85
        <script>
86
            $(document).ready(function(){
86
            $(document).ready(function(){
87
                var obj = $( "#findborrower" ).autocomplete({
87
                var obj = $( "#findborrower" ).autocomplete({
Lines 109-115 Link Here
109
        </script>
109
        </script>
110
    [% END %]
110
    [% END %]
111
[% END %]
111
[% END %]
112
[% IF ( PatronAutocompletion ) %]
112
[% IF ( PatronAutoComplete ) %]
113
    <script>
113
    <script>
114
    $(document).ready(function(){
114
    $(document).ready(function(){
115
        var obj = $( "#searchmember" ).autocomplete({
115
        var obj = $( "#searchmember" ).autocomplete({
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc (-1 / +1 lines)
Lines 2-8 Link Here
2
    <div id="circ_search" class="residentsearch">
2
    <div id="circ_search" class="residentsearch">
3
    <p class="tip">Enter patron card number or partial name:</p>
3
    <p class="tip">Enter patron card number or partial name:</p>
4
    <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
4
    <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
5
    [% IF ( PatronAutocompletion ) %]
5
    [% IF ( PatronAutoComplete ) %]
6
    <div class="autocomplete">
6
    <div class="autocomplete">
7
                <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" />
7
                <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" />
8
                <input id="autocsubmit" type="submit" class="submit" value="Submit" />
8
                <input id="autocsubmit" type="submit" class="submit" value="Submit" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +1 lines)
Lines 15-21 Circulation: Link Here
15
            - the automatic redirection to another patron when a patron barcode is scanned instead of a book.
15
            - the automatic redirection to another patron when a patron barcode is scanned instead of a book.
16
            - This should not be enabled if you have overlapping patron and book barcodes.
16
            - This should not be enabled if you have overlapping patron and book barcodes.
17
        -
17
        -
18
            - pref: PatronAutocompletion
18
            - pref: PatronAutoComplete
19
              choices:
19
              choices:
20
                  yes: Try
20
                  yes: Try
21
                  no: "Don't try"
21
                  no: "Don't try"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt (-1 / +1 lines)
Lines 1224-1230 Link Here
1224
            });
1224
            });
1225
1225
1226
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
1226
            [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
1227
                [% IF ( PatronAutocompletion ) %]
1227
                [% IF ( PatronAutoComplete ) %]
1228
                $( "#patron" ).autocomplete({
1228
                $( "#patron" ).autocomplete({
1229
                    source: "/cgi-bin/koha/circ/ysearch.pl",
1229
                    source: "/cgi-bin/koha/circ/ysearch.pl",
1230
                    minLength: 3,
1230
                    minLength: 3,
(-)a/members/members-home.pl (-1 / +1 lines)
Lines 70-76 $template->param( Link Here
70
70
71
$template->param(
71
$template->param(
72
    alphabet => C4::Context->preference('alphabet') || join (' ', 'A' .. 'Z'),
72
    alphabet => C4::Context->preference('alphabet') || join (' ', 'A' .. 'Z'),
73
    PatronAutocompletion => C4::Context->preference('PatronAutocompletion'),
73
    PatronAutoComplete => C4::Context->preference('PatronAutoComplete'),
74
    patron_lists => [ GetPatronLists() ],
74
    patron_lists => [ GetPatronLists() ],
75
    PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,
75
    PatronsPerPage => C4::Context->preference("PatronsPerPage") || 20,
76
);
76
);
(-)a/t/db_dependent/UsageStats.t (-2 / +1 lines)
Lines 435-441 sub mocking_systempreferences_to_a_set_value { Link Here
435
        TransferWhenCancelAllWaitingHolds
435
        TransferWhenCancelAllWaitingHolds
436
        AllowAllMessageDeletion
436
        AllowAllMessageDeletion
437
        AllowOfflineCirculation
437
        AllowOfflineCirculation
438
        PatronAutocompletion
438
        PatronAutoComplete
439
        CircAutoPrintQuickSlip
439
        CircAutoPrintQuickSlip
440
        DisplayClearScreenButton
440
        DisplayClearScreenButton
441
        FilterBeforeOverdueReport
441
        FilterBeforeOverdueReport
442
- 

Return to bug 23697