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

(-)a/Koha/Manual.pm (-1 / +1 lines)
Lines 57-63 Use system preferences 'KohaManualLanguage' and 'KohaManualBaseURL' to properly Link Here
57
sub _get_base_url {
57
sub _get_base_url {
58
    my ($preferred_language) = @_;
58
    my ($preferred_language) = @_;
59
59
60
    my @available_languages = qw( en ar cs es fr it pt_BR tz zh_TW );
60
    my @available_languages = qw( el en ar cs es fr it pt_BR tz zh_TW );
61
61
62
    my ($language) = grep {
62
    my ($language) = grep {
63
        my $preferred_short = substr $preferred_language, 0, 2;
63
        my $preferred_short = substr $preferred_language, 0, 2;
(-)a/installer/data/mysql/atomicupdate/bug_41332.pl (+18 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  => "41332",
6
    description => "Adds new option for Greek (el) to system preference 'KohaManualLanguage'",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            UPDATE systempreferences SET options = 'el|en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW' WHERE variable = 'KohaManualLanguage'
14
            }
15
        );
16
        say_success( $out, "Added new option for Greek (el) to system preference 'KohaManualLanguage'" );
17
    },
18
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 380-386 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
380
('JobsNotificationMethod','STOMP','polling|STOMP','Define the preferred job worker notification method','Choice'),
380
('JobsNotificationMethod','STOMP','polling|STOMP','Define the preferred job worker notification method','Choice'),
381
('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'),
381
('KohaAdminEmailAddress','root@localhost','','Define the email address where patron modification requests are sent','free'),
382
('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'),
382
('KohaManualBaseURL','https://koha-community.org/manual/','','Where is the Koha manual/documentation located?','Free'),
383
('KohaManualLanguage','en','en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
383
('KohaManualLanguage','en','el|en|ar|cs|de|es|fr|it|pt_BR|tr|zh_TW','What is the language of the online manual you want to use?','Choice'),
384
('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'),
384
('LabelMARCView','standard','standard|economical','Define how a MARC record will display','Choice'),
385
('LanguageToUseOnMerge','',NULL,'If set, the authority field having the given language code in its $7 subfield will be used in the bibliographic record if it exists, rather than the first field. The code can be in a short, 2 characters long form (example: ba for latin) or in a long, 8 characters long form, with the short form in position 5 and 6 starting from 1 (example: ba0yba0y for latin). A list of available codes can be found here: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d. Please note that this feature is available only for UNIMARC.','Free'),
385
('LanguageToUseOnMerge','',NULL,'If set, the authority field having the given language code in its $7 subfield will be used in the bibliographic record if it exists, rather than the first field. The code can be in a short, 2 characters long form (example: ba for latin) or in a long, 8 characters long form, with the short form in position 5 and 6 starting from 1 (example: ba0yba0y for latin). A list of available codes can be found here: https://documentation.abes.fr/sudoc/formats/unmb/DonneesCodees/CodesZone104.htm#$d. Please note that this feature is available only for UNIMARC.','Free'),
386
('LibraryName','','','Define the library name as displayed on the OPAC',''),
386
('LibraryName','','','Define the library name as displayed on the OPAC',''),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/enhanced_content.pref (-1 / +1 lines)
Lines 422-427 Enhanced content: Link Here
422
            - Language of the online manual
422
            - Language of the online manual
423
            - pref: KohaManualLanguage
423
            - pref: KohaManualLanguage
424
              choices:
424
              choices:
425
                el: Greek
425
                en: English
426
                en: English
426
                ar: Arabic
427
                ar: Arabic
427
                cs: Czech
428
                cs: Czech
428
- 

Return to bug 41332