View | Details | Raw Unified | Return to bug 22196
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-7 / +6 lines)
Lines 15-32 Link Here
15
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
15
        <div class="col-md-10 col-md-offset-1 col-lg-8 col-lg-offset-2">
16
            [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
16
            [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
17
                <div class="dialog message">
17
                <div class="dialog message">
18
                    <p><center>The Mana Knowledge Base feature is enabled but not configured.</center></p>
18
                    <h4>The Mana Knowledge Base feature is enabled but not configured.</h4>
19
                    <p>This feature allows you to retrieve and share data (subscription patterns and reports) with other Koha libaries.</p>
19
                    <p>This feature allows you to retrieve and share data (subscription patterns and reports) with other Koha libaries.</p>
20
                    <p>
20
                    <p>
21
                        Ask your system administrator to configure this feature, or remove this note by disabling the 'Mana' system preference
21
                        Ask your system administrator to configure this feature, or remove this note by <a href=/cgi-bin/koha/admin/share_content.pl>disabling the 'Mana' system preference</a>.
22
                        <a href=/cgi-bin/koha/admin/share_content.pl>here.</a>
23
                    </p>
22
                    </p>
24
                </div>
23
                </div>
25
            [% END %]
24
            [% END %]
26
            [% IF ( Koha.Preference('Mana') == 2 ) %]
25
            [% IF ( Koha.Preference('Mana') == 2 ) %]
27
                <div class="dialog alert">
26
                <div class="dialog message">
28
                    <p><center> You haven't decided if you want to activate Mana Knowlede Base, please let us know by clicking<center></p>
27
                    <h4>Share content with Mana KB?</h4>
29
                    <a href=/cgi-bin/koha/admin/share_content.pl><center>Here</center></a>
28
                    <p> You haven't decided if you want to activate Mana Knowledge Base. <a href=/cgi-bin/koha/admin/share_content.pl>Change your Mana KB settings</a>.</p>
30
                </div>
29
                </div>
31
            [% END %]
30
            [% END %]
32
        <h1>Koha administration</h1>
31
        <h1>Koha administration</h1>
Lines 203-209 Link Here
203
                        <dd>Share with the Koha community the usage statistics of your Koha installation.</dd>
202
                        <dd>Share with the Koha community the usage statistics of your Koha installation.</dd>
204
                    [% END %]
203
                    [% END %]
205
                    [% IF ( CAN_user_parameters ) %]
204
                    [% IF ( CAN_user_parameters ) %]
206
                        <dt><a href="/cgi-bin/koha/admin/share_content.pl">Using Mana-KB</a></dt>
205
                        <dt><a href="/cgi-bin/koha/admin/share_content.pl">Share content with Mana KB</a></dt>
207
                        <dd>Share content (subscriptions, reports) with Koha communty</dd>
206
                        <dd>Share content (subscriptions, reports) with Koha communty</dd>
208
                    [% END %]
207
                    [% END %]
209
                </dl>
208
                </dl>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-5 / +6 lines)
Lines 59-78 Web services: Link Here
59
            - pref: ILS-DI:AuthorizedIPs
59
            - pref: ILS-DI:AuthorizedIPs
60
              class: Text
60
              class: Text
61
            - to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Leave the field blank to allow any IP address.
61
            - to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Leave the field blank to allow any IP address.
62
    Mana:
62
    Mana KB:
63
        -
63
        -
64
            - pref: Mana
64
            - pref: Mana
65
              choices:
65
              choices:
66
                yes: Enable
66
                yes: Enable
67
                no: Disable
67
                no: Disable
68
                2: No, let me think about it
68
                2: No, let me think about
69
            - request to Mana Webservice. 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 on https://creativecommons.org/choose/zero/
69
            - submissions to Mana KB. 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>
70
        -
70
        -
71
             - "Security token used to authenticate on mana:"
71
             - "Security token used to authenticate on Mana KB:"
72
             - pref: ManaToken
72
             - pref: ManaToken
73
               class: Text
73
               class: Text
74
             - Get a security token on the <a href="/cgi-bin/koha/admin/share_content.pl">Mana KB administration page</a>.
74
        -
75
        -
75
            - 'Fields automatically shared with mana'
76
            - 'Fields automatically shared with Mana KB'
76
            - pref: AutoShareWithMana
77
            - pref: AutoShareWithMana
77
              multiple:
78
              multiple:
78
                subscription: Subscriptions
79
                subscription: Subscriptions
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/share_content.tt (-41 / +41 lines)
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 &rsaquo; Administration &rsaquo; Koha usage statistics</title>
6
<title>Koha &rsaquo; Administration &rsaquo; 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> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; Usage statistics</div>
14
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; 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
- 

Return to bug 22196