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

(-)a/installer/data/mysql/atomicupdate/bug_21336b.perl (+12 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( q|
4
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
5
VALUES
6
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
7
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
8
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer')
9
    |);
10
    SetVersion( $DBversion );
11
    print "Upgrade to $DBversion done (Bug 21336 - Add preferences)\n";
12
}
(-)a/installer/data/mysql/sysprefs.sql (+3 lines)
Lines 424-430 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
424
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
424
('OverdueNoticeCalendar',0,NULL,'Take the calendar into consideration when generating overdue notices','YesNo'),
425
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
425
('OverduesBlockCirc','noblock','noblock|confirmation|block','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','Choice'),
426
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
426
('OverduesBlockRenewing','allow','allow|blockitem|block','If any of patron checked out documents is late, should renewal be allowed, blocked only on overdue items or blocked on whatever checked out document','Choice'),
427
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
427
('patronimages','0',NULL,'Enable patron images for the Staff Client','YesNo'),
428
('patronimages','0',NULL,'Enable patron images for the Staff Client','YesNo'),
429
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
428
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
430
('PatronSelfModificationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when a patron is editing their information via the OPAC.','free'),
429
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
431
('PatronSelfRegistration','0',NULL,'If enabled, patrons will be able to register themselves via the OPAC.','YesNo'),
430
('PatronSelfRegistrationAdditionalInstructions','','','A free text field to display additional instructions to newly self registered patrons.','free'),
432
('PatronSelfRegistrationAdditionalInstructions','','','A free text field to display additional instructions to newly self registered patrons.','free'),
Lines 583-588 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
583
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
585
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),
584
('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free'),
586
('UpdateItemWhenLostFromHoldList','',NULL,'This is a list of values to update an item when it is marked as lost from the holds to pull screen','Free'),
585
('UniqueItemFields','barcode','','Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table','Free'),
587
('UniqueItemFields','barcode','','Space-separated list of fields that should be unique (used in acquisition module for item creation). Fields must be valid SQL column names of items table','Free'),
588
('UnsubscribeReflectionDelay','',NULL,'Delay for locking unsubscribers', 'Integer'),
586
('UpdateNotForLoanStatusOnCheckin', '', 'NULL', 'This is a list of value pairs. When an item is checked in, if the not for loan value on the left matches the items not for loan value it will be updated to the right-hand value. E.g. ''-1: 0'' will cause an item that was set to ''Ordered'' to now be available for loan. Each pair of values should be on a separate line.', 'Free'),
589
('UpdateNotForLoanStatusOnCheckin', '', 'NULL', 'This is a list of value pairs. When an item is checked in, if the not for loan value on the left matches the items not for loan value it will be updated to the right-hand value. E.g. ''-1: 0'' will cause an item that was set to ''Ordered'' to now be available for loan. Each pair of values should be on a separate line.', 'Free'),
587
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
590
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
588
('UploadPurgeTemporaryFilesDays','',NULL,'If not empty, number of days used when automatically deleting temporary uploads','integer'),
591
('UploadPurgeTemporaryFilesDays','',NULL,'If not empty, number of days used when automatically deleting temporary uploads','integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +8 lines)
Lines 226-228 Patrons: Link Here
226
               Enforced: 'Enforced'
226
               Enforced: 'Enforced'
227
               Permissive: 'Permissive'
227
               Permissive: 'Permissive'
228
         - "GDPR is the EU General Data Protection Regulation. When you enforce, patrons need to give consent before using the OPAC. If you set to permissive, Koha will warn but not enforce."
228
         - "GDPR is the EU General Data Protection Regulation. When you enforce, patrons need to give consent before using the OPAC. If you set to permissive, Koha will warn but not enforce."
229
- 
229
     -
230
         - Lock/expire patrons that submitted an unsubscribe request (refused consent) after
231
         - pref: UnsubscribeReflectionDelay
232
         - days, anonymize locked/expired accounts after
233
         - pref: PatronAnonymizeDelay
234
         - days and remove anonymized patron accounts after
235
         - pref: PatronRemovalDelay
236
         - days.<br>IMPORTANT: No action is performed when these delays are empty (no text). But a zero value ('0') is interpreted as no delay (do it now)! The actions are performed by the cleanup database cron job.

Return to bug 21336