From ab4bdc7719331ac5d5bb19985acc71102c229571 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Thu, 6 Jan 2022 12:23:48 -0500 Subject: [PATCH] Local conflict resolution for LP1903767 Signed-off-by: Terran McCanna --- .../src/templates-bootstrap/opac/css/style.css.tt2 | 28 ++++++++++++- .../opac/parts/record/copy_counts.tt2 | 4 +- .../opac/parts/record/series.tt2 | 3 +- .../opac/parts/record/summary.tt2 | 46 ++++++++++++++++++---- 4 files changed, 68 insertions(+), 13 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 597b26de15..c964999fc8 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; @@ -954,6 +959,7 @@ span#rdetail_hold_counts p { padding-left: 2em; [%- END %] } +*/ #rdetail_image_div { [% IF rtl == 't' -%] @@ -2407,12 +2413,30 @@ 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; +} + +ul.no-bullets { + list-style-type: none; + [% IF rtl == 't' -%] + margin-right: 0; + padding-right: 1.5em; + [% ELSE -%] + margin-left: 0; + padding-left: 1.5em; + [% END -%] +} + +.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 7fdf61bc3a..fdedfcb90e 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 b7d447d7ae..23015ce1be 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,8 @@ 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 14782c6269..7727c3d45c 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,11 @@ ctx.metalinks.push('
          +

          [% l("Record details") %]

          + + +
            [%- IF attrs.hl.isbn.size; FOR isbn IN attrs.hl.isbn %]
          • @@ -255,6 +259,30 @@ 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 +295,9 @@ ctx.metalinks.push(' IF args.mmr_unique_bib.size > 1; %] -

[% l("More Options") %]

+ +

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

+ [%- IF mmr_attrs.format_label; @@ -378,7 +408,7 @@ ctx.metalinks.push('
-
+
[%- search_ou = ctx.search_ou; IF ctx.place_unfillable || ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size @@ -386,12 +416,6 @@ ctx.metalinks.push(' ) %] - [% IF !ctx.is_staff %] - - [% l('Place Hold') %] - [% END %] [% IF ctx.is_staff %] [% l('Place Hold (Staff Function)') %] [% END %] + + + [% l('Place Hold') %] + + [%- END -%] [%- IF ebook_api.enabled == 'true' && args.ebook %] -- 2.11.0