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 514-519 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
('PatronRestrictionTypes','0',NULL,'Specify type of patron restriction being applied', 'YesNo'),
517
('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'),
518
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields when a patron is editing their information via the OPAC','free'),
519
('PatronSelfModificationMandatoryField','',NULL,'Define the required fields 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'),
520
('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 326-331 Patrons: Link Here
326
               1: Allow
326
               1: Allow
327
               0: "Don't allow"
327
               0: "Don't allow"
328
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
328
         - staff to set the ability for a patron's fines to be viewed by linked patrons in the OPAC.
329
     -
330
         - pref: PatronRestrictionTypes
331
           choices:
332
               yes: Allow
333
               no: Don't allow
334
         - "the type of patron restriction to be specified when applying manually"
335
329
    Privacy:
336
    Privacy:
330
     -
337
     -
331
         - Use the following URL
338
         - Use the following URL
332
- 

Return to bug 23681