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 16-21 Link Here
16
16
17
<div id="IntranetmainUserblock_notes" class="hint customization_note"> Include this content in its own section on the main page of the staff interface </div>
17
<div id="IntranetmainUserblock_notes" class="hint customization_note"> Include this content in its own section on the main page of the staff interface </div>
18
18
19
<div id="OpacAccessibility" class="hint customization_note"> Show this content in the Accessibility page in the OPAC. </div>
20
19
<div id="opaccredits_notes" class="hint customization_note"> Include this content in the footer of all pages in the OPAC. </div>
21
<div id="opaccredits_notes" class="hint customization_note"> Include this content in the footer of all pages in the OPAC. </div>
20
22
21
<div id="OpacCustomSearch_notes" class="hint customization_note"> Replace the search box at the top of OPAC pages with this content. </div>
23
<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/en/includes/opac-bottom.inc (+10 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 47-52 Link Here
47
                            </a>
48
                            </a>
48
                        [% END %]
49
                        [% END %]
49
                    </div>
50
                    </div>
51
52
                    [% IF ( OpacAccessibility ) %]
53
                        <div class="navbar-nav flex-grow-1">
54
                            <a id="accessibility_page" class="nav-link" href="/cgi-bin/koha/opac-accessibility.pl">
55
                                [% IF OpacAccessibility.content.single.title %][% OpacAccessibility.content.single.title | html %][% ELSE %]Accessibility[% END %]
56
                            </a>
57
                        </div>
58
                    [% END %]
59
50
                    [% IF OpacKohaUrl %]
60
                    [% IF OpacKohaUrl %]
51
                        <div class="navbar-nav">
61
                        <div class="navbar-nav">
52
                            <a id="koha_url" class="nav-link koha_url" href="http://koha-community.org">
62
                            <a id="koha_url" class="nav-link koha_url" href="http://koha-community.org">
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-accessibility.tt (+60 lines)
Line 0 Link Here
1
[% USE raw %]
2
[% USE Koha %]
3
[% USE AdditionalContents %]
4
[% SET OpacAccessibility = AdditionalContents.get( location => "OpacAccessibility", lang => lang, library => logged_in_user.branchcode || default_branch  , blocktitle => 0) %]
5
[% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
6
[% SET OpacNavBottom = AdditionalContents.get( location => "OpacNavBottom", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %]
7
[% INCLUDE 'doc-head-open.inc' %]
8
9
<title>
10
    [% IF OpacAccessibility.content.single.title %]
11
        [% OpacAccessibility.content.single.title | html %]
12
    [% ELSE %]
13
        Accessibility
14
    [% END %]
15
</title>
16
[% INCLUDE 'doc-head-close.inc' %]
17
[% BLOCK cssinclude %]
18
[% END %]
19
</head>
20
[% INCLUDE 'bodytag.inc' bodyid='opac-accessibility' %]
21
[% INCLUDE 'masthead.inc' %]
22
23
<main class="main">
24
    [% WRAPPER breadcrumbs %]
25
        [% WRAPPER breadcrumb_item bc_active= 1 %]
26
            <span>
27
                [% IF OpacAccessibility.content.single.title %]
28
                    [% OpacAccessibility.content.single.title | html %]
29
                [% ELSE %]
30
                    Accessibility
31
                [% END %]
32
            </span>
33
        [% END %]
34
    [% END #/ WRAPPER breadcrumbs %]
35
36
    <div class="container-fluid">
37
        <div class="row">
38
            [% SET div_class = 'col-10 order-first order-md-first order-lg-2' %]
39
            [% IF ( OpacNav || OpacNavBottom ) %]
40
                <div class="col-lg-2">
41
                    <div id="navigation"> [% INCLUDE 'navigation.inc' %] </div>
42
                </div>
43
            [% ELSE %]
44
                [% SET div_class = 'col order-first order-md-first order-lg-2' %]
45
            [% END %]
46
            <div class="[% div_class | html %]">
47
                [% IF ( OpacAccessibility ) %]
48
                    [% PROCESS koha_news_block news => OpacAccessibility %]
49
                [% END %]
50
            </div>
51
            <!-- /.row -->
52
        </div>
53
        <!-- /.container-fluid -->
54
    </div>
55
    <!-- /.main -->
56
</main>
57
58
[% INCLUDE 'opac-bottom.inc' %]
59
[% BLOCK jsinclude %]
60
[% 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