@@ -, +, @@ --- installer/data/mysql/en/mandatory/sysprefs.sql | 2 ++ .../1-Obligatoire/unimarc_standard_systemprefs.sql | 2 ++ installer/data/mysql/pl-PL/mandatory/sysprefs.sql | 2 ++ ...m_preferences_full_optimal_for_install_only.sql | 2 ++ ...m_preferences_full_optimal_for_install_only.sql | 2 ++ installer/data/mysql/updatedatabase.pl | 8 ++++++++ 6 files changed, 18 insertions(+), 0 deletions(-) --- a/installer/data/mysql/en/mandatory/sysprefs.sql +++ a/installer/data/mysql/en/mandatory/sysprefs.sql @@ -286,3 +286,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ILS-DI:Authorized_IPs','','.','Restricts usage of ILS-DI to some IPs','Free'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OverduesBlockCirc','noblock','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','noblock|confirmation|block','Choice'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('DisplayMultiPlaceHold','1','Display the ability to place multiple holds or not','','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea'); --- a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql +++ a/installer/data/mysql/fr-FR/1-Obligatoire/unimarc_standard_systemprefs.sql @@ -286,3 +286,5 @@ INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES INSERT INTO `systempreferences` ( `variable` , `value` , `options` , `explanation` , `type` ) VALUES ( 'PrintNoticesMaxLines', '0', '', 'If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.', 'Integer' ); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('ILS-DI','0','Active les services ILS-DI Ã l''OPAC.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('OverduesBlockCirc','noblock','When checking out an item should overdues block checkout, generate a confirmation dialogue, or allow checkout','noblock|confirmation|block','Choice'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea'); --- a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql +++ a/installer/data/mysql/pl-PL/mandatory/sysprefs.sql @@ -273,3 +273,5 @@ INSERT INTO systempreferences (variable,value,explanation,options,type)VALUES('S INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('EnableOpacSearchHistory', '1', 'Enable or disable opac search history','', 'YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('RoutingListAddReserves','1','If ON the patrons on routing lists are automatically added to holds on the issue.','','YesNo'); INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES('soundon','0','Enable circulation sounds during checkin and checkout in the staff interface. Not supported by all web browsers yet.','','YesNo'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea'); --- a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql +++ a/installer/data/mysql/ru-RU/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -291,4 +291,6 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACviewMARC','1','Allow display of MARC view of bibiographic records in OPAC','','YesNo'); -- from 3.00.06.005 +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea'); --- a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql +++ a/installer/data/mysql/uk-UA/mandatory/system_preferences_full_optimal_for_install_only.sql @@ -317,4 +317,6 @@ INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ( INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES ('OPACviewMARC','1','Allow display of MARC view of bibiographic records in OPAC','','YesNo'); -- from 3.00.06.005 +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer'); +INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea'); --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -3701,6 +3701,14 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion)) { SetVersion ($DBversion); } +$DBversion = '3.01.00.XXX'; +if (C4::Context->preference("Version") < TransformToNum($DBversion)) { + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckTimeout','120000','','Number of milliseconds before session times out (1000 milliseconds/second)','Integer')"); + $dbh->do("INSERT INTO `systempreferences` (variable,value,explanation,options,type) VALUES ('WebBasedSelfCheckHeader','','70|10','Include the following HTML in the header of the web-based self checkout service','Textarea')"); + print "Upgrade to $DBversion done (Adding new web-based self checkout system preferences: WebBasedSelfCheckTimeout, WebBasedSelfCheckHeader)\n"; + SetVersion ($DBversion); +} + =item DropAllForeignKeys($table) Drop all foreign keys of the table $table --