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

(-)a/C4/Members.pm (-1 / +1 lines)
Lines 227-233 sub Search { Link Here
227
        }
227
        }
228
    }
228
    }
229
229
230
    if ( !$found_borrower && C4::Context->preference('ExtendedPatronAttributes') && $search_string ) {
230
    if ( !$found_borrower && C4::Context->preference('ExtendedPatronAttributesSearch') && $search_string ) {
231
        my $matching_records = C4::Members::Attributes::SearchIdMatchingAttribute($search_string);
231
        my $matching_records = C4::Members::Attributes::SearchIdMatchingAttribute($search_string);
232
        if(scalar(@$matching_records)>0) {
232
        if(scalar(@$matching_records)>0) {
233
            if ( my $fr = ref $filter ) {
233
            if ( my $fr = ref $filter ) {
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 195-200 INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES Link Here
195
195
196
INSERT INTO `systempreferences` (variable, value,options,type, explanation) VALUES ('AddPatronLists','categorycode','categorycode|category_type','Choice','Allow user to choose what list to pick up from when adding patrons');
196
INSERT INTO `systempreferences` (variable, value,options,type, explanation) VALUES ('AddPatronLists','categorycode','categorycode|category_type','Choice','Allow user to choose what list to pick up from when adding patrons');
197
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ExtendedPatronAttributes','0','Use extended patron IDs and attributes',NULL,'YesNo');
197
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ExtendedPatronAttributes','0','Use extended patron IDs and attributes',NULL,'YesNo');
198
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ExtendedPatronAttributesSearch','0','Search on extended patron IDs and attributes',NULL,'YesNo');
198
199
199
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('RenewSerialAddsSuggestion','0','If ON, adds a new suggestion at serial subscription renewal',NULL,'YesNo');
200
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('RenewSerialAddsSuggestion','0','If ON, adds a new suggestion at serial subscription renewal',NULL,'YesNo');
200
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('GoogleJackets','0','if ON, displays jacket covers from Google Books API',NULL,'YesNo');
201
INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('GoogleJackets','0','if ON, displays jacket covers from Google Books API',NULL,'YesNo');
(-)a/installer/data/mysql/updatedatabase.pl (+11 lines)
Lines 5212-5217 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
5212
    SetVersion($DBversion);
5212
    SetVersion($DBversion);
5213
}
5213
}
5214
5214
5215
$DBversion = "3.08.00.XXX";
5216
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
5217
    $dbh->do("
5218
        INSERT INTO systempreferences (variable,value,explanation,options,type) 
5219
        VALUES ('ExtendedPatronAttributesSearch',?,'Search on extended patron IDs and attributes',NULL,'YesNo')", 
5220
        undef, C4::Context->preference("ExtendedPatronAttributes")
5221
    );
5222
    print "Upgrade to $DBversion done\n";
5223
    SetVersion($DBversion);
5224
}
5225
5215
=head1 FUNCTIONS
5226
=head1 FUNCTIONS
5216
5227
5217
=head2 TableExists($table)
5228
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 68-73 Patrons: Link Here
68
               no: "Don't enable"
68
               no: "Don't enable"
69
         - searching, editing and display of custom attributes on patrons.
69
         - searching, editing and display of custom attributes on patrons.
70
     -
70
     -
71
         - pref: ExtendedPatronAttributesSearch
72
           choices:
73
               yes: Search
74
               no: "Don't search"
75
         - on a patron's extended attributes.
76
     -
71
         - pref: intranetreadinghistory
77
         - pref: intranetreadinghistory
72
           choices:
78
           choices:
73
               yes: "Allow"
79
               yes: "Allow"
74
- 

Return to bug 8029