From: Garry Collum Date: Fri, 22 Jul 2022 18:08:43 +0000 (+0000) Subject: LP1903767 - Bootstrap Opac: Make other formats and editions more visible. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ad9f02492d0477458e87c53003fb7da64e98a367;p=evergreen%2Fpines.git LP1903767 - Bootstrap Opac: Make other formats and editions more visible. This patch does the following: 1. Moves "Other Formats and Editions" below # of holds and available items. 2. Changes "Other Options" to "Other Formats and Editions" and makes the header tage and

tag consistent with other header tags. 3. Resizes

tags. 4. Removes bullets and changes the margins of some of the table/list displays under the

headers. 5. Fixes the alignment of the button group that contains Place Hold. For Testing: 1. Find a record that contains other formats and editions. In concerto record #71 contains other formats and editions. 2. Notice that you have to click the More Details button to view the Other Formats. 3. Apply the patch. 4. Other Formats and Editions now appear under the Available Copies and Holds heading. You no longer have to push the More Details button. Signed-off-by: Garry Collum Signed-off-by: Gina Monti Signed-off-by: Michele Morgan --- diff --git a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 index 128adb3cf5..b774292677 100755 --- a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 @@ -929,6 +929,11 @@ div#rdetail_actions_div { [%- END %] } +div#rdetail_copy_counts { + margin-top; 1em; +} + +/* span#rdetail_copy_counts { display: inline-block; vertical-align: top; @@ -942,6 +947,7 @@ span#rdetail_copy_counts { padding-right: 1em; [%- END %] } +*/ span#rdetail_hold_counts { display: inline-block; @@ -2407,12 +2413,19 @@ a.opac-button-header:hover, #dash_wrapper a.opac-button:hover { width: 100%; } -#rdetail_record_details { +.rdetail_record_details { clear: both; margin-top: 1em; } -.rdetail_content { +h2.rdetail_record_details, #rdetail_copy_counts h2, h2.rdetail_contents, +h2.rdetail_related_subjects, h2.rdetail_related_series, +h2.rdetail_other_formats, h2.rdetail_uris { + font-size: [% css_fonts.size_biggest %]; + font-weight: bold; +} + +.rdetail_content, .rdetail_subject { [% IF rtl == 't' -%] margin-right: 1.5em; padding-right: 1.5em; diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_counts.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_counts.tt2 index 407662d50b..24f57975a0 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_counts.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_counts.tt2 @@ -1,7 +1,7 @@

[% l('Available copies') %]

-
    +
      [%- depths = ctx.copy_summary.size; depth = 0; displayed_ous = {}; @@ -52,7 +52,7 @@

    [% l('Holds') %]

    -
    • +
      • [% # If org hiding is enabled/relevant, only show # counts for copies within the hiding scope. diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/series.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/series.tt2 index ea93d55e0b..cb484d4aef 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/series.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/series.tt2 @@ -59,7 +59,7 @@ END; [%- series_anchors = PROCESS render_series; IF series_anchors.length > 0; %] -
          +
            [% series_anchors %]
          [%- END %] diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 index e41c27035f..94ae7f5344 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 @@ -74,7 +74,7 @@ ctx.metalinks.push('
          -

          [% l("Record details") %]

          +

          [% l("Record details") %]

            [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
          • @@ -255,6 +255,33 @@ ctx.metalinks.push(' [%- INCLUDE "opac/parts/record/contents.tt2" %] [%- INCLUDE "opac/parts/record/subjects.tt2" %] [%- INCLUDE "opac/parts/record/series.tt2" %] + +
          + +
+ + +
+ + [%- + # Hold/copy summary + IF ctx.copy_summary.0.count; + INCLUDE "opac/parts/record/copy_counts.tt2"; + %] + + + [%- END %] + +
[%- # l( 'mmr id = ' _ ctx.mmr_id ); @@ -267,7 +294,7 @@ ctx.metalinks.push(' IF args.mmr_unique_bib.size > 1; %] -

[% l("More Options") %]

+

[% l("Other Formats and Editions") %]

[%- IF mmr_attrs.format_label; @@ -326,37 +353,11 @@ ctx.metalinks.push(' [% args = save_args; %]
- - - - - -
- - [%- - # Hold/copy summary - IF ctx.copy_summary.0.count; - INCLUDE "opac/parts/record/copy_counts.tt2"; - %] - - - [%- END %] - -
-
+
[%- search_ou = ctx.search_ou; IF ctx.place_unfillable || ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size