@@ -, +, @@ --- installer/data/mysql/sysprefs.sql | 2 +- installer/install.pl | 16 ++++++++++ .../prog/en/modules/installer/step3.tt | 34 +++++++++++++++++----- 3 files changed, 43 insertions(+), 9 deletions(-) --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -458,7 +458,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('UsageStatsLibraryName', '', NULL, 'The library name to be shown on Hea Koha community website', 'Free'), ('UsageStatsLibraryType', 'public', 'public|school|academic|research|private|societyAssociation|corporate|government|religiousOrg|subscription', 'The library type to be shown on the Hea Koha community website', 'Choice'), ('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'), -('UsageStatsLastDisplay', '', NULL, 'The last time we propose you to share your statistics', 'Free'), +('UsageStatsLastDisplay', '', NULL, 'The last time we offered you to share your statistics', 'Free'), ('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'), ('UseBranchTransferLimits','0','','If ON, Koha will will use the rules defined in branch_transfer_limits to decide if an item transfer should be allowed.','YesNo'), ('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'), --- a/installer/install.pl +++ a/installer/install.pl @@ -193,6 +193,22 @@ elsif ( $step && $step == 3 ) { elsif ( $op && $op eq 'finish' ) { $installer->set_version_syspref(); + # + # Share usage stats with Hea + # + if($query->param('hea') eq "1"){ + C4::Context->set_preference('UsageStats', 1); + C4::Context->set_preference('UsageStatsLastDisplay', 0); + } + elsif($query->param('hea') eq "-1"){ + C4::Context->set_preference('UsageStats', 0); + C4::Context->set_preference('UsageStatsLastDisplay', ((DateTime->now->epoch) * 1000)); + } + elsif($query->param('hea') eq "0"){ + C4::Context->set_preference('UsageStats', 0); + C4::Context->set_preference('UsageStatsLastDisplay', 0); + } + # Installation is finished. # We just deny anybody access to install # And we redirect people to mainpage. --- a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt @@ -171,15 +171,33 @@ [% END %] [% END %] -
Installation complete.
-
Click on 'Finish' to complete and load the Koha Staff Interface. -
+ + + + [% END %] --