LP1933125 Bootstrap OPAC Hold Count Alignment
authorTerran McCanna <tmccanna@georgialibraries.org>
Mon, 21 Jun 2021 16:11:48 +0000 (12:11 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Thu, 12 Aug 2021 20:44:45 +0000 (16:44 -0400)
This groups and styles the hold count with the available
copy count.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Ruth Frasur <rfrasur@library.in.gov>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/templates-bootstrap/opac/parts/record/copy_counts.tt2
Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2

index ab2aa74..407662d 100755 (executable)
     [%- END %]
     [%- END %]
     </ul>
+
+    <h2>[% l('Holds') %]</h2>
+    <ul><li>
+    [%
+        # If org hiding is enabled/relevant, only show
+        # counts for copies within the hiding scope.
+        count_entry = 0;
+        FOR count_chunk IN ctx.copy_summary;
+        IF ctx.org_within_hiding_scope(count_chunk.org_unit);
+        # always true when hiding is disabled
+        LAST;
+        END;
+        count_entry = count_entry + 1;
+        END;
+        l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
+        ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
+    %]
+    </li></ul>
 </div>
index 23f521d..a0007ed 100755 (executable)
@@ -469,28 +469,6 @@ ctx.metalinks.push('
 <div class="row">
 <div class="col-12">
 
-<div class="float-right">
-
-                            <h2 class="text-right">[% l('Holds') %]</h2>
-                            <p class="text-right">
-                                [%
-                                # If org hiding is enabled/relevant, only show
-                                # counts for copies within the hiding scope.
-                                count_entry = 0;
-                                FOR count_chunk IN ctx.copy_summary;
-                                IF ctx.org_within_hiding_scope(count_chunk.org_unit);
-                                # always true when hiding is disabled
-                                LAST;
-                                END;
-                                count_entry = count_entry + 1;
-                                END;
-                                l("[quant,_1,current hold,current holds] with [quant,_2,total copy,total copies].",
-                                ctx.record_hold_count, ctx.copy_summary.$count_entry.count)
-                                %]
-                            </p>
-
-                    </div>
-
         [%-
         IF ctx.copy_summary.0.count;
         INCLUDE "opac/parts/record/copy_table.tt2" copies=ctx.copies;