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

(-)a/installer/data/mysql/atomicupdate/bug_27378_add_ConsentJS_syspref.perl (+8 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 ('ConsentJS', '', 'Specify Javascript that requires user consent to run (e.g. tracking code)', '', 'Free'); | );
4
5
    # Always end with this (adjust the bug info)
6
    SetVersion( $DBversion );
7
    print "Upgrade to $DBversion done (Bug 27378 - Add ConsentJS syspref)\n";
8
}
(-)a/installer/data/mysql/atomicupdate/bug_27378_add_CookieConsentBar_syspref.perl (+8 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 ('CookieConsentBar', '', 'Show the following HTML in the cookie consent bar that is displayed at the bottom of the screen', '70|10', 'Textarea'); } );
4
5
    # Always end with this (adjust the bug info)
6
    SetVersion( $DBversion );
7
    print "Upgrade to $DBversion done (Bug 27378 - Add CookieConsentBar syspref)\n";
8
}
(-)a/installer/data/mysql/atomicupdate/bug_27378_add_CookieConsentPopup_syspref.perl (+8 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 ('CookieConsentPopup', '', 'Show the following HTML in the cookie consent popup', '70|10', 'Textarea'); | );
4
5
    # Always end with this (adjust the bug info)
6
    SetVersion( $DBversion );
7
    print "Upgrade to $DBversion done (Bug 27378 - Add CookieConsentPopup syspref)\n";
8
}
(-)a/installer/data/mysql/atomicupdate/bug_27378_add_CookieConsent_syspref.perl (+8 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 ('CookieConsent', '0', 'Require cookie consent to be displayed', '', 'YesNo'); | );
4
5
    # Always end with this (adjust the bug info)
6
    SetVersion( $DBversion );
7
    print "Upgrade to $DBversion done (Bug 27378 - Add CookieConsent syspref)\n";
8
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+4 lines)
Lines 157-164 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
157
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
157
('ComponentSortField','title','call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
158
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
158
('ComponentSortOrder','asc','asc|dsc|az|za','Specify the default sort order','Choice'),
159
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
159
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
160
('ConsentJS', '', NULL, 'Specify Javascript that requires user consent to run (e.g. tracking code)', 'Free'),
160
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
161
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
161
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
162
('ContentWarningField', '', NULL, 'MARC field to use for content warnings', 'Free'),
163
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
164
('CookieConsentBar', '', '70|10', 'Show the following HTML in the cookie consent bar that is displayed at the bottom of the screen', 'Textarea'),
165
('CookieConsentPopup', '', '70|10', 'Show the following HTML in the cookie consent popup', 'Textarea'),
162
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
166
('CreateAVFromCataloguing', '1', '', 'Ability to create authorized values from the cataloguing module', 'YesNo'),
163
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
167
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
164
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
168
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +24 lines)
Lines 382-387 Patrons: Link Here
382
         - days and remove anonymized patron accounts after
382
         - days and remove anonymized patron accounts after
383
         - pref: PatronRemovalDelay
383
         - pref: PatronRemovalDelay
384
         - "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."
384
         - "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."
385
     -
386
         - pref: CookieConsent
387
           choices:
388
               yes: Require
389
               no: "Don't require"
390
         - cookie consent to be displayed
391
     -
392
         - Specify Javascript that requires user consent to run (e.g. tracking code)
393
         - pref: ConsentJS
394
           type: modaljs
395
           initiator: populateConsentJS
396
           processor: prepareConsentJS
397
     -
398
         - Show the following HTML in the cookie consent bar that is displayed at the bottom of the screen
399
         - pref: CookieConsentBar
400
           type: textarea
401
           syntax: text/html
402
           class: code
403
     -
404
         - Show the following HTML in the cookie consent popup
405
         - pref: CookieConsentPopup
406
           type: textarea
407
           syntax: text/html
408
           class: code
385
    Security:
409
    Security:
386
     -
410
     -
387
         - Login passwords for staff and patrons must be at least
411
         - Login passwords for staff and patrons must be at least
388
- 

Return to bug 27378