Lines 3-61
Link Here
|
3 |
[% SET footerjs = 1 %] |
3 |
[% SET footerjs = 1 %] |
4 |
[% USE Koha %] |
4 |
[% USE Koha %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
<title>Koha › Administration › Koha usage statistics</title> |
6 |
<title>Koha › Administration › Share content with Mana KB</title> |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
7 |
[% INCLUDE 'doc-head-close.inc' %] |
8 |
</head> |
8 |
</head> |
9 |
|
9 |
|
10 |
<body id="admin_usage_statistics" class="admin"> |
10 |
<body id="admin_share_content" class="admin"> |
11 |
[% INCLUDE 'header.inc' %] |
11 |
[% INCLUDE 'header.inc' %] |
12 |
[% INCLUDE 'cat-search.inc' %] |
12 |
[% INCLUDE 'cat-search.inc' %] |
13 |
|
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> |
14 |
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Share content with Mana KB</div> |
15 |
|
15 |
|
16 |
<div class="main container-fluid"> |
16 |
<div class="main container-fluid"> |
17 |
<div class="row"> |
17 |
<div class="row"> |
18 |
<div class="col-sm-10 col-sm-push-2"> |
18 |
<div class="col-sm-10 col-sm-push-2"> |
19 |
<div class="col-sm-6"> |
19 |
<div class="col-sm-6"> |
20 |
[% IF result.code != 201 && result.msg %] |
20 |
[% IF result.code != 201 && result.msg %] |
21 |
<div class="alert alert-danger" role="alert"> |
21 |
<div class="dialog alert" role="alert"> |
22 |
[% result.msg | html %] |
22 |
[% result.msg | html %] |
23 |
</div> |
23 |
</div> |
24 |
[% END %] |
24 |
[% END %] |
25 |
|
25 |
|
26 |
[% IF result.code == 201 %] |
26 |
[% IF result.code == 201 %] |
27 |
<div class="dialog message" role="alert"> |
27 |
<div class="dialog message" role="alert"> |
28 |
Well done! You successfully created your Mana KB account. Check your mailbox and follow instructions. |
28 |
You successfully created your Mana KB account. Check your mailbox and follow instructions. |
29 |
</div> |
29 |
</div> |
30 |
[% END %] |
30 |
[% END %] |
31 |
|
31 |
|
32 |
[% UNLESS (mana_url) %] |
32 |
[% UNLESS (mana_url) %] |
33 |
<div class="alert alert-danger" role="alert"> |
33 |
<div class="dialog alert" role="alert"> |
34 |
Mana config is currently empty, this feature will not work. Please contact your site administartor. |
34 |
Mana configuration is currently empty. This feature will not work. Please contact your site administartor. |
35 |
</div> |
35 |
</div> |
36 |
[% END %] |
36 |
[% END %] |
37 |
|
37 |
|
38 |
<h1>Share content with the Koha community using Mana KB</h1> |
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> |
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 |
|
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> |
41 |
<p>Mana centralizes information between other Koha installations to facilitate the creation of new subscriptions, vendors, reports, etc. You can search, share, import, and comment on the content of Mana. The information shared with Mana KB is shared under the <a href="https://creativecommons.org/choose/zero/">CC-0 license</a>. |
42 |
|
42 |
|
43 |
<p>Learn more about Mana on the <a href="https://wiki.koha-community.org/wiki/Mana_central_database">official documentation</a>.</p> |
43 |
<p>Learn more about Mana KB on the <a href="https://wiki.koha-community.org/wiki/Mana_central_database">official Mana KB documentation</a>.</p> |
44 |
|
44 |
|
45 |
[% IF (mana_url) %] |
45 |
[% IF (mana_url) %] |
46 |
<p> Your Mana KB server is currently: <strong>[% mana_url | url %]</strong></p> |
46 |
<p> Your Mana KB server is currently: <strong>[% mana_url | url %]</strong></p> |
47 |
[% END %] |
47 |
[% END %] |
48 |
|
48 |
|
49 |
<form id="mana_preference" method="post"> |
49 |
<form id="mana_preference" method="post" class="clearfix"> |
50 |
<fieldset class="rows"> |
50 |
<fieldset class="rows"> |
51 |
<ol> |
51 |
<ol> |
52 |
<li> |
52 |
<li> |
53 |
<label for="mana">Use Mana KB for sharing content: </label> |
53 |
<label for="mana">Use Mana KB for sharing content: </label> |
54 |
<select name="mana"> |
54 |
<select name="mana" id="mana"> |
55 |
[% IF Koha.Preference('Mana') == 0 %] |
55 |
[% IF Koha.Preference('Mana') == 0 %] |
56 |
<option value="0" selected="selected">No</option> |
56 |
<option value="0" selected="selected">No</option> |
57 |
[% ELSE %] |
57 |
[% ELSE %] |
58 |
<option value="0"">No</option> |
58 |
<option value="0">No</option> |
59 |
[% END %] |
59 |
[% END %] |
60 |
|
60 |
|
61 |
[% IF Koha.Preference('Mana') == 1 %] |
61 |
[% IF Koha.Preference('Mana') == 1 %] |
Lines 69-136
Well done! You successfully created your Mana KB account. Check your mailbox and
Link Here
|
69 |
<option value="2">No, let me think about it</option> |
69 |
<option value="2">No, let me think about it</option> |
70 |
[% END %] |
70 |
[% END %] |
71 |
</select> |
71 |
</select> |
72 |
<div class="hint">Enable Mana allow you to search, import and comment content from Mana server, and, to share your own.</div> |
72 |
<div class="hint">Enable Mana KB in order to search, import, and comment on content from the Mana KB server, and to share your own.</div> |
73 |
</li> |
73 |
</li> |
74 |
<li> |
74 |
<li> |
75 |
<label for="autosharewithmana">Auto subscriptions sharing: </label> |
75 |
<label for="autosharewithmana">Auto subscription sharing: </label> |
76 |
[% IF Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %] |
76 |
[% IF Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %] |
77 |
<input type="checkbox" name="autosharewithmana"> |
77 |
<input id="autosharewithmana" type="checkbox" name="autosharewithmana"> |
78 |
[% ELSE %] |
78 |
[% ELSE %] |
79 |
<input type="checkbox" name="autosharewithmana" checked="checked"> |
79 |
<input id="autosharewithmana" type="checkbox" name="autosharewithmana" checked="checked"> |
80 |
[% END %] |
80 |
[% END %] |
81 |
<div class="hint">If checked, new subscriptions you created yourself will be automatically shared with Mana KB.</div> |
81 |
<div class="hint">If checked, new subscriptions you create will be automatically shared with Mana KB.</div> |
82 |
</li> |
|
|
83 |
<li> |
84 |
<input type="hidden" name="op" value="save"> |
85 |
<input type="submit" value="Save"> |
86 |
</li> |
82 |
</li> |
87 |
</ol> |
83 |
</ol> |
|
|
84 |
<fieldset class="action"> |
85 |
<input type="hidden" name="op" value="save" /> |
86 |
<input type="submit" value="Save" /> |
87 |
</fieldset> |
88 |
</fieldset> |
88 |
</fieldset> |
89 |
</form> |
89 |
</form> |
90 |
|
90 |
|
91 |
[% UNLESS Koha.Preference('ManaToken') %] |
91 |
[% UNLESS Koha.Preference('ManaToken') %] |
92 |
<h3>Configure Mana KB</h3> |
92 |
<h3>Configure Mana KB</h3> |
93 |
<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> |
93 |
|
|
|
94 |
<p>Once you have enabled Mana it must be configured. Type your first name, last name, and email address and submit. This will send a account creation request to Mana KB that will respond back with a Mana KB token (an encrypted ID that uniquely identifies your Koha installation). This token will automatically be saved in your database. After that you will receive an email. Read it and follow the instructions.</p> |
94 |
[% END %] |
95 |
[% END %] |
95 |
|
96 |
|
96 |
[% IF Koha.Preference('ManaToken') %] |
97 |
[% IF Koha.Preference('ManaToken') %] |
97 |
<form id="mana_token" method="post"> |
98 |
<form id="mana_token" method="post" class="clearfix"> |
98 |
<fieldset class="rows" id="mana_token"> |
99 |
<fieldset class="rows"> |
99 |
<legend>Mana KB token</legend> |
100 |
<legend>Mana KB token</legend> |
100 |
<ol> |
101 |
<ol> |
101 |
<li> |
102 |
<li> |
102 |
<label for="token">Mana token: </label> |
103 |
<label for="token">Mana token: </label> |
103 |
<input type="text" name="token" value="[% Koha.Preference('ManaToken') | html %]" size="50" disabled="disabled"> |
104 |
<input type="text" id="token" name="token" value="[% Koha.Preference('ManaToken') | html %]" size="50" disabled="disabled" /> |
104 |
<div class="hint">Your unique security token used for authentication on Mana KB service (anti spam).</div> |
105 |
<div class="hint">Your unique security token used for authentication on Mana KB service (anti spam).</div> |
105 |
</li> |
106 |
</li> |
106 |
<li> |
|
|
107 |
<input type="hidden" name="op" value="reset"> |
108 |
<input type="submit" value="Reset your token"> |
109 |
</li> |
110 |
</ol> |
107 |
</ol> |
|
|
108 |
<fieldset class="action"> |
109 |
<input type="hidden" name="op" value="reset" /> |
110 |
<input type="submit" value="Reset your token" /> |
111 |
</fieldset> |
111 |
</fieldset> |
112 |
</fieldset> |
112 |
</form> |
113 |
</form> |
113 |
[% ELSE %] |
114 |
[% ELSE %] |
114 |
<form id="mana_request" method="post"> |
115 |
<form id="mana_request" method="post" class="clearfix"> |
115 |
<fieldset class="rows" id="mana_subscription"> |
116 |
<fieldset class="rows" id="mana_subscription"> |
116 |
<ol> |
117 |
<ol> |
117 |
<li> |
118 |
<li> |
118 |
<label for="firstname">First name: </label> |
119 |
<label for="firstname">First name: </label> |
119 |
<input type="text" name="firstname"> |
120 |
<input id="firstname" type="text" name="firstname" /> |
120 |
</li> |
121 |
</li> |
121 |
<li> |
122 |
<li> |
122 |
<label for="lastname">Last name: </label> |
123 |
<label for="lastname">Last name: </label> |
123 |
<input type="text" name="lastname"> |
124 |
<input id="lastname" type="text" name="lastname" /> |
124 |
</li> |
125 |
</li> |
125 |
<li> |
126 |
<li> |
126 |
<label for="email">Email: </label> |
127 |
<label for="email">Email: </label> |
127 |
<input type="text" name="email" size="45" required="required"> |
128 |
<input id="email" type="text" name="email" size="45" required="required" /> |
128 |
</li> |
|
|
129 |
<li> |
130 |
<input type="hidden" name="op" value="send"> |
131 |
<input type="submit" value="Send to Mana KB"> |
132 |
</li> |
129 |
</li> |
133 |
</ol> |
130 |
</ol> |
|
|
131 |
<fieldset class="action"> |
132 |
<input type="hidden" name="op" value="send" /> |
133 |
<input type="submit" value="Send to Mana KB" /> |
134 |
</fieldset> |
134 |
</fieldset> |
135 |
</fieldset> |
135 |
</form> |
136 |
</form> |
136 |
[% END %] |
137 |
[% END %] |
Lines 149-155
Well done! You successfully created your Mana KB account. Check your mailbox and
Link Here
|
149 |
<script> |
150 |
<script> |
150 |
$(document).ready(function() { |
151 |
$(document).ready(function() { |
151 |
$('#mana_token').submit(function() { |
152 |
$('#mana_token').submit(function() { |
152 |
return confirm("This will delete the Mana token from Koha. Do you want to continue?"); |
153 |
return confirm( _("This will delete the Mana KB token from Koha. Do you want to continue?") ); |
153 |
}); |
154 |
}); |
154 |
}); |
155 |
}); |
155 |
</script> |
156 |
</script> |
156 |
- |
|
|