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

(-)a/C4/UsageStats.pm (+2 lines)
Lines 351-356 sub _shared_preferences { Link Here
351
        ILS-DI
351
        ILS-DI
352
        OAI-PMH
352
        OAI-PMH
353
        version
353
        version
354
        OCLCDeweyLinkedDataAPI
355
        OCLCDeweyLinkedDataLanguage
354
        /;
356
        /;
355
357
356
    return \@preferences;
358
    return \@preferences;
(-)a/installer/data/mysql/atomicupdate/bug_40308.pl (+49 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "40308",
6
    description =>
7
        "Adds new system preferences 'OCLCAPIWSKeyClientID', 'OCLCAPIWSKeyClientSecret', 'OCLCDeweyLinkedDataAPI', and 'OCLCDeweyLinkedDataLanguage'",
8
    up => sub {
9
        my ($args) = @_;
10
        my ( $dbh, $out ) = @$args{qw(dbh out)};
11
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
15
            ('OCLCAPIWSKeyClientID', '', NULL, 'The client ID component of your OCLC API WSKey', 'Free')
16
            }
17
        );
18
        say_success( $out, "Added new system preference 'OCLCAPIWSKeyClientID'" );
19
20
        $dbh->do(
21
            q{
22
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
23
            ('OCLCAPIWSKeyClientSecret', '', NULL, 'The client secret component of your OCLC API WSKey', 'Free')
24
            }
25
        );
26
        say_success( $out, "Added new system preference 'OCLCAPIWSKeyClientSecret'" );
27
28
        say_info(
29
            $out,
30
            "Please refer to https://help.oclc.org/Librarian_Toolbox/OCLC_APIs/Get_started/Request_an_API_WSKey for information on how to obtain an OCLC API WSKey"
31
        );
32
33
        $dbh->do(
34
            q{
35
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
36
            ('OCLCDeweyLinkedDataAPI', '0', NULL, 'If enabled, users will be able to query the OCLC Dewey Linked Data API while cataloguing authorities', 'YesNo')
37
            }
38
        );
39
        say_success( $out, "Added new system preference 'OCLCDeweyLinkedDataAPI'" );
40
41
        $dbh->do(
42
            q{
43
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
44
            ('OCLCDeweyLinkedDataLanguage', 'en', 'de|en|fr|it|no|sv', 'Defines the language of the DDC number/range description to be copied in authority subfield 083$c (MARC21) or 676$c (UNIMARC)', 'Choice')
45
            }
46
        );
47
        say_success( $out, "Added new system preference 'OCLCDeweyLinkedDataLanguage'" );
48
    },
49
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+4 lines)
Lines 465-470 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
465
('OAI-PMH:DeletedRecord','persistent','Koha\'s deletedbiblio table will never be deleted (persistent), might be deleted (transient), or will never have any data in it (no)','transient|persistent|no','Choice'),
465
('OAI-PMH:DeletedRecord','persistent','Koha\'s deletedbiblio table will never be deleted (persistent), might be deleted (transient), or will never have any data in it (no)','transient|persistent|no','Choice'),
466
('OAI-PMH:HarvestEmailReport','','','After an OAI-PMH harvest, send a report email to the email address','Free'),
466
('OAI-PMH:HarvestEmailReport','','','After an OAI-PMH harvest, send a report email to the email address','Free'),
467
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
467
('OAI-PMH:MaxCount','50',NULL,'OAI-PMH maximum number of records by answer to ListRecords and ListIdentifiers queries','Integer'),
468
('OCLCAPIWSKeyClientID', '', NULL, 'The client ID component of your OCLC API WSKey', 'Free'),
469
('OCLCAPIWSKeyClientSecret', '', NULL, 'The client secret component of your OCLC API WSKey', 'Free'),
470
('OCLCDeweyLinkedDataAPI', '0', NULL, 'If enabled, users will be able to query the OCLC Dewey Linked Data API while cataloguing authorities', 'YesNo'),
471
('OCLCDeweyLinkedDataLanguage', 'en', 'de|en|fr|it|no|sv', 'Defines the language of the DDC number/range description to be copied in authority subfield 083$c (MARC21) or 676$c (UNIMARC)', 'Choice'),
468
('OnSiteCheckoutAutoCheck','0','','Enable/Do not enable onsite checkout by default if last checkout was an onsite checkout','YesNo'),
472
('OnSiteCheckoutAutoCheck','0','','Enable/Do not enable onsite checkout by default if last checkout was an onsite checkout','YesNo'),
469
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
473
('OnSiteCheckouts','0','','Enable/Disable the on-site checkouts feature','YesNo'),
470
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
474
('OnSiteCheckoutsForce','0','','Enable/Disable the on-site for all cases (Even if a user is debarred, etc.)','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-1 / +33 lines)
Lines 141-143 Web services: Link Here
141
                0: Disable
141
                0: Disable
142
            - the IdRef web service from the OPAC detail page. IdRef allows requests for authorities from the Sudoc database.
142
            - the IdRef web service from the OPAC detail page. IdRef allows requests for authorities from the Sudoc database.
143
            - Please note that this feature is available only for UNIMARC.
143
            - Please note that this feature is available only for UNIMARC.
144
- 
144
145
    OCLC Dewey Linked Data API:
146
        -
147
            - "OCLC API WSKey Client ID:"
148
            - pref: OCLCAPIWSKeyClientID
149
            - Along with <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCAPIWSKeyClientSecret">OCLCAPIWSKeyClientSecret</a>, enables <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCDeweyLinkedDataAPI">OCLCDeweyLinkedDataAPI</a>.
150
        -
151
            - "OCLC API WSKey Client Secret:"
152
            - pref: OCLCAPIWSKeyClientSecret
153
            - Along with <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCAPIWSKeyClientID">OCLCAPIWSKeyClientID</a>, enables <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCDeweyLinkedDataAPI">OCLCDeweyLinkedDataAPI</a>.
154
        -
155
            - pref: OCLCDeweyLinkedDataAPI
156
              choices:
157
                1: Enable
158
                0: Disable
159
            - querying the OCLC Dewey Linked Data API while editing authority records.
160
            - <br><br>This feature enables searching for DDC (Dewey Decimal Classification) numbers in the <a href="https://help.oclc.org/Metadata_Services/WebDewey/WebDewey_Linked_Data/Dewey_Linked_Data_API">OCLC Dewey Linked Data API</a>.
161
            - <br>The API is capable of returning unique Linked Data IDs (URIs) and corresponding URLs for a given DDC number (or range), which can then be stored in subfield <a href="https://www.loc.gov/marc/authority/ad082.html">082</a>$1/<a href="https://www.loc.gov/marc/authority/ad083.html">083</a>$1 (MARC21), or <a href="https://www.ifla.org/unimarc-updates/unimarc-authorities-format-manual-online-ed/">676</a>$R (UNIMARC).
162
            - <br>The API is also capable of returning Descriptions for a given Linked Data URI, which can then be stored in subfield <a href="https://www.loc.gov/marc/authority/ad083.html">083</a>$c (MARC21), or <a href="https://www.ifla.org/unimarc-updates/unimarc-authorities-format-manual-online-ed/">676</a>$c (UNIMARC).
163
            - <br><br>Requires both <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCAPIWSKeyClientID">OCLCAPIWSKeyClientID</a> and <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OCLCAPIWSKeyClientSecret">OCLCAPIWSKeyClientSecret</a> to be set before set to 'Enable'.
164
            - <br>Please refer to the <a href="https://help.oclc.org/Librarian_Toolbox/OCLC_APIs/Get_started/Request_an_API_WSKey">official OCLC documentation</a> for information on how to obtain an OCLC API WSKey.
165
            - <br><br><strong>NOTE:</strong> You must have a valid WebDewey subscription in order to <a href="https://help.oclc.org/Librarian_Toolbox/OCLC_APIs/Get_started/Request_an_API_WSKey">request a WSKey</a> capable of accessing the OCLC Dewey Linked Data API.
166
        -
167
            - Use
168
            - pref: OCLCDeweyLinkedDataLanguage
169
              choices:
170
                en: English
171
                fr: French
172
                de: German
173
                it: Italian
174
                no: Norwegian
175
                sv: Swedish
176
            - as the language of the DDC number/range description to be copied in authority subfield 083$c (MARC21) or 676$c (UNIMARC).

Return to bug 40308