From: Garry Collum Date: Thu, 18 Mar 2021 17:49:32 +0000 (-0400) Subject: LP1920042 Bootstrap Opac: Simple Selector in Advanced Search X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=83b3ea12b2992b8db4b468020e905d07ff5ff015;p=Evergreen.git 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 --- 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 +