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

(-)a/installer/data/mysql/atomicupdate/bug_28080_atomicupdate.perl (+7 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('OPACHTMLHead','', 'Allow the insertion of HTML in the document <head>', NULL,'textarea')" );
4
5
    # Always end with this (adjust the bug info)
6
    NewVersion( $DBversion, 28080, "Allow the insertion of HTML in the document <head> via system preference");
7
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 471-476 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
471
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
471
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
472
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
472
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
473
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
473
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
474
('OPACHTMLHead','',NULL,'Add HTML to be included in the OPAC in the document <head> tag.','free'),
474
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
475
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
475
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
476
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
476
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
477
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 215-220 OPAC: Link Here
215
              class: url
215
              class: url
216
            - for the OPAC's favicon. (This should be a complete URL, starting with <code>http://</code>.)
216
            - for the OPAC's favicon. (This should be a complete URL, starting with <code>http://</code>.)
217
        -
217
        -
218
            - "Include the following in the HTML head on all pages in the OPAC:"
219
            - pref: OPACHTMLHead
220
              type: textarea
221
              syntax: html
222
              class: code
223
        -
218
            - "Include the following JavaScript on all pages in the OPAC:"
224
            - "Include the following JavaScript on all pages in the OPAC:"
219
            - pref: OPACUserJS
225
            - pref: OPACUserJS
220
              type: textarea
226
              type: textarea
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-1 / +1 lines)
Lines 2-7 Link Here
2
[% USE Koha %]
2
[% USE Koha %]
3
[%- USE KohaPlugins -%]
3
[%- USE KohaPlugins -%]
4
[% USE Asset %]
4
[% USE Asset %]
5
[% Koha.Preference( 'OPACHTMLHead' ) | $raw %]
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
7
<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
7
<meta name="viewport" content="width=device-width, initial-scale=1" />
8
<meta name="viewport" content="width=device-width, initial-scale=1" />
8
- 

Return to bug 28080