From d7f5236999d05fe0e7912b9ea82d97ad0c13ed29 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 13 Oct 2022 14:12:07 +0000 Subject: [PATCH] Bug 31775: Template cleanup Content-Type: text/plain; charset=utf-8 Removing unused parts. Test plan: See first test plan. Confirm that it still works. Signed-off-by: Marcel de Rooy --- .../bootstrap/en/modules/opac-library.tt | 90 +++++++------------ 1 file changed, 31 insertions(+), 59 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 480f09948f..4a5fef45c7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-library.tt @@ -90,70 +90,42 @@
[% END %] - [% IF ( library ) %] - -
-

[% library.branchname | html %]

- -
-
- [% PROCESS library_info %] - [% IF ( OpacLibraryInfo ) %] -
-
- [% PROCESS library_description %] -
- [% END %] -
-
- [% IF ( libraries.count > 1 ) %] - - [% END # /IF libraries.count > 1 %] -
-
-
- - [% ELSE %] -
-

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

- - [% FOREACH library IN libraries %] -
-

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

- [% PROCESS library_info %] -
- [% IF ( libraries.count == 1 ) %] + [% IF ( library ) %] +
+

[% library.branchname | html %]

+
+
+ [% PROCESS library_info %] + [% IF ( OpacLibraryInfo ) %]
+
[% PROCESS library_description %]
[% END %] +
+
+
+ + [% ELSE %] +
+

Libraries

+ [% FOREACH library IN libraries %] + [% IF ( branchcode == library.branchcode ) %] +
+ [% ELSE %] +
[% END %] -
- [% END # /IF library %] +

+ + [% library.branchname | html %] + +

+ [% PROCESS library_info %] +
+ [% END %] +
+ [% END # /IF library %] +
-- 2.30.2