Jonathan Druart
6b626b6494
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
178 lines
8.5 KiB
Text
178 lines
8.5 KiB
Text
[% USE Koha %]
|
|
[% USE KohaDates %]
|
|
[% USE Price %]
|
|
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Administration › Koha usage statistics</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
[% INCLUDE 'calendar.inc' %]
|
|
</head>
|
|
|
|
<body id="admin_usage_statistics" class="admin">
|
|
[% INCLUDE 'header.inc' %]
|
|
[% INCLUDE 'cat-search.inc' %]
|
|
|
|
<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>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
[% FOR m IN messages %]
|
|
<div class="dialog [% m.type %]">
|
|
[% SWITCH m.code %]
|
|
[% CASE 'error_on_update' %]
|
|
An error occurred when updating this patron category. Perhaps it already exists.
|
|
[% CASE 'error_on_insert' %]
|
|
An error occurred when inserting this patron category. The patron category might already exist.
|
|
[% CASE 'error_on_delete' %]
|
|
An error occurred when deleting this patron category. Check the logs.
|
|
[% CASE 'success_on_update' %]
|
|
Patron category updated successfully.
|
|
[% CASE 'success_on_insert' %]
|
|
Patron category inserted successfully.
|
|
[% CASE 'success_on_delete' %]
|
|
Patron category deleted successfully.
|
|
[% CASE 'already_exists' %]
|
|
This patron category already exists.
|
|
[% CASE %]
|
|
[% m.code %]
|
|
[% END %]
|
|
</div>
|
|
[% END %]
|
|
|
|
[% IF NOT Koha.Preference('UsageStats') %]
|
|
<div class="dialog message">You are not sharing any data with the Koha community</div>
|
|
[% END %]
|
|
|
|
<form id="category_form" action="/cgi-bin/koha/admin/usage_statistics.pl" method="post">
|
|
<h1>Modify the statistics you share with the Koha community</h1>
|
|
<fieldset class="rows">
|
|
<ol>
|
|
<li>
|
|
<label for="UsageStats">Share my Koha usage statistics: </label>
|
|
<select name="UsageStats" id="UsageStats">
|
|
[% IF Koha.Preference('UsageStats') %]
|
|
<option value="1" selected="selected">Yes</option>
|
|
<option value="0">No</option>
|
|
[% ELSE %]
|
|
<option value="1">Yes</option>
|
|
<option value="0" selected="selected">No</option>
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="UsageStatsCountry">Your country: </label>
|
|
[% SET UsageStatsCountry = Koha.Preference('UsageStatsCountry') %]
|
|
[% SET IsUsageStatsCountryValid = 0 %]
|
|
[% IF NOT UsageStatsCountry %]
|
|
[% SET IsUsageStatsCountryValid = 1 %]
|
|
[% END %]
|
|
[% PROCESS 'country-list.inc' %]
|
|
<select name="UsageStatsCountry" id="UsageStatsCountry">
|
|
<option value=""> </option>
|
|
[% FOR country IN countries %]
|
|
[% IF country == UsageStatsCountry %]
|
|
<option value="[% country %]" selected="selected">[% country %]</option>
|
|
[% SET IsUsageStatsCountryValid = 1 %]
|
|
[% ELSE %]
|
|
<option value="[% country %]">[% country %]</option>
|
|
[% END %]
|
|
[% END %]
|
|
</select>
|
|
[% UNLESS IsUsageStatsCountryValid %]
|
|
Note: The value of your system preference 'UsageStatsCountry' is not valid ([% UsageStatsCountry %]).
|
|
Please select a valid one.
|
|
[% END %]
|
|
</li>
|
|
<li>
|
|
<label for="UsageStatsLibraryName">Library name: </label>
|
|
<input type="text" value="[% Koha.Preference('UsageStatsLibraryName') %]" name="UsageStatsLibraryName" id="UsageStatsLibraryName" />
|
|
</li>
|
|
<li>
|
|
<label for="UsageStatsLibraryType">Library type: </label>
|
|
[% SET UsageStatsLibraryType = Koha.Preference('UsageStatsLibraryType') %]
|
|
<select name="UsageStatsLibraryType" id="UsageStatsLibraryType">
|
|
<option value=""> </option>
|
|
[% IF UsageStatsLibraryType == 'public' %]
|
|
<option value="public" selected="selected">Public</option>
|
|
[% ELSE %]
|
|
<option value="public">Public</option>
|
|
[% END %]
|
|
|
|
[% IF UsageStatsLibraryType == 'school' %]
|
|
<option value="school" selected="selected">School</option>
|
|
[% ELSE %]
|
|
<option value="school">School</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'academic' %]
|
|
<option value="academic" selected="selected">Academic</option>
|
|
[% ELSE %]
|
|
<option value="academic">Academic</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'research' %]
|
|
<option value="research" selected="selected">Research</option>
|
|
[% ELSE %]
|
|
<option value="research">Research</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'private' %]
|
|
<option value="private" selected="selected">Private</option>
|
|
[% ELSE %]
|
|
<option value="private">Private</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'societyAssociation' %]
|
|
<option value="societyAssociation" selected="selected">Society or association</option>
|
|
[% ELSE %]
|
|
<option value="societyAssociation">Society or association</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'corporate' %]
|
|
<option value="corporate" selected="selected">Corporate</option>
|
|
[% ELSE %]
|
|
<option value="corporate">Corporate</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'government' %]
|
|
<option value="government" selected="selected">Government</option>
|
|
[% ELSE %]
|
|
<option value="government">Government</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'religiousOrg' %]
|
|
<option value="religiousOrg" selected="selected">Religious organization</option>
|
|
[% ELSE %]
|
|
<option value="religiousOrg">Religious organization</option>
|
|
[% END %]
|
|
[% IF UsageStatsLibraryType == 'subscription' %]
|
|
<option value="subscription" selected="selected">Subscription</option>
|
|
[% ELSE %]
|
|
<option value="subscription">Subscription</option>
|
|
[% END %]
|
|
</select>
|
|
</li>
|
|
<li>
|
|
<label for="UsageStatsLibraryUrl">Library URL: </label>
|
|
<input type="text" name="UsageStatsLibraryUrl" value="[% Koha.Preference('UsageStatsLibraryUrl') %]" id="UsageStatsLibraryUrl" />
|
|
</li>
|
|
<li>
|
|
<span class="label">Last update: </span>
|
|
[% IF UsageStatsLastUpdateTime %]
|
|
[% UsageStatsLastUpdateTime %]
|
|
[% ELSE %]
|
|
Your data have never been shared
|
|
[% END %]
|
|
</li>
|
|
</ol>
|
|
</fieldset>
|
|
|
|
<fieldset class="action">
|
|
<input type="hidden" name="op" value="update" />
|
|
<input type="submit" value="Update your statistics usage" />
|
|
<a class="cancel" href="/cgi-bin/koha/admin/usage_statistics.pl">Cancel</a>
|
|
</fieldset>
|
|
</form>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
[% INCLUDE 'admin-menu.inc' %]
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|