From b72f90c81372b082565b25d106099ada97251827 Mon Sep 17 00:00:00 2001 From: Jason Boyer Date: Fri, 30 Oct 2020 16:06:17 -0400 Subject: [PATCH] LP1901710: Properly nest HTML tags and TT2 directives This is a first pass at cleaning these up and the W3C's HTML validator is a lot happier about some of the pages, but the advanced search page at least needs some TLC. I'm having trouble getting the shelving location selector to appear at all and the aria complaints will require more fixing. Signed-off-by: Jason Boyer Signed-off-by: Garry Collum Signed-off-by: Galen Charlton --- .../src/templates-bootstrap/opac/css/style.css.tt2 | 4 +++- .../opac/parts/advanced/global_row.tt2 | 2 +- .../opac/parts/advanced/search.tt2 | 24 +++++++++++----------- .../opac/parts/record/extras.tt2 | 11 +++++----- .../opac/parts/record/summary.tt2 | 12 ++++++----- .../templates-bootstrap/opac/parts/searchbar.tt2 | 2 +- Open-ILS/src/templates-bootstrap/opac/results.tt2 | 1 - 7 files changed, 29 insertions(+), 27 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 index bc9cad1881..3bf6f2b72f 100755 --- a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 @@ -781,7 +781,7 @@ for now until a better color is picked - if needed. padding: 5px; } -#adv_special_block { +.adv_special_block { padding: 5px; margin-top: 5px; @@ -1836,6 +1836,8 @@ div.result_table_utils_cont { } #search-wrapper #search-submit-go, +#search-wrapper #search-submit-go-1, +#search-wrapper #search-submit-go-2, #search-wrapper #search-submit-go-depth { display: inline-block; margin-top: 1.3rem; diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/advanced/global_row.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/advanced/global_row.tt2 index dcc7d59a75..53297703a5 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/advanced/global_row.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/advanced/global_row.tt2 @@ -57,7 +57,7 @@ - diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/advanced/search.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/advanced/search.tt2 index 9e97dddca2..7308164a52 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/advanced/search.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/advanced/search.tt2 @@ -21,14 +21,14 @@ -
+
- - - [% l("Submit") %] + @@ -88,7 +88,7 @@ [% IF adv_chunk.adv_special == "lib_selector"; PROCESS "opac/parts/org_selector.tt2"; INCLUDE build_org_selector show_loc_groups=0 show_lassos=0 id=adv_chunk.id %] [% ELSIF adv_chunk.adv_special == "scope_selector"; PROCESS "opac/parts/org_selector.tt2"; INCLUDE build_scope_selector show_loc_groups=1 show_lassos=1 id=adv_chunk.id %] [% ELSIF adv_chunk.adv_special == "pub_year"; %] -
+

-
diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 index 2396e6fd56..23f521d313 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 @@ -375,7 +375,7 @@ ctx.metalinks.push(' @@ -555,7 +555,6 @@ ctx.metalinks.push(' ELSE; filtered_link; END; - END; -%] [%-# ' - ' _ filtered_note _ '' IF filtered_note %] @@ -563,7 +562,7 @@ ctx.metalinks.push(' [%- IF attrs.gtin13; ' '; END; %] [%- IF num_uris == 1 %]

[% ELSE %][% END %] - [%- END %] + [%- END; END; %] [%- IF num_uris > 1 %][% END %]
[% @@ -572,7 +571,10 @@ ctx.metalinks.push(' END; %]
+

-
- [%- INCLUDE "opac/parts/record/extras.tt2" %] +
+
+ [%- INCLUDE "opac/parts/record/extras.tt2" %] +
diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/searchbar.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/searchbar.tt2 index 70cfa35b37..67ac027aa6 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/searchbar.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/searchbar.tt2 @@ -118,8 +118,8 @@ END;
- [%- IF ctx.depth_sel_button AND NOT took_care_of_form %]
+ [%- IF ctx.depth_sel_button AND NOT took_care_of_form %] [%- END %] diff --git a/Open-ILS/src/templates-bootstrap/opac/results.tt2 b/Open-ILS/src/templates-bootstrap/opac/results.tt2 index 540c32a5b6..d8c4e74fdf 100755 --- a/Open-ILS/src/templates-bootstrap/opac/results.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/results.tt2 @@ -149,7 +149,6 @@
-
-- 2.11.0