From 83b3ea12b2992b8db4b468020e905d07ff5ff015 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 18 Mar 2021 13:49:32 -0400 Subject: [PATCH] LP1920042 Bootstrap Opac: Simple Selector in Advanced Search Fixes the simple selector in advanced search. To Test: 1. Go to Administration - Server Administration - MARC Coded Value Maps 2. Assign the 'Is Simple Selector' option to some record attributes. In concerto: Lang - French, German Type - Musical Sound Recording Are good choices to test searching. 3. Notice in advanced search that these options no longer appear in the Language or Item Type search filters. 4. Apply the patch. 5. The simple selector options should now appear at the top of each search filter category. 6. Perform some searches using the simple selector options. Signed-off-by: Garry Collum Signed-off-by: Elaine Hardy Signed-off-by: Galen Charlton --- .../opac/parts/check_value_selector.tt2 | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/check_value_selector.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/check_value_selector.tt2 index e10ce979ce..06512bae93 100644 --- a/Open-ILS/src/templates-bootstrap/opac/parts/check_value_selector.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/check_value_selector.tt2 @@ -33,9 +33,26 @@ FOR o IN all_values; END; END;%] +[%IF simple_sorter.size %] +
    +[% FOR o IN simple_sorter.sort('value') %] +
  • +
    + +
    +
  • +[% END -%] +
+[% END; %] + [%IF simple_sorter.size && sorter.size %]

-----

[% END; %] + +[%IF sorter.size %]
    [% FOR o IN sorter.sort('value') %]
  • @@ -48,6 +65,6 @@ END;%]
  • [% END -%]
+[% END; %] - - \ No newline at end of file + -- 2.11.0