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 510-515 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
510
('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice'),
510
('OPACMandatoryHoldDates', '', '|start|end|both', 'Define which hold dates are required on OPAC reserve form', 'Choice'),
511
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
511
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
512
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
512
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
513
('OpacMetaRobots','','','Improve search engine crawling.','Textarea'),
513
('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'),
514
('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'),
514
('OpacNewsLibrarySelect','0','','Show selector for branches on OPAC news page','YesNo'),
515
('OpacNewsLibrarySelect','0','','Show selector for branches on OPAC news page','YesNo'),
515
('OpacNoItemTypeImages','0',NULL,'If ON, disables itemtype images in the OPAC','YesNo'),
516
('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 11-16 Link Here
11
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
11
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
12
    <meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
12
    <meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
13
[% END %]
13
[% END %]
14
[% IF ( Koha.Preference('OpacMetaRobots') ) %]
15
    <meta name="robots" content="[% Koha.Preference('OpacMetaRobots') | html %]" />
16
[% END %]
14
<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" />
17
<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" />
15
<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" />
18
<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" />
16
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
19
[% IF ( Koha.Preference('opaclayoutstylesheet') && Koha.Preference('opaclayoutstylesheet') != "opac.css" ) %]
17
- 

Return to bug 33317