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

(-)a/installer/data/mysql/atomicupdate/bug_30288_-_add_OPACEnhancementPreferencesLinks_syspref.pl (+12 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "30288",
5
    description => "Add new system preference OPACEnhancementPreferencesLinks",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('OPACEnhancementPreferencesLinks', '0', NULL, 'Make OPAC enhancement preferences easily accessible from the additional contents tools.', 'YesNo') });
11
    },
12
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 408-413 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
408
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
408
('OPACdefaultSortOrder','dsc','asc|dsc|za|az','Specify the default sort order','Choice'),
409
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
409
('OPACdidyoumean','',NULL,'Did you mean? configuration for the OPAC. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free'),
410
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
410
('OPACDisplay856uAsImage','OFF','OFF|Details|Results|Both','Display the URI in the 856u field as an image, the corresponding OPACXSLT option must be on','Choice'),
411
('OPACEnhancementPreferencesLinks', '0', NULL, 'Make OPAC enhancement preferences easily accessible from the additional contents tools.', 'YesNo'),
411
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
412
('OpacExportOptions','bibtex,dc,marcxml,marc8,utf8,marcstd,mods,ris,isbd','','Define export options available on OPAC detail page.','multiple'),
412
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
413
('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes'),
413
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
414
('OpacFavicon','','','Enter a complete URL to an image to replace the default Koha favicon on the OPAC','free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/tools.pref (+6 lines)
Lines 44-49 Tools: Link Here
44
                  tinymce: "a WYSIWYG editor (TinyMCE)"
44
                  tinymce: "a WYSIWYG editor (TinyMCE)"
45
                  codemirror: "a text editor (CodeMirror)"
45
                  codemirror: "a text editor (CodeMirror)"
46
            - .
46
            - .
47
        -
48
            - pref: OPACEnhancementPreferencesLinks
49
              choices:
50
                  1: "Provide"
51
                  0: "Don't provide"
52
            - "links to OPAC enhancement preferences (<a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a> and <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a>) within the additional contents and news tools."
47
    Upload:
53
    Upload:
48
        -
54
        -
49
            - Automatically delete temporary uploads older than
55
            - Automatically delete temporary uploads older than
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +4 lines)
Lines 300-305 Link Here
300
    [% ELSE %]
300
    [% ELSE %]
301
        See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a>
301
        See <a href="/cgi-bin/koha/tools/additional-contents.pl?category=news">News</a>
302
    [% END %]
302
    [% END %]
303
    [% IF Koha.Preference("OPACEnhancementPreferencesLinks") %]
304
        | See <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserJS'>OPACUserJS</a>
305
        | See <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=OPACUserCSS'>OPACUserCSS</a>
306
    [% END %]
303
307
304
    [% IF additional_contents.count %]
308
    [% IF additional_contents.count %]
305
        <form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl">
309
        <form id="del_form" method="post" action="/cgi-bin/koha/tools/additional-contents.pl">
306
- 

Return to bug 30288