From da8bdb4c3b62a600ae1a8528eae538a1254e9e24 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 Removing unused parts. Test plan: See first test plan. Confirm that it still works. Signed-off-by: Marcel de Rooy Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../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.39.5