From 4cb3bcde66130b0bf5776121b540e0e36fad603a Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 22 Jul 2022 18:08:43 +0000 Subject: [PATCH] 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 --- .../src/templates-bootstrap/opac/css/style.css.tt2 | 17 ++++++- .../opac/parts/record/copy_counts.tt2 | 4 +- .../opac/parts/record/series.tt2 | 2 +- .../opac/parts/record/summary.tt2 | 59 +++++++++++----------- 4 files changed, 48 insertions(+), 34 deletions(-) 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 06c67ecac7..6947c4694e 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 2b0533fa4e..5b9aa3950d 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 -- 2.11.0