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

(-)a/admin/admin-home.pl (+2 lines)
Lines 25-30 use Koha::Plugins; Link Here
25
my $query = new CGI;
25
my $query = new CGI;
26
26
27
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
27
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
28
my $mana_url        = C4::Context->config('mana_config');
28
29
29
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
30
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
30
    {
31
    {
Lines 38-42 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
38
);
39
);
39
40
40
$template->param( plugins_enabled => $plugins_enabled, );
41
$template->param( plugins_enabled => $plugins_enabled, );
42
$template->param( mana_url        => $mana_url, );
41
43
42
output_html_with_http_headers $query, $cookie, $template->output;
44
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/installer/data/mysql/atomicupdate/mana_02-add_Mana_syspref.sql (-1 / +1 lines)
Lines 1-2 Link Here
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
1
INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
2
('Mana','0',NULL,'request to Mana Webservice. Mana centralize common 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.','YesNo');
2
('Mana','1',NULL,'request to Mana Webservice. Mana centralize common 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.','YesNo');
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 275-281 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
275
('LocalHoldsPriorityItemControl',  'holdingbranch',  'holdingbranch|homebranch',  'decides if the feature operates using the item''s home or holding library.',  'Choice'),
275
('LocalHoldsPriorityItemControl',  'holdingbranch',  'holdingbranch|homebranch',  'decides if the feature operates using the item''s home or holding library.',  'Choice'),
276
('LocalHoldsPriorityPatronControl',  'PickupLibrary',  'HomeLibrary|PickupLibrary',  'decides if the feature operates using the library set as the patron''s home library, or the library set as the pickup library for the given hold.',  'Choice'),
276
('LocalHoldsPriorityPatronControl',  'PickupLibrary',  'HomeLibrary|PickupLibrary',  'decides if the feature operates using the library set as the patron''s home library, or the library set as the pickup library for the given hold.',  'Choice'),
277
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
277
('makePreviousSerialAvailable','0','','make previous serial automatically available when collecting a new serial. Please note that the item-level_itypes syspref must be set to specific item.','YesNo'),
278
('Mana','0',NULL,'request to Mana Webservice. Mana centralize common 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.','YesNo'),
278
('Mana','1',NULL,'request to Mana Webservice. Mana centralize common 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.','YesNo'),
279
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
279
('ManInvInNoissuesCharge','1',NULL,'MANUAL_INV charges block checkouts (added to noissuescharge).','YesNo'),
280
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
280
('MARCAuthorityControlField008','|| aca||aabn           | a|a     d',NULL,'Define the contents of MARC21 authority control field 008 position 06-39','Textarea'),
281
('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. "MARC21" or "UNIMARC". {FIELD} = field number, eg. "000" or "048". {LANG} = user language, eg. "en" or "fi-FI"', 'free'),
281
('MarcFieldDocURL', NULL, NULL, 'URL used for MARC field documentation. Following substitutions are available: {MARC} = marc flavour, eg. "MARC21" or "UNIMARC". {FIELD} = field number, eg. "000" or "048". {LANG} = user language, eg. "en" or "fi-FI"', 'free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-4 / +8 lines)
Lines 13-22 Link Here
13
<div class="main container-fluid">
13
<div class="main container-fluid">
14
    <div class="row">
14
    <div class="row">
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') == 2) %]
16
            [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
17
                <div class="dialog alert">
17
                <div class="dialog message">
18
                    <p><center> You haven't decided if you want to activate Mana Knowlede Base, please let us know by clicking<center></p>
18
                    <p><center>The Mana Knowledge Base feature is enabled but not configured.</center></p>
19
                    <a href=/cgi-bin/koha/admin/share_content.pl><center>Here</center></a>
19
                    <p>This feature allows you to retrieve and share data (subscription patterns and reports) with other Koha libaries.</p>
20
                    <p>
21
                        Ask your system administrator to configure this feature, or remove this note by disabling the 'Mana' system preference
22
                        <a href=/cgi-bin/koha/admin/share_content.pl>here.</a>
23
                    </p>
20
                </div>
24
                </div>
21
           [% END %]
25
           [% END %]
22
        <h1>Koha administration</h1>
26
        <h1>Koha administration</h1>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/subscription-add.tt (-5 / +4 lines)
Lines 214-224 width: 300px; /* not enough for IE7 apparently */ Link Here
214
214
215
                <div id="page_2">
215
                <div id="page_2">
216
                    <div class="col-md-6">
216
                    <div class="col-md-6">
217
                [% IF ( Koha.Preference('Mana') == 2) %]
217
                [% IF ( Koha.Preference('Mana') == 1) && !mana_url %]
218
                    <fieldset>
218
                    <fieldset>
219
                        <p><center>You haven't activated the Mana Knowledge Base, click
219
                        <p><center>The Mana Knowledge Base can be used to import subscription patterns submitted by other libraries and save you extra work. Ask your system administrator to configure this service and complete the configuration, or remove this message by disabling the system preference
220
                        <a href=/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=request+to+mana+webservice>here</a>
220
                        <a href=/cgi-bin/koha/admin/preferences.pl?tab=&op=search&searchfield=request+to+mana+webservice>here</a></center></p>
221
                         to configure.</center></p>
222
                    </fieldset>
221
                    </fieldset>
223
                [% END %]
222
                [% END %]
224
223
Lines 529-535 width: 300px; /* not enough for IE7 apparently */ Link Here
529
        [% FOREACH field IN dont_export_field_loop %]
528
        [% FOREACH field IN dont_export_field_loop %]
530
            tags.push("[% field.fieldid | html %]");
529
            tags.push("[% field.fieldid | html %]");
531
        [% END %]
530
        [% END %]
532
        var mana_enabled = [% Koha.Preference('Mana') | html %]
531
        var mana_enabled = [% IF (Koha.Preference('Mana') && mana_url) %]1[% ELSE %]0[% END %]; 
533
        var MSG_LINK_TO_VENDOR = _("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor");
532
        var MSG_LINK_TO_VENDOR = _("If you wish to claim late or missing issues you must link this subscription to a vendor. Click OK to ignore or Cancel to return and enter a vendor");
534
        var MSG_LINK_BIBLIO = _("You must choose or create a bibliographic record");
533
        var MSG_LINK_BIBLIO = _("You must choose or create a bibliographic record");
535
        var MSG_REQUIRED_SUB_LENGTH = _("You must choose a subscription length or an end date.");
534
        var MSG_REQUIRED_SUB_LENGTH = _("You must choose a subscription length or an end date.");
(-)a/serials/subscription-add.pl (-1 / +3 lines)
Lines 68-73 my $sub_on; Link Here
68
my $subs;
68
my $subs;
69
our $firstissuedate;
69
our $firstissuedate;
70
70
71
my $mana_url = C4::Context->config('mana_config');
72
$template->param( 'mana_url' => $mana_url );
73
71
if ($op eq 'modify' || $op eq 'dup' || $op eq 'modsubscription') {
74
if ($op eq 'modify' || $op eq 'dup' || $op eq 'modsubscription') {
72
75
73
    my $subscriptionid = $query->param('subscriptionid');
76
    my $subscriptionid = $query->param('subscriptionid');
74
- 

Return to bug 17047