From: Terran McCanna Date: Tue, 20 Dec 2022 23:51:34 +0000 (-0500) Subject: PINES merge fix for record details page X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=0736ff040f9af5c7ad7d9992e87dc6754956e88c;p=evergreen%2Fpines.git PINES merge fix for record details page Signed-off-by: Terran McCanna --- 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 4f5b6e1354..ef45c26263 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 %]
  • @@ -268,21 +268,19 @@ ctx.metalinks.push(' $('#btnMore').html(" [%l ('Fewer Details') %]"); }) }); - + -
    - - [%- - # Hold/copy summary - IF ctx.copy_summary.0.count; - INCLUDE "opac/parts/record/copy_counts.tt2"; - %] - - - [%- END %] +
    + [%- + # Hold/copy summary + IF ctx.copy_summary.0.count; + INCLUDE "opac/parts/record/copy_counts.tt2"; + %] + [%- END %] +
    -
    -
    + +
    [%- # 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; %] -
    - -
    - -
- - -
- - [%- - # 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 @@ -416,13 +367,6 @@ ctx.metalinks.push(' class="no-dec"> [% l('Place Hold') %] [% END %] - - [% IF ctx.is_staff %] - - [% l('Place Hold (Staff Function)') %] - [% END %] - [%- END -%] [%- IF ebook_api.enabled == 'true' && args.ebook %]