5 [% INCLUDE 'doc-head-open.inc' %]
6 <title>Koha › Administration › Share content with Mana KB</title>
7 [% INCLUDE 'doc-head-close.inc' %]
10 <body id="admin_share_content" 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> › Share content with Mana KB</div>
16 <div class="main container-fluid">
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="dialog alert" role="alert">
22 [% result.msg | html %]
26 [% IF result.code == 201 %]
27 <div class="dialog message" role="alert">
28 You successfully created your Mana KB account. Check your mailbox and follow instructions.
32 [% UNLESS (mana_url) %]
33 <div class="dialog alert" role="alert">
34 Mana configuration is currently empty. This feature will not work. Please contact your site administrator.
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>
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>.
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>
46 <p>Your Mana KB server is currently: <strong>[% mana_url | url %]</strong></p>
49 <form id="mana_preference" method="post" class="clearfix">
50 <fieldset class="rows">
53 <label for="mana">Use Mana KB for sharing content: </label>
54 <select name="mana" id="mana">
55 [% IF Koha.Preference('Mana') == 0 %]
56 <option value="0" selected="selected">No</option>
58 <option value="0">No</option>
61 [% IF Koha.Preference('Mana') == 1 %]
62 <option value="1" selected="selected">Yes</option>
64 <option value="1">Yes</option>
66 [% IF Koha.Preference('Mana') == 2 %]
67 <option value="2" selected="selected">No, let me think about it</option>
69 <option value="2">No, let me think about it</option>
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>
75 <label for="autosharewithmana">Auto subscription sharing: </label>
76 [% IF Koha.Preference('AutoShareWithMana').grep('subscription').size == 0 %]
77 <input id="autosharewithmana" type="checkbox" name="autosharewithmana">
79 <input id="autosharewithmana" type="checkbox" name="autosharewithmana" checked="checked">
81 <div class="hint">If checked, new subscriptions you create will be automatically shared with Mana KB.</div>
84 <fieldset class="action">
85 <input type="hidden" name="op" value="save" />
86 <input type="submit" value="Save" />
91 [% UNLESS Koha.Preference('ManaToken') %]
92 <h3>Configure Mana KB</h3>
94 <p>Once you have enabled Mana it must be configured. Type your 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>
97 [% IF Koha.Preference('ManaToken') %]
98 <form id="mana_token" method="post" class="clearfix">
99 <fieldset class="rows">
100 <legend>Mana KB token</legend>
103 <label for="token">Mana token: </label>
104 <input type="text" id="token" 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>
108 <fieldset class="action">
109 <input type="hidden" name="op" value="reset" />
110 <input type="submit" value="Reset your token" />
115 <form id="mana_request" method="post" class="clearfix">
116 <fieldset class="rows" id="mana_subscription">
119 <label for="name">Your name: </label>
120 <input id="name" type="text" name="name" />
121 <div class="hint">Enter a personal or organization name.</div>
124 <label for="email">Email: </label>
125 <input id="email" type="text" name="email" size="45" required="required" />
128 <fieldset class="action">
129 <input type="hidden" name="op" value="send" />
130 <input type="submit" value="Send to Mana KB" />
136 </div> <!-- /.col-sm-10.col-sm-push-2 -->
138 <div class="col-sm-2 col-sm-pull-10">
140 [% INCLUDE 'admin-menu.inc' %]
142 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
143 </div> <!-- /.row -->
145 [% MACRO jsinclude BLOCK %]
146 [% Asset.js("js/admin-menu.js") | $raw %]
148 $(document).ready(function() {
149 $('#mana_token').submit(function() {
150 return confirm( _("This will delete the Mana KB token from Koha. Do you want to continue?") );
155 [% INCLUDE 'intranet-bottom.inc' %]