From 3e288fd3f7f45ab5b2882c55e7a8c795ba34c498 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 | 90 +++++++++------------- 4 files changed, 68 insertions(+), 57 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 ab2fd2cab2..fa610d54f2 100755 --- a/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/css/style.css.tt2 @@ -925,6 +925,11 @@ div#rdetail_actions_div { [%- END %] } +div#rdetail_copy_counts { + margin-top: 1em; +} + +/* span#rdetail_copy_counts { display: inline-block; vertical-align: top; @@ -950,6 +955,7 @@ span#rdetail_hold_counts p { padding-left: 2em; [%- END %] } +*/ #rdetail_image_div { [% IF rtl == 't' -%] @@ -2403,12 +2409,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 0ba1f27078..030856113b 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; @@ -326,56 +356,12 @@ ctx.metalinks.push(' [% args = save_args; %]
- - - - - -
- - [%- - # Hold/copy summary - IF ctx.copy_summary.0.count; - INCLUDE "opac/parts/record/copy_counts.tt2"; - %] - - - [%- END %] - -
- - -
-

[% l('Holds') %]

-
    - [% - # 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; - "
  • "; ctx.record_hold_count; " "; l("current holds"); - %] -
-
-
-
+
[%- search_ou = ctx.search_ou; IF ctx.place_unfillable || ( attrs.marc_xml.findnodes('//*[local-name()="holdings" and @has_holdable="true"]').size @@ -383,12 +369,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