From b1ca0409b6f1931d62321b0a581321e0c10a7193 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 --- .../opac-tmpl/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 dec3db9b489..dfba2053065 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.11.0