PINES merge fix for record details page
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 20 Dec 2022 23:51:34 +0000 (18:51 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 21 Dec 2022 21:08:01 +0000 (16:08 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2

index 4f5b6e1..ef45c26 100755 (executable)
@@ -74,7 +74,7 @@ ctx.metalinks.push('
                     <button id="btnMore" data-toggle="collapse" data-target="#demo"
                         class="btn btn-action btn-sm my-3"><i class="fas fa-info-circle" aria-hidden="true"></i> [% l('More Details') %]</button>
                     <div id="demo" class="collapse">
-                        <h2 id='rdetail_record_details' style="font-size:1.5em;">[% l("Record details") %]</h2>
+                        <h2 id='rdetail_record_details' style="font-size:1.5em;font-weight:bold;">[% l("Record details") %]</h2>
                         <ul class="list-unstyled">
                             [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
                             <li class='rdetail_isbns'>
@@ -268,21 +268,19 @@ ctx.metalinks.push('
                             $('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> [%l ('Fewer Details') %]");
                         })
                     });
-                    </script>
+                </script>
 
-               <div id="copy_hold_counts">
-
-                [%-
-                # Hold/copy summary
-                IF ctx.copy_summary.0.count;
-                INCLUDE "opac/parts/record/copy_counts.tt2";
-                %]
-
-
-                [%- END %]
+                <div id="copy_hold_counts">
+                    [%-
+                    # Hold/copy summary
+                    IF ctx.copy_summary.0.count;
+                    INCLUDE "opac/parts/record/copy_counts.tt2";
+                    %]
+                    [%- END %]
+                </div>
 
-                </div> <!-- metarecord_population -->
-                        <div>
+                <!-- metarecord_population -->
+                <div>
                             [%-
                             # l( 'mmr id = ' _ ctx.mmr_id );
                             # l( 'mmr data = ' _ ctx.mmr_data );
@@ -351,58 +349,11 @@ ctx.metalinks.push('
                             [%- END;
                             END # ending tag for IF args.mmr_unique_bib.size > 1; %]
                             [% args = save_args; %]
-                        </div>
-
-                    </div>
-
-                </div>
-                <script>jQuery('#demo').on('hidden.bs.collapse', function () {
-                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> More Details");
-                    })
-                    jQuery('#demo').on('shown.bs.collapse', function () {
-                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> Less Details");
-                    })
-                    </script>
-
-               <div id="copy_hold_counts">
-
-                [%-
-                # Hold/copy summary
-                IF ctx.copy_summary.0.count;
-                INCLUDE "opac/parts/record/copy_counts.tt2";
-                %]
-
-
-                [%- END %]
-
-                </div> <!-- metarecord_population -->
-
-                <!-- PINES: Moved Holds block here -->
-                <div>
-                    <h2 style="font-size:1.5em;">[% l('Holds') %]</h2>
-                    <ul>
-                        [%
-                            # 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;
-                            "<li>"; ctx.record_hold_count; " "; l("current holds");
-                        %]
-                    </ul>
                 </div>
-
-
             </div>
-            <!--rdetail_title_div-->
 
-            <div class="col-lg-4">
-             <div id="actions" class="mx-auto btn-group-vertical dropright mt-3">
+        <div class="col-lg-4">
+            <div id="actions" class="mx-auto btn-group-vertical dropright mt-3">
                 [%- search_ou = ctx.search_ou;
                 IF ctx.place_unfillable ||
                 ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size
@@ -416,13 +367,6 @@ ctx.metalinks.push('
                             class="no-dec">
                             <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Place Hold') %]</span></a>
                     [% END %]
-                    <!-- PINES WORKAROUND FOR TRADITIONAL CATALOG -->
-                    [% IF ctx.is_staff %]
-                        <a class="btn btn-action" role="button" href="/eg2/en-US/staff/catalog/hold/T?target=[%- ctx.bre_id -%]"
-                            class="no-dec" target="_blank">
-                            <span class="place_hold"><i class="fas fa-check" aria-hidden="true"></i> [% l('Place Hold (Staff Function)') %]</span></a>
-                    [% END %]
-                    <!-- END WORKAROUND -->
                 [%- END -%]
 
                 [%- IF ebook_api.enabled == 'true' && args.ebook %]