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 136-142 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
136
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
136
('COinSinOPACResults','1','','If ON, use COinS in OPAC search results page.  NOTE: this can slow down search response time significantly','YesNo'),
137
('CollapseFieldsPatronAddForm','',NULL,'Collapse these fields by default when adding a new patron. These fields can still be expanded.','Multiple'),
137
('CollapseFieldsPatronAddForm','',NULL,'Collapse these fields by default when adding a new patron. These fields can still be expanded.','Multiple'),
138
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
138
('ConfirmFutureHolds','0','','Number of days for confirming future holds','Integer'),
139
('ConsentJS', '', NULL, 'Specify Javascript that requires user consent to run (e.g. tracking code)', 'Free'),
139
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
140
('ConsiderOnSiteCheckoutsAsNormalCheckouts','1',NULL,'Consider on-site checkouts as normal checkouts','YesNo'),
141
('CookieConsent', '0', NULL, 'Require cookie consent to be displayed', 'YesNo'),
142
('CookieConsentBar', '', '70|10', 'Show the following HTML in the cookie consent bar that is displayed at the bottom of the screen', 'Textarea'),
143
('CookieConsentPopup', '', '70|10', 'Show the following HTML in the cookie consent popup', 'Textarea'),
140
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
144
('CronjobLog','0',NULL,'If ON, log information from cron jobs.','YesNo'),
141
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
145
('CumulativeRestrictionPeriods',0,NULL,'Cumulate the restriction periods instead of keeping the highest','YesNo'),
142
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
146
('CurrencyFormat','US','US|FR|CH','Determines the display format of currencies. eg: \'36000\' is displayed as \'360 000,00\'  in \'FR\' or \'360,000.00\'  in \'US\'.','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +24 lines)
Lines 328-333 Patrons: Link Here
328
         - days and remove anonymized patron accounts after
328
         - days and remove anonymized patron accounts after
329
         - pref: PatronRemovalDelay
329
         - pref: PatronRemovalDelay
330
         - "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."
330
         - "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."
331
     -
332
         - pref: CookieConsent
333
           choices:
334
               yes: Require
335
               no: "Don't require"
336
         - cookie consent to be displayed
337
     -
338
         - Specify Javascript that requires user consent to run (e.g. tracking code)
339
         - pref: ConsentJS
340
           type: modaljs
341
           initiator: populateConsentJS
342
           processor: prepareConsentJS
343
     -
344
         - Show the following HTML in the cookie consent bar that is displayed at the bottom of the screen
345
         - pref: CookieConsentBar
346
           type: textarea
347
           syntax: text/html
348
           class: code
349
     -
350
         - Show the following HTML in the cookie consent popup
351
         - pref: CookieConsentPopup
352
           type: textarea
353
           syntax: text/html
354
           class: code
331
    Security:
355
    Security:
332
     -
356
     -
333
         - Login passwords for staff and patrons must be at least
357
         - Login passwords for staff and patrons must be at least
334
- 

Return to bug 27378