From: Owen Leonard Date: Wed, 10 Jun 2020 18:42:06 +0000 (+0000) Subject: Bug 22807: (follow-up) Add .maincontent class to libraries page X-Git-Url: http://git.equinoxoli.org/?p=koha.git;a=commitdiff_plain;h=78cfac8dd5d089960e7d34068415b8c7f0bd7775 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 --- 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 dec3db9..dfba205 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 %]