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

(-)a/installer/data/mysql/atomicupdate/bug_33317.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "33317",
5
    description => "Add new system preference OpacMetaRobots",
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 ('OpacMetaRobots','','','Improve search engine crawling.', 'Textarea') });
11
12
        say $out "Added system preference 'OpacMetaRobots'";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 493-498 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
493
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
493
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
494
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
494
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
495
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
495
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
496
('OpacMetaRobots','','','Improve search engine crawling.','Textarea'),
496
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my checkout history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
497
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my checkout history\' tabs when a user is logged in to the OPAC. Enter {BIBLIONUMBER}, {TITLE}, {AUTHOR}, or {ISBN} in place of their respective variables in the HTML. Leave blank to disable.','Textarea'),
497
('OpacNewsLibrarySelect','0','','Show selector for branches on OPAC news page','YesNo'),
498
('OpacNewsLibrarySelect','0','','Show selector for branches on OPAC news page','YesNo'),
498
('OpacNoItemTypeImages','0',NULL,'If ON, disables itemtype images in the OPAC','YesNo'),
499
('OpacNoItemTypeImages','0',NULL,'If ON, disables itemtype images in the OPAC','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+4 lines)
Lines 60-65 OPAC: Link Here
60
            - "This description will show in search engine results (160 characters)."
60
            - "This description will show in search engine results (160 characters)."
61
            - pref: OpacMetaDescription
61
            - pref: OpacMetaDescription
62
              type: textarea
62
              type: textarea
63
        -
64
            - "Improve search engine crawling."
65
            - pref: OpacMetaRobots
66
              type: textarea
63
        -
67
        -
64
            - By default, show bibliographic records
68
            - By default, show bibliographic records
65
            - pref: BiblioDefaultView
69
            - pref: BiblioDefaultView
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-1 / +3 lines)
Lines 10-15 Link Here
10
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
10
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
11
    <meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
11
    <meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
12
[% END %]
12
[% END %]
13
[% IF ( Koha.Preference('OpacMetaRobots') ) %]
14
    <meta name="robots" content="[% Koha.Preference('OpacMetaRobots') | html %]" />
15
[% END %]
13
<link rel="shortcut icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
16
<link rel="shortcut icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
14
<link rel="apple-touch-icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
17
<link rel="apple-touch-icon" href="[% IF ( Koha.Preference('OpacFavicon') ) %][% Koha.Preference('OpacFavicon') | url %][% ELSE %][% interface | url %]/[% theme | url %]/images/favicon.ico[% END %]" type="image/x-icon" />
15
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
18
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
16
- 

Return to bug 33317