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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html-customization-help.inc (+2 lines)
Lines 18-23 Link Here
18
18
19
<div id="StaffReportsHome_notes" class="hint customization_note"> Include this content in its own section on the reports home page</div>
19
<div id="StaffReportsHome_notes" class="hint customization_note"> Include this content in its own section on the reports home page</div>
20
20
21
<div id="OpacAccessibility" class="hint customization_note"> Show this content in the Accessibility page in the OPAC. </div>
22
21
<div id="opaccredits_notes" class="hint customization_note"> Include this content in the footer of all pages in the OPAC. </div>
23
<div id="opaccredits_notes" class="hint customization_note"> Include this content in the footer of all pages in the OPAC. </div>
22
24
23
<div id="OpacCustomSearch_notes" class="hint customization_note"> Replace the search box at the top of OPAC pages with this content. </div>
25
<div id="OpacCustomSearch_notes" class="hint customization_note"> Replace the search box at the top of OPAC pages with this content. </div>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/additional-contents.tt (-1 / +1 lines)
Lines 532-538 Link Here
532
            [% END %]
532
            [% END %]
533
        [% END %]
533
        [% END %]
534
    [% ELSE %]
534
    [% ELSE %]
535
        [% SET opac_available_options = [ 'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'OpacMaintenanceNotice', 'OPACResultsSidebar', 'OpacSuppressionMessage', 'SCOMainUserBlock', 'SelfCheckInMainUserBlock', 'SelfCheckHelpMessage', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'PatronSelfRegistrationAdditionalInstructions', 'ILLModuleCopyrightClearance' ] %]
535
        [% SET opac_available_options = ['OpacAccessibility' ,'OpacNavRight', 'opacheader', 'OpacCustomSearch', 'OpacMainUserBlock', 'opaccredits', 'OpacLoginInstructions', 'OpacNav', 'OpacNavBottom', 'OpacSuggestionInstructions', 'ArticleRequestsDisclaimerText', 'OpacMoreSearches', 'OpacMySummaryNote', 'OpacLibraryInfo', 'OpacMaintenanceNotice', 'OPACResultsSidebar', 'OpacSuppressionMessage', 'SCOMainUserBlock', 'SelfCheckInMainUserBlock', 'SelfCheckHelpMessage', 'CatalogConcernHelp', 'CatalogConcernTemplate', 'CookieConsentBar', 'CookieConsentPopup', 'PatronSelfRegistrationAdditionalInstructions', 'ILLModuleCopyrightClearance' ] %]
536
        <optgroup label="OPAC">
536
        <optgroup label="OPAC">
537
            [% FOREACH l IN opac_available_options.sort %]
537
            [% FOREACH l IN opac_available_options.sort %]
538
                [% IF l == location %]
538
                [% IF l == location %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/_responsive.scss (+1 lines)
Lines 552-557 Link Here
552
    .cookieConsentFooter_text,
552
    .cookieConsentFooter_text,
553
    footer .langlabel,
553
    footer .langlabel,
554
    .report_a_problem_text,
554
    .report_a_problem_text,
555
    .accessibility_page_text,
555
    .koha_url_text {
556
    .koha_url_text {
556
        display: inline;
557
        display: inline;
557
    }
558
    }
(-)a/koha-tmpl/opac-tmpl/bootstrap/css/src/opac.scss (+1 lines)
Lines 2938-2943 $star-selected: #EDB867; Link Here
2938
.cookieconsentlabel,
2938
.cookieconsentlabel,
2939
.cookieConsentFooter_text,
2939
.cookieConsentFooter_text,
2940
.report_a_problem_text,
2940
.report_a_problem_text,
2941
.accessibility_page_text,
2941
.koha_url_text,
2942
.koha_url_text,
2942
.search_history_label {
2943
.search_history_label {
2943
    display: none;
2944
    display: none;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (+9 lines)
Lines 4-9 Link Here
4
[% USE AdditionalContents %]
4
[% USE AdditionalContents %]
5
[%- USE KohaPlugins -%]
5
[%- USE KohaPlugins -%]
6
[% USE Asset %]
6
[% USE Asset %]
7
[% SET OpacAccessibility = AdditionalContents.get( location => "OpacAccessibility", lang => lang, library => logged_in_user.branchcode || default_branch  ) %]
7
[% SET opaccredits = AdditionalContents.get( location => "opaccredits", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
8
[% SET opaccredits = AdditionalContents.get( location => "opaccredits", lang => lang, library => logged_in_user.branchcode || default_branch ) %]
8
[% PROCESS 'html_helpers.inc' %]
9
[% PROCESS 'html_helpers.inc' %]
9
[% IF Koha.Preference( 'CookieConsent' ) %]
10
[% IF Koha.Preference( 'CookieConsent' ) %]
Lines 46-52 Link Here
46
                                <span class="cookieConsentFooter_text">Cookies</span>
47
                                <span class="cookieConsentFooter_text">Cookies</span>
47
                            </a>
48
                            </a>
48
                        [% END %]
49
                        [% END %]
50
51
                        [% IF ( OpacAccessibility ) %]
52
                            <a id="accessibility_page" class="nav-link" href="/cgi-bin/koha/opac-accessibility.pl">
53
                                <i class="fa fa-universal-access fa-fw fa-icon-footer" aria-hidden="true"></i>
54
                                <span class="accessibility_page_text"> [% IF OpacAccessibility.content.single.title %][% OpacAccessibility.content.single.title | html %][% ELSE %]Accessibility[% END %]</span>
55
                            </a>
56
                        [% END %]
49
                    </div>
57
                    </div>
58
50
                    [% IF OpacKohaUrl %]
59
                    [% IF OpacKohaUrl %]
51
                        <div class="navbar-nav">
60
                        <div class="navbar-nav">
52
                            <a id="koha_url" class="nav-link koha_url" href="https://koha-community.org">
61
                            <a id="koha_url" class="nav-link koha_url" href="https://koha-community.org">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-accessibility.tt (+59 lines)
Line 0 Link Here
1
[% USE raw %]
2
[% USE AdditionalContents %]
3
[% SET OpacAccessibility = AdditionalContents.get( location => "OpacAccessibility", lang => lang, library => logged_in_user.branchcode || default_branch  , blocktitle => 0) %]
4
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
5
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% INCLUDE 'doc-head-open.inc' %]
7
8
<title>
9
    [% IF OpacAccessibility.content.single.title %]
10
        [% OpacAccessibility.content.single.title | html %]
11
    [% ELSE %]
12
        Accessibility
13
    [% END %]
14
</title>
15
[% INCLUDE 'doc-head-close.inc' %]
16
[% BLOCK cssinclude %]
17
[% END %]
18
</head>
19
[% INCLUDE 'bodytag.inc' bodyid='opac-accessibility' %]
20
[% INCLUDE 'masthead.inc' %]
21
22
<main class="main">
23
    [% WRAPPER breadcrumbs %]
24
        [% WRAPPER breadcrumb_item bc_active= 1 %]
25
            <span>
26
                [% IF OpacAccessibility.content.single.title %]
27
                    [% OpacAccessibility.content.single.title | html %]
28
                [% ELSE %]
29
                    Accessibility
30
                [% END %]
31
            </span>
32
        [% END %]
33
    [% END #/ WRAPPER breadcrumbs %]
34
35
    <div class="container-fluid">
36
        <div class="row">
37
            [% SET div_class = 'col-10 order-first order-md-first order-lg-2' %]
38
            [% IF ( OpacNav || OpacNavBottom ) %]
39
                <div class="col-lg-2">
40
                    <div id="navigation"> [% INCLUDE 'navigation.inc' %] </div>
41
                </div>
42
            [% ELSE %]
43
                [% SET div_class = 'col order-first order-md-first order-lg-2' %]
44
            [% END %]
45
            <div class="[% div_class | html %]">
46
                [% IF ( OpacAccessibility ) %]
47
                    [% PROCESS koha_news_block news => OpacAccessibility %]
48
                [% END %]
49
            </div>
50
            <!-- /.row -->
51
        </div>
52
        <!-- /.container-fluid -->
53
    </div>
54
    <!-- /.main -->
55
</main>
56
57
[% INCLUDE 'opac-bottom.inc' %]
58
[% BLOCK jsinclude %]
59
[% END %]
(-)a/opac/opac-accessibility.pl (-1 / +38 lines)
Line 0 Link Here
0
- 
1
#!/usr/bin/perl
2
3
# This file is part of Koha.
4
#
5
# Parts Copyright (C) 2013  Mark Tompsett
6
#
7
# Koha is free software; you can redistribute it and/or modify it
8
# under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 3 of the License, or
10
# (at your option) any later version.
11
#
12
# Koha is distributed in the hope that it will be useful, but
13
# WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with Koha; if not, see <http://www.gnu.org/licenses>.
19
20
use Modern::Perl;
21
22
use CGI        qw ( -utf8 );
23
use C4::Auth   qw( get_template_and_user );
24
use C4::Output qw( output_html_with_http_headers );
25
26
my $input = CGI->new;
27
28
my ( $template, $cookie ) = get_template_and_user(
29
    {
30
        template_name   => "opac-accessibility.tt",
31
        type            => "opac",
32
        query           => $input,
33
        authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
34
    }
35
);
36
37
output_html_with_http_headers $input, $cookie, $template->output;
38

Return to bug 34556