Bug 22807: (follow-up) Add .maincontent class to libraries page

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>
This commit is contained in:
Owen Leonard 2020-06-10 18:42:06 +00:00 committed by Jonathan Druart
parent c5b173f7de
commit 78cfac8dd5

View file

@ -129,23 +129,24 @@
</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 -->