Bug 22807: (follow-up) Add .maincontent class to libraries page
authorOwen Leonard <oleonard@myacpl.org>
Wed, 10 Jun 2020 18:42:06 +0000 (18:42 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 24 Jun 2020 13:13:55 +0000 (15:13 +0200)
This patch adds a missing "maincontent" class to the "all libraries"
view. Previously it was only present on the single library view.

To test, apply the patch and go to the "Libraries" page in the OPAC.

 - Hit the "tab" key to highlight the "Skip to main content" link.
 - Hit "Enter."
 - The page should scroll to the top of the list of libraries.
 - Open one of the library detail pages and confirm that the "Skip to
   main content" link works on that page too.

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt

index dec3db9..dfba205 100644 (file)
                     </div> <!-- /#library_info -->
 
                 [% ELSE %]
-                    <h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2>
+                    <div id="library_info" class="maincontent">
+                        <h2>[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]</h2>
 
-                    [% FOREACH library IN libraries %]
-                        <h3 property="name">
-                            [% IF ( libraries.count > 1 ) %]
-                                <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
-                            [% ELSE %]
-                                [% library.branchname | html %]
+                        [% FOREACH library IN libraries %]
+                            <h3 property="name">
+                                [% IF ( libraries.count > 1 ) %]
+                                    <a href="/cgi-bin/koha/opac-library.pl?branchcode=[% library.branchcode | url %]">[% library.branchname | html %]</a>
+                                [% ELSE %]
+                                    [% library.branchname | html %]
+                                [% END %]
+                            </h3>
+                            [% PROCESS library_info %]
+                            <hr>
+                            [% IF ( libraries.count == 1 ) %]
+                                [% PROCESS library_description %]
                             [% END %]
-                        </h3>
-                        [% PROCESS library_info %]
-                        <hr>
-                        [% IF ( libraries.count == 1 ) %]
-                            [% PROCESS library_description %]
                         [% END %]
-                    [% END %]
-
+                    </div>
                 [% END %]
 
         </div> <!-- /.row-fluid -->