Line 0
Link Here
|
|
|
1 |
[% USE raw %] |
2 |
[% USE Asset %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% USE Koha %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Administration › Koha usage statistics</title> |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
</head> |
9 |
|
10 |
<body id="admin_usage_statistics" class="admin"> |
11 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'cat-search.inc' %] |
13 |
|
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> |
15 |
|
16 |
<div class="main container-fluid"> |
17 |
<div class="row"> |
18 |
<div class="col-sm-10 col-sm-push-2"> |
19 |
<div class="col-sm-6"> |
20 |
[% IF result.code != 201 && result.msg %] |
21 |
<div class="alert alert-danger" role="alert"> |
22 |
[% result.msg | html %] |
23 |
</div> |
24 |
[% END %] |
25 |
|
26 |
[% IF result.code == 201 %] |
27 |
<div class="dialog message" role="alert"> |
28 |
Well done! You successfully created your Mana KB account. Check your mailbox and follow instructions. |
29 |
</div> |
30 |
[% END %] |
31 |
|
32 |
[% UNLESS (mana_url) %] |
33 |
<div class="alert alert-danger" role="alert"> |
34 |
Mana config is currently empty, this feature will not work. Please contact your site administartor. |
35 |
</div> |
36 |
[% END %] |
37 |
|
38 |
<h1>Share content with the Koha community using Mana KB</h1> |
39 |
<p>Mana-kb is a global knowledge base for library-centric data. It has been designed initially to interact with Koha, the Open Source ILS, but can be used by any other software.</p> |
40 |
|
41 |
<p>Mana centralize commun information between other Koha to facilitate the creation of new subscriptions, vendors, report queries etc... You can search, share, import and comment the content of Mana. The informations shared with Mana KB are shared under the CC-0 license. More infos about CC-0 license <a href="https://creativecommons.org/choose/zero/">here</a>.</p> |
42 |
|
43 |
<p>Learn more about Mana on the <a href="https://wiki.koha-community.org/wiki/Mana_central_database">official documentation</a>.</p> |
44 |
|
45 |
[% IF (mana_url) %] |
46 |
<p> Your Mana KB server is currently: <strong>[% mana_url | url %]</strong></p> |
47 |
[% END %] |
48 |
|
49 |
<form id="mana_preference" method="post"> |
50 |
<fieldset class="rows"> |
51 |
<ol> |
52 |
<li> |
53 |
<label for="mana">Use Mana KB for sharing content: </label> |
54 |
<select name="mana"> |
55 |
[% IF Koha.Preference('Mana') == 0 %] |
56 |
<option value="0" selected="selected">No</option> |
57 |
[% ELSE %] |
58 |
<option value="0"">No</option> |
59 |
[% END %] |
60 |
|
61 |
[% IF Koha.Preference('Mana') == 1 %] |
62 |
<option value="1" selected="selected">Yes</option> |
63 |
[% ELSE %] |
64 |
<option value="1">Yes</option> |
65 |
[% END %] |
66 |
|
67 |
[% IF Koha.Preference('Mana') == 2 %] |
68 |
<option value="2" selected="selected">No, let me think about it</option> |
69 |
[% ELSE %] |
70 |
<option value="2">No, let me think about it</option> |
71 |
[% END %] |
72 |
</select> |
73 |
<div class="hint">Enable Mana allow you to search, import and comment content from Mana server, and, to share your own.</div> |
74 |
</li> |
75 |
<li> |
76 |
<label for="autosharewithmana">Auto subscriptions sharing: </label> |
77 |
[% IF Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %] |
78 |
<input type="checkbox" name="autosharewithmana"> |
79 |
[% ELSE %] |
80 |
<input type="checkbox" name="autosharewithmana" checked="checked"> |
81 |
[% END %] |
82 |
<div class="hint">If checked, new subscriptions you created yourself will be automatically shared with Mana KB.</div> |
83 |
</li> |
84 |
<li> |
85 |
<input type="hidden" name="op" value="save"> |
86 |
<input type="submit" value="Save"> |
87 |
</li> |
88 |
</ol> |
89 |
</fieldset> |
90 |
</form> |
91 |
|
92 |
[% UNLESS Koha.Preference('ManaToken') %] |
93 |
<h3>Configure Mana KB</h3> |
94 |
<p>Once you have enabled Mana, let's start to set it up. Type your first name, last name, email address and click on send. This will send a account creation request to Mana KB that will respond back with a Mana token (a crypted id that uniquely identify your Koha). This token will automatically be saved in your database. Just after that, you will receive an email. Read it and follow the instructions.</p> |
95 |
[% END %] |
96 |
|
97 |
[% IF Koha.Preference('ManaToken') %] |
98 |
<form id="mana_token" method="post"> |
99 |
<fieldset class="rows" id="mana_token"> |
100 |
<legend>Mana KB token</legend> |
101 |
<ol> |
102 |
<li> |
103 |
<label for="token">Mana token: </label> |
104 |
<input type="text" name="token" value="[% Koha.Preference('ManaToken') | html %]" size="50" disabled="disabled"> |
105 |
<div class="hint">Your unique security token used for authentication on Mana KB service (anti spam).</div> |
106 |
</li> |
107 |
<li> |
108 |
<input type="hidden" name="op" value="reset"> |
109 |
<input type="submit" value="Reset your token"> |
110 |
</li> |
111 |
</ol> |
112 |
</fieldset> |
113 |
</form> |
114 |
[% ELSE %] |
115 |
<form id="mana_request" method="post"> |
116 |
<fieldset class="rows" id="mana_subscription"> |
117 |
<ol> |
118 |
<li> |
119 |
<label for="firstname">First name: </label> |
120 |
<input type="text" name="firstname"> |
121 |
</li> |
122 |
<li> |
123 |
<label for="lastname">Last name: </label> |
124 |
<input type="text" name="lastname"> |
125 |
</li> |
126 |
<li> |
127 |
<label for="email">Email: </label> |
128 |
<input type="text" name="email" size="45" required="required"> |
129 |
</li> |
130 |
<li> |
131 |
<input type="hidden" name="op" value="send"> |
132 |
<input type="submit" value="Send to Mana KB"> |
133 |
</li> |
134 |
</ol> |
135 |
</fieldset> |
136 |
</form> |
137 |
[% END %] |
138 |
</div> |
139 |
</div> <!-- /.col-sm-10.col-sm-push-2 --> |
140 |
|
141 |
<div class="col-sm-2 col-sm-pull-10"> |
142 |
<aside> |
143 |
[% INCLUDE 'admin-menu.inc' %] |
144 |
</aside> |
145 |
</div> <!-- /.col-sm-2.col-sm-pull-10 --> |
146 |
</div> <!-- /.row --> |
147 |
|
148 |
[% MACRO jsinclude BLOCK %] |
149 |
[% Asset.js("js/admin-menu.js") | $raw %] |
150 |
<script> |
151 |
$(document).ready(function() { |
152 |
$('#mana_token').submit(function() { |
153 |
return confirm("This will delete the Mana token from Koha. Do you want to continue?"); |
154 |
}); |
155 |
}); |
156 |
</script> |
157 |
[% END %] |
158 |
[% INCLUDE 'intranet-bottom.inc' %] |