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

(-)a/installer/data/mysql/atomicupdate/bug_23681_add_PatronRestrictionTypes_syspref.perl (+6 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( q| INSERT IGNORE INTO systempreferences (variable, value, explanation, options, type) VALUES ('PatronRestrictionTypes', '0', 'If enabled, it is possible to specify the "type" of patron restriction being applied', '', 'YesNo'); | );
4
    SetVersion( $DBversion );
5
    print "Upgrade to $DBversion done (Bug 23681 - Add PatronRestrictionTypes syspref)\n";
6
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 524-529 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
524
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
524
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
525
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
525
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
526
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
526
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
527
('PatronRestrictionTypes','0',NULL,'Specify type of patron restriction being applied', 'YesNo'),
527
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
528
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
528
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
529
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
529
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
530
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +7 lines)
Lines 330-335 Patrons: Link Here
330
               1: Allow
330
               1: Allow
331
               0: "Don't allow"
331
               0: "Don't allow"
332
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
332
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
333
     -
334
         - pref: PatronRestrictionTypes
335
           choices:
336
               yes: Allow
337
               no: Don't allow
338
         - "the type of patron restriction to be specified when applying manually"
339
333
    Privacy:
340
    Privacy:
334
     -
341
     -
335
         - Use the following URL
342
         - Use the following URL
336
- 

Return to bug 23681