From b46e0e6771e6a4be965efba3eb9dfb86668c76ca Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 10 Jun 2020 18:42:06 +0000 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 78cfac8dd5d089960e7d34068415b8c7f0bd7775) Signed-off-by: Lucas Gass --- .../bootstrap/en/modules/opac-library.tt | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt index dec3db9b48..dfba205306 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt @@ -129,23 +129,24 @@ [% ELSE %] -

[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]

+
+

[% IF ( singleBranchMode ) %]Library[% ELSE %]Libraries[% END %]

- [% FOREACH library IN libraries %] -

- [% IF ( libraries.count > 1 ) %] - [% library.branchname | html %] - [% ELSE %] - [% library.branchname | html %] + [% FOREACH library IN libraries %] +

+ [% IF ( libraries.count > 1 ) %] + [% library.branchname | html %] + [% ELSE %] + [% library.branchname | html %] + [% END %] +

+ [% PROCESS library_info %] +
+ [% IF ( libraries.count == 1 ) %] + [% PROCESS library_description %] [% END %] - - [% PROCESS library_info %] -
- [% IF ( libraries.count == 1 ) %] - [% PROCESS library_description %] [% END %] - [% END %] - +
[% END %] -- 2.39.5