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 518-523 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
518
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
518
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
519
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
519
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
520
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
520
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
521
('PatronRestrictionTypes','0',NULL,'Specify type of patron restriction being applied', 'YesNo'),
521
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
522
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
522
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
523
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
523
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
524
('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 329-334 Patrons: Link Here
329
               1: Allow
329
               1: Allow
330
               0: "Don't allow"
330
               0: "Don't allow"
331
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
331
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
332
     -
333
         - pref: PatronRestrictionTypes
334
           choices:
335
               yes: Allow
336
               no: Don't allow
337
         - "the type of patron restriction to be specified when applying manually"
338
332
    Privacy:
339
    Privacy:
333
     -
340
     -
334
         - Use the following URL
341
         - Use the following URL
335
- 

Return to bug 23681