LP1980304 Bootstrap: Facets move when viewing results for grouped records.
authorGarry Collum <gcollum@gmail.com>
Wed, 14 Sep 2022 15:01:00 +0000 (15:01 +0000)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 30 Jan 2023 14:42:19 +0000 (09:42 -0500)
Fixes the displacement of the facets in the bootstrap opac when viewing grouped records.

To test:
1. Perform a search in the bootstrap opac with the Group Formats and Editions option
selected.  In concerto - "Ready Player One"
2. Click on a resulting title that contains more than one format.
3. Notice the placement of the facets.
4. Apply the patch and repeat.
5. The facets should no longer be displaced when viewing metarecords or non-metarecords.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>

Open-ILS/src/templates-bootstrap/opac/results.tt2

index d8c4e74..79d9ac7 100755 (executable)
         [% IF ctx.metarecord;
           mr_attrs = {marc_xml => ctx.metarecord_master.marc_xml};
           PROCESS get_marc_attrs args=mr_attrs %]
-          <div class="results_header_lbl">
+          <div class="container">
+          <div class="row bg-light">
+          <div class="col-md-4">
             [% l('Viewing Results for Grouped Record: [_1]',
                 mr_attrs.title) | html %]
           </div>
           [% IF CGI.param('query') %]
-          <div>
+          <div class="col-md-4 ml-auto">
             <a href="[% mkurl(ctx.opac_root _ '/results', {}, ['metarecord','page']); %]">
               [% l('&#9668; Return to Grouped Search Results') %]
             </a>
           </div>
-          <br/>
           [% END %]
+          </div>
+          </div>
         [% END %]
         <div [%- IF ctx.metarecord %]class="hidden"[%- ELSE %]class="container-fluid"[%- END %]>