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

(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 458-464 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
458
('UsageStatsLibraryName', '', NULL, 'The library name to be shown on Hea Koha community website', 'Free'),
458
('UsageStatsLibraryName', '', NULL, 'The library name to be shown on Hea Koha community website', 'Free'),
459
('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'),
459
('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'),
460
('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'),
460
('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'),
461
('UsageStatsLastDisplay', '', NULL, 'The last time we propose you to share your statistics', 'Free'),
461
('UsageStatsLastDisplay', '', NULL, 'The last time we offered you to share your statistics', 'Free'),
462
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
462
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
463
('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'),
463
('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'),
464
('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'),
464
('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 (+16 lines)
Lines 193-198 elsif ( $step && $step == 3 ) { Link Here
193
    elsif ( $op && $op eq 'finish' ) {
193
    elsif ( $op && $op eq 'finish' ) {
194
        $installer->set_version_syspref();
194
        $installer->set_version_syspref();
195
195
196
        #
197
        # Share usage stats with Hea
198
        #
199
        if($query->param('hea') eq "1"){
200
            C4::Context->set_preference('UsageStats', 1);
201
            C4::Context->set_preference('UsageStatsLastDisplay', 0);
202
        }
203
        elsif($query->param('hea') eq "-1"){
204
            C4::Context->set_preference('UsageStats', 0);
205
            C4::Context->set_preference('UsageStatsLastDisplay', ((DateTime->now->epoch) * 1000));
206
        }
207
        elsif($query->param('hea') eq "0"){
208
            C4::Context->set_preference('UsageStats', 0);
209
            C4::Context->set_preference('UsageStatsLastDisplay', 0);
210
        }
211
196
        # Installation is finished.
212
        # Installation is finished.
197
        # We just deny anybody access to install
213
        # We just deny anybody access to install
198
        # And we redirect people to mainpage.
214
        # And we redirect people to mainpage.
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/installer/step3.tt (-9 / +26 lines)
Lines 171-185 Link Here
171
    [% END %]
171
    [% END %]
172
    </ul>
172
    </ul>
173
    [% END %]
173
    [% END %]
174
    <h3>All done!</h3>
174
175
    <p>Installation complete.<br />
175
    <form name="finish">
176
        <p>Click on 'Finish' to complete and load the Koha Staff Interface.
176
177
        <form name="finish">
177
        <div id="activate_UsageStats" class="dialog message">
178
        <input type="hidden" name="step" value="3" />
178
            <h3>Activate Hea ?</h3>
179
        <input type="hidden" name="op" value="finish" />
179
            <p>Please help us improve your user experience by sharing your statistics with community.
180
        <input type="submit" value="Finish" /></form>
180
                <br>We share sharing data anonymously, please see which data are sent <a href=http://wiki.koha-community.org/wiki/KohaUsageStat_RFC>here</a>.
181
            </p>
182
            <input type="radio" name="hea" value="1" checked /> Yes, I want to share my statistics <br/>
183
            <input type="radio" name="hea" value="-1" /> Later <br/>
184
            <input type="radio" name="hea" value="0" /> No, I don't want to share my statistics <br/>
185
186
            <p>If you want to see the statistics generated, go to <a href=http://hea.koha-community.org/>hea.koha-community.org</a></p>
187
        </div>
188
189
        <h3>All done!</h3>
190
        <p>Installation complete.<br />
191
            <p>Click on 'Finish' to complete and load the Koha Staff Interface.
192
193
            <input type="hidden" name="step" value="3" />
194
            <input type="hidden" name="op" value="finish" />
195
            <input type="submit" value="Finish" />
196
            </p>
181
        </p>
197
        </p>
182
    </p>
198
    </form>
199
200
183
[% END %]
201
[% END %]
184
202
185
203
186
- 

Return to bug 14608