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

(-)a/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl (-5 / +10 lines)
Lines 7-16 return { Link Here
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
9
10
       $dbh->do(q{
10
        $dbh->do(q{
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
12
            SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','multiple'
12
            SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','free'
13
            FROM (SELECT value FROM systempreferences WHERE variable="PatronSelfRegistrationBorrowerMandatoryField") tmp
13
            FROM (SELECT value FROM systempreferences WHERE variable='PatronSelfRegistrationBorrowerMandatoryField') tmp
14
       });
14
        });
15
16
        my ($syspref_value) = $dbh->selectrow_array(q{
17
            SELECT value FROM systempreferences WHERE variable='PatronSelfModificationMandatoryField'
18
        });
19
        say $out "Added new system preference 'PatronSelfModificationMandatoryField' with value '$syspref_value'";
15
    },
20
    },
16
}
21
  }
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +1 lines)
Lines 514-520 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
514
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
514
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
515
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
515
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
516
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
516
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
517
('PatronSelfModificationMandatoryField','',NULL,'Name the fields you don\'t want to be required when a patron is editing their information via the OPAC.','free'),
517
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
518
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
518
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
519
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
519
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
520
('PatronSelfRegistrationAdditionalInstructions','','','A free text field to display additional instructions to newly self registered patrons.','free'),
520
('PatronSelfRegistrationAdditionalInstructions','','','A free text field to display additional instructions to newly self registered patrons.','free'),
521
- 

Return to bug 13188