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

(-)a/installer/data/mysql/atomicupdate/bug_26454-add_OpacMetaDescription_syspref.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, options, explanation, type) VALUES ('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea');" );
4
5
    # Always end with this (adjust the bug info)
6
    NewVersion( $DBversion, 26454, "Add system preference to set meta description for the OPAC");
7
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 414-419 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
414
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
414
('OpacMaintenance','0','','If ON, enables maintenance warning in OPAC','YesNo'),
415
('OpacMaintenanceNotice','','','A user-defined block of HTML to appear on screen when OpacMaintenace is enabled','Textarea'),
415
('OpacMaintenanceNotice','','','A user-defined block of HTML to appear on screen when OpacMaintenace is enabled','Textarea'),
416
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
416
('OpacMaxItemsToDisplay','50','','Max items to display at the OPAC on a biblio detail','Integer'),
417
('OpacMetaDescription','','','This description will show in search engine results (160 characters).','Textarea'),
417
('OpacMoreSearches', '', NULL, 'Add additional elements to the OPAC more searches bar', 'Textarea'),
418
('OpacMoreSearches', '', NULL, 'Add additional elements to the OPAC more searches bar', 'Textarea'),
418
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my reading 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'),
419
('OPACMySummaryHTML','','70|10','Enter the HTML that will appear in a column on the \'my summary\' and \'my reading 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'),
419
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
420
('OPACMySummaryNote','','','Note to display on the patron summary page. This note only appears if the patron is connected.','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+6 lines)
Lines 73-78 OPAC: Link Here
73
              type: textarea
73
              type: textarea
74
              syntax: text/html
74
              syntax: text/html
75
              class: code
75
              class: code
76
        -
77
            - "This description will show in search engine results (160 characters)."
78
            - pref: OpacMetaDescription
79
              type: textarea
80
              syntax: text/html
81
              class: code
76
        -
82
        -
77
            - By default, show bibliographic records
83
            - By default, show bibliographic records
78
            - pref: BiblioDefaultView
84
            - pref: BiblioDefaultView
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-1 / +3 lines)
Lines 5-10 Link Here
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
6
<meta name="generator" content="Koha [% Version | html %]" /> <!-- leave this for stats -->
7
<meta name="viewport" content="width=device-width, initial-scale=1" />
7
<meta name="viewport" content="width=device-width, initial-scale=1" />
8
[% IF ( Koha.Preference('OpacMetaDescription') ) %]
9
    <meta name="description" content="[% Koha.Preference('OpacMetaDescription') | html %]" />
10
[% END %]
8
<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" />
11
<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" />
9
[% IF ( bidi ) %]
12
[% IF ( bidi ) %]
10
    [% Asset.css("lib/jquery/jquery-ui-rtl-1.12.1.min.css") | $raw %]
13
    [% Asset.css("lib/jquery/jquery-ui-rtl-1.12.1.min.css") | $raw %]
11
- 

Return to bug 26454