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

(-)a/installer/data/mysql/sysprefs.sql (-7 / +7 lines)
Lines 424-436 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
424
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
424
('UpdateTotalIssuesOnCirc','0',NULL,'Whether to update the totalissues field in the biblio on each circ.','YesNo'),
425
('uppercasesurnames','0',NULL,'If ON, surnames are converted to upper case in patron entry form','YesNo'),
425
('uppercasesurnames','0',NULL,'If ON, surnames are converted to upper case in patron entry form','YesNo'),
426
('URLLinkText','',NULL,'Text to display as the link anchor in the OPAC','free'),
426
('URLLinkText','',NULL,'Text to display as the link anchor in the OPAC','free'),
427
('UsageStatsCountry', '', 'The country where your library is to show on hea Koha community website', NULL, 'YesNo'),
427
('UsageStats', 0, 'Share anonymous usage data on the Hea Koha community website.', NULL, 'YesNo'),
428
('UsageStatsID', '', 'This pref is part of Koha but it should not be deleted or updated manually.', '', 'Free'),
428
('UsageStatsCountry', '', 'The country where your library is located, to be shown on the Hea Koha community', NULL, 'YesNo'),
429
('UsageStatsLastUpdateTime', '', 'This pref is part of Koha but it should not be deleted or updated manually.', '', 'Free'),
429
('UsageStatsID', '', 'This preference is part of Koha but it should not be deleted or updated manually.', '', 'Free'),
430
('UsageStatsLibraryName', '', 'The library name to show on hea Koha community website', NULL, 'Free'),
430
('UsageStatsLastUpdateTime', '', 'This preference is part of Koha but it should not be deleted or updated manually.', '', 'Free'),
431
('UsageStatsLibraryType', 'public', 'public|university', 'The library type to show on hea Koha community website', NULL, 'Choice'),
431
('UsageStatsLibraryName', '', 'The library name to be shown on Hea Koha community website', NULL, 'Free'),
432
('UsageStatsLibraryUrl', '', 'The library url to show on hea Koha community website', NULL, 'Free'),
432
('UsageStatsLibraryType', 'public', 'public|university', 'The library type to be shown on the Hea Koha community website', NULL, 'Choice'),
433
('UsageStatsShare', 0, 'Share data volumetry with Koha community (HEA).', NULL, 'YesNo'),
433
('UsageStatsLibraryUrl', '', 'The library URL to be shown on Hea Koha community website', NULL, 'Free'),
434
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
434
('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'),
435
('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'),
435
('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'),
436
('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'),
436
('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (-7 / +7 lines)
Lines 8826-8838 if ( CheckVersion($DBversion) ) { Link Here
8826
        q{
8826
        q{
8827
       INSERT INTO systempreferences (variable, value, options, explanation, type )
8827
       INSERT INTO systempreferences (variable, value, options, explanation, type )
8828
       VALUES
8828
       VALUES
8829
        ('UsageStatsCountry', '', NULL, 'The country where your library is to show on hea Koha community website', 'YesNo'),
8829
        ('UsageStatsCountry', '', NULL, 'The country where your library is located, to be shown on the Hea Koha community website', 'YesNo'),
8830
        ('UsageStatsID', '', NULL, 'This pref is part of Koha but it should not be deleted or updated manually.',  'Free'),
8830
        ('UsageStatsID', '', NULL, 'This preference is part of Koha but it should not be deleted or updated manually.',  'Free'),
8831
        ('UsageStatsLastUpdateTime', '', NULL, 'This pref is part of Koha but it should not be deleted or updated manually.', 'Free'),
8831
        ('UsageStatsLastUpdateTime', '', NULL, 'This preference is part of Koha but it should not be deleted or updated manually.', 'Free'),
8832
        ('UsageStatsLibraryName', '', NULL, 'The library name to show on hea Koha community website', 'Free'),
8832
        ('UsageStatsLibraryName', '', NULL, 'The library name to be shown on Hea Koha community website', 'Free'),
8833
        ('UsageStatsLibraryType', 'public', 'public|university', 'The library type to show on hea Koha community website', 'Choice'),
8833
        ('UsageStatsLibraryType', 'public', 'public|university', 'The library type to be shown on the Hea Koha community website', 'Choice'),
8834
        ('UsageStatsLibraryUrl', '', NULL, 'The library url to show on hea Koha community website', 'Free'),
8834
        ('UsageStatsLibraryUrl', '', NULL, 'The library URL to be shown on Hea Koha community website', 'Free'),
8835
        ('UsageStatsShare', 0, NULL, 'Share data volumetry with Koha community (HEA).', 'YesNo')
8835
        ('UsageStats', 0, NULL, 'Share anonymous usage data on the Hea Koha community website.', 'YesNo')
8836
    });
8836
    });
8837
    print "Upgrade to $DBversion done (Bug 11926: Add UsageStats systempreferences (HEA))\n";
8837
    print "Upgrade to $DBversion done (Bug 11926: Add UsageStats systempreferences (HEA))\n";
8838
    SetVersion($DBversion);
8838
    SetVersion($DBversion);
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/preferences.css (-1 / +1 lines)
Lines 47-53 caption { Link Here
47
h3 {
47
h3 {
48
	color : #003366;
48
	color : #003366;
49
	margin : .4em 0;
49
	margin : .4em 0;
50
	width : 25%;
50
    width : 40%;
51
}
51
}
52
52
53
h3.expanded {
53
h3.expanded {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/admin.pref (-14 / +14 lines)
Lines 105-134 Administration: Link Here
105
                  yes: Allow
105
                  yes: Allow
106
                  no: "Don't Allow"
106
                  no: "Don't Allow"
107
            - Mozilla persona for login
107
            - Mozilla persona for login
108
    Usage Stats:
108
    Share anonymous usage statistics:
109
        -
109
        -
110
            - pref: UsageStatsShare
110
            - pref: UsageStats
111
              default: 0
111
              default: 0
112
              choices:
112
              choices:
113
                  yes: Share
113
                  yes: Share
114
                  no: "Don't share"
114
                  no: "Don't share"
115
            - data volumetry with Koha community. You can see the data on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
115
            - anonymous Koha usage data with the Koha community. You can see the data on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
116
        -
116
        -
117
            - The library name
117
            - The library name
118
            - pref: UsageStatsLibraryName
118
            - pref: UsageStatsLibraryName
119
            - will be shown on <a href="http://hea.koha-community.org">Hea Koha community website</a>.
119
            - will be shown on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
120
            - If this name is empty, you will sent data anonymously
120
            - If this field is empty data will be sent anonymously.
121
            - Note that this value has no effect if UsageStatsShare system preference is set to "Don't share"
121
            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
122
        -
122
        -
123
            - The country where your library is
123
            - "The country where your library is located:"
124
            - pref: UsageStatsCountry
124
            - pref: UsageStatsCountry
125
            - will be shown on <a href="http://hea.koha-community.org">Hea Koha community website</a>.
125
            - This will be shown on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
126
            - Note that this value has no effect if UsageStatsShare system preference is set to "Don't share"
126
            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
127
        -
127
        -
128
            - The library url
128
            - The library URL
129
            - pref: UsageStatsLibraryUrl
129
            - pref: UsageStatsLibraryUrl
130
            - will be shown on <a href="http://hea.koha-community.org">Hea Koha community website</a>.
130
            - will be shown on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
131
            - Note that this value has no effect if UsageStatsShare system preference is set to "Don't share"
131
            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
132
132
133
        -
133
        -
134
            - The library type
134
            - The library type
Lines 137-141 Administration: Link Here
137
              choices:
137
              choices:
138
                  public: "public"
138
                  public: "public"
139
                  university: "university"
139
                  university: "university"
140
            - will be shown on <a href="http://hea.koha-community.org">Hea Koha community website</a>.
140
            - will be shown on the <a href="http://hea.koha-community.org">Hea Koha community website</a>.
141
            - Note that this value has no effect if UsageStatsShare system preference is set to "Don't share"
141
            - Note that this value has no effect if the UsageStats system preference is set to "Don't share"
(-)a/misc/cronjobs/share_usage_with_koha_community.pl (-7 / +8 lines)
Lines 20-26 if ($help) { Link Here
20
    pod2usage(1);
20
    pod2usage(1);
21
}
21
}
22
22
23
unless ( C4::Context->preference('UsageStatsShare') ) {
23
unless ( C4::Context->preference('UsageStats') ) {
24
    pod2usage(
24
    pod2usage(
25
q|
25
q|
26
The UsageStats system preference is not set.
26
The UsageStats system preference is not set.
Lines 51-69 share_usage_with_koha_community.pl - Share your library's usage with the Koha co Link Here
51
51
52
share_usage_with_koha_community.pl [-h|--help] [-v|--verbose]
52
share_usage_with_koha_community.pl [-h|--help] [-v|--verbose]
53
53
54
If the UsageStatsShare system preference is set, you can launch this script to share your usage with the Koha community.
54
If the UsageStats system preference is set, you can launch this script to share your usage data
55
anonymously with the Koha community.
55
56
56
Collecting Koha usage statistics will help developpers to know how Koha is used across the world.
57
Collecting Koha usage statistics will help developers to know how Koha is used across the world.
57
58
58
This script will sent the volumetry for the biblio and authority records, issues, reserves, orders and subscription.
59
This script will send the usage data for the bibliographic and authority records, checkouts, holds, orders,
60
and subscriptions.
59
61
60
Only the total number is retrieved. In no case private data will be shared!
62
Only the total number is retrieved. In no case will private data be shared!
61
63
62
In order to know which parts of Koha modules are used, this script will collect some system preference values.
64
In order to know which parts of Koha modules are used, this script will collect some system preference values.
63
65
64
If you want to tell us who you are, you can fill the UsageStatsLibraryName system preference with your library name, UsageStatsLibraryUrl, UsageStatsLibraryType and/or UsageStatsCountry.
66
If you want to tell us who you are, you can fill the UsageStatsLibraryName system preference with your library name, UsageStatsLibraryUrl, UsageStatsLibraryType and/or UsageStatsCountry.
65
67
66
All these data will be analysed on the http://hea.koha-community.org Koha community website.
68
All these data will be analyzed on the http://hea.koha-community.org Koha community website.
67
69
68
IMPORTANT : please do NOT run the cron on the 1st, but on another day. The idea is to avoid all
70
IMPORTANT : please do NOT run the cron on the 1st, but on another day. The idea is to avoid all
69
Koha libraries sending their data at the same time ! So choose any day between 1 and 28 !
71
Koha libraries sending their data at the same time ! So choose any day between 1 and 28 !
70
- 

Return to bug 11926