4 [% INCLUDE 'doc-head-open.inc' %]
5 <title>Koha › Administration › Koha usage statistics</title>
6 [% INCLUDE 'doc-head-close.inc' %]
7 [% INCLUDE 'calendar.inc' %]
10 <body id="admin_usage_statistics" class="admin">
11 [% INCLUDE 'header.inc' %]
12 [% INCLUDE 'cat-search.inc' %]
14 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Usage statistics</div>
16 <div id="doc3" class="yui-t2">
21 [% FOR m IN messages %]
22 <div class="dialog [% m.type %]">
24 [% CASE 'error_on_update' %]
25 An error occurred when updating this patron category. Perhaps it already exists.
26 [% CASE 'error_on_insert' %]
27 An error occurred when inserting this patron category. The patron category might already exist.
28 [% CASE 'error_on_delete' %]
29 An error occurred when deleting this patron category. Check the logs.
30 [% CASE 'success_on_update' %]
31 Patron category updated successfully.
32 [% CASE 'success_on_insert' %]
33 Patron category inserted successfully.
34 [% CASE 'success_on_delete' %]
35 Patron category deleted successfully.
36 [% CASE 'already_exists' %]
37 This patron category already exists.
44 [% IF NOT Koha.Preference('UsageStats') %]
45 <div class="dialog message">You are not sharing any data with the Koha community</div>
48 <form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
49 <h1>Modify the statistics you share with the Koha community</h1>
50 <fieldset class="rows">
53 <label for="UsageStats">Share my Koha usage statistics: </label>
54 <select name="UsageStats" id="UsageStats">
55 [% IF Koha.Preference('UsageStats') %]
56 <option value="1" selected="selected">Yes</option>
57 <option value="0">No</option>
59 <option value="1">Yes</option>
60 <option value="0" selected="selected">No</option>
65 <label for="UsageStatsCountry">Your country: </label>
66 [% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
67 [% SET IsUsageStatsCountryValid = 0 %]
68 [% IF NOT UsageStatsCountry %]
69 [% SET IsUsageStatsCountryValid = 1 %]
71 [% PROCESS 'country-list.inc' %]
72 <select name="UsageStatsCountry" id="UsageStatsCountry">
73 <option value=""> </option>
74 [% FOR country IN countries %]
75 [% IF country == UsageStatsCountry %]
76 <option value="[% country %]" selected="selected">[% country %]</option>
77 [% SET IsUsageStatsCountryValid = 1 %]
79 <option value="[% country %]">[% country %]</option>
83 [% UNLESS IsUsageStatsCountryValid %]
84 Note: The value of your system preference 'UsageStatsCountry' is not valid ([% UsageStatsCountry %]).
85 Please select a valid one.
89 <label for="UsageStatsLibraryName">Library name: </label>
90 <input type="text" value="[% Koha.Preference('UsageStatsLibraryName') %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
93 <label for="UsageStatsLibraryType">Library type: </label>
94 [% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
95 <select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
96 <option value=""> </option>
97 [% IF UsageStatsLibraryType == 'public' %]
98 <option value="public" selected="selected">Public</option>
100 <option value="public">Public</option>
103 [% IF UsageStatsLibraryType == 'school' %]
104 <option value="school" selected="selected">School</option>
106 <option value="school">School</option>
108 [% IF UsageStatsLibraryType == 'academic' %]
109 <option value="academic" selected="selected">Academic</option>
111 <option value="academic">Academic</option>
113 [% IF UsageStatsLibraryType == 'research' %]
114 <option value="research" selected="selected">Research</option>
116 <option value="research">Research</option>
118 [% IF UsageStatsLibraryType == 'private' %]
119 <option value="private" selected="selected">Private</option>
121 <option value="private">Private</option>
123 [% IF UsageStatsLibraryType == 'societyAssociation' %]
124 <option value="societyAssociation" selected="selected">Society or association</option>
126 <option value="societyAssociation">Society or association</option>
128 [% IF UsageStatsLibraryType == 'corporate' %]
129 <option value="corporate" selected="selected">Corporate</option>
131 <option value="corporate">Corporate</option>
133 [% IF UsageStatsLibraryType == 'government' %]
134 <option value="government" selected="selected">Government</option>
136 <option value="government">Government</option>
138 [% IF UsageStatsLibraryType == 'religiousOrg' %]
139 <option value="religiousOrg" selected="selected">Religious organization</option>
141 <option value="religiousOrg">Religious organization</option>
143 [% IF UsageStatsLibraryType == 'subscription' %]
144 <option value="subscription" selected="selected">Subscription</option>
146 <option value="subscription">Subscription</option>
151 <label for="UsageStatsLibraryUrl">Library URL: </label>
152 <input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
155 <span class="label">Last update: </span>
156 [% IF UsageStatsLastUpdateTime %]
157 [% UsageStatsLastUpdateTime %]
159 Your data have never been shared
165 <fieldset class="action">
166 <input type="hidden" name="op" value="update" />
167 <input type="submit" value="Update your statistics usage" />
168 <a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
175 [% INCLUDE 'admin-menu.inc' %]
178 [% INCLUDE 'intranet-bottom.inc' %]