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 (+8 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" >[% IF OpacAccessibility.content.single.title %] [% OpacAccessibility.content.single.title | html %] [% ELSE %] Accessibility [% END %]</a>
55
                    </div>
56
                    [% END %] 
57
50
                    [% IF OpacKohaUrl %]
58
                    [% IF OpacKohaUrl %]
51
                        <div class="navbar-nav">
59
                        <div class="navbar-nav">
52
                            <a id="koha_url" class="nav-link koha_url" href="http://koha-community.org">
60
                            <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 (+58 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 %] Accessibility [% END %] 
13
</title>
14
[% INCLUDE 'doc-head-close.inc' %]
15
[% BLOCK cssinclude %]
16
[% END %]
17
</head>
18
[% INCLUDE 'bodytag.inc' bodyid='opac-accessibility' %]
19
[% INCLUDE 'masthead.inc' %]
20
21
 <main class="main">
22
    [% WRAPPER breadcrumbs %]
23
         [% WRAPPER breadcrumb_item bc_active= 1 %]
24
             <span>
25
                [% IF OpacAccessibility.content.single.title %] 
26
                    [% OpacAccessibility.content.single.title | html %] 
27
                [% ELSE %] Accessibility [% END %]
28
            </span>
29
         [% END %]
30
     [% END #/ WRAPPER breadcrumbs %]
31
32
     <div class="container-fluid">
33
        <div class="row">
34
            [% SET div_class = 'col-10 order-first order-md-first order-lg-2' %]
35
            [% IF ( OpacNav || OpacNavBottom ) %]
36
            <div class="col-lg-2">
37
                    <div id="navigation"> [% INCLUDE 'navigation.inc' %] </div>
38
            </div> 
39
                 [% ELSE %]
40
                     [% SET div_class = 'col order-first order-md-first order-lg-2' %]
41
                 [% END %]
42
                <div class="[% div_class | html %]">
43
                    [% IF ( OpacAccessibility ) %]
44
                    [% PROCESS koha_news_block news => OpacAccessibility %]
45
                    [% END %]
46
                </div>
47
            <!-- /.row -->
48
         </div>
49
     <!-- /.container-fluid -->
50
     </div>
51
<!-- /.main -->
52
</main>
53
54
[% INCLUDE 'opac-bottom.inc' %]
55
[% BLOCK jsinclude %]
56
[% END %]
57
58
(-)a/opac/opac-accessibility.pl (-1 / +47 lines)
Line 0 Link Here
0
- 
1
#!/usr/bin/perl
2
3
4
# This file is part of Koha.
5
#
6
# Parts Copyright (C) 2013  Mark Tompsett
7
#
8
# Koha is free software; you can redistribute it and/or modify it
9
# under the terms of the GNU General Public License as published by
10
# the Free Software Foundation; either version 3 of the License, or
11
# (at your option) any later version.
12
#
13
# Koha is distributed in the hope that it will be useful, but
14
# WITHOUT ANY WARRANTY; without even the implied warranty of
15
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
# GNU General Public License for more details.
17
#
18
# You should have received a copy of the GNU General Public License
19
# along with Koha; if not, see <http://www.gnu.org/licenses>.
20
21
22
use Modern::Perl;
23
24
use CGI        qw ( -utf8 );
25
use C4::Auth   qw( get_template_and_user );
26
use C4::Output qw( output_html_with_http_headers );
27
28
29
my $input = CGI->new;
30
31
# unless ( C4::Context->preference("EnableOpacSearchHistory") ) {
32
#     print $cgi->redirect("/cgi-bin/koha/errors/404.pl");    # escape early
33
#     exit;
34
# }
35
36
my ( $template, $cookie ) = get_template_and_user(
37
   {
38
       template_name   => "opac-accessibility.tt",
39
       type            => "opac",
40
       query           => $input,
41
       authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ),
42
   }
43
);
44
45
output_html_with_http_headers $input, $cookie, $template->output;
46
47

Return to bug 34556