From 577b8f616649ab16f6d98ce13d5816c52db26dbe Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Fri, 5 Aug 2022 13:27:33 +0000 Subject: [PATCH] LP1983020-Bootstrap opac: Electronic links pagination button. Fixes the placement of the previous and next buttons in the Bootstrap Opac when the record contains electronic links and physical items. To Test: 1. To fully test a record with physical items, a record with electronic links, and a record with both physical items and electronic links need to be viewed in the opac. 2. On each of these records notice the placement of the previous or next buttons. 3. Apply the patch. 4. View the 3 types of records after the patch is applied. Signed-off-by: Garry Collum Signed-off-by: Jeff Davis --- Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 | 1 + Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 index 479d0b9f4c..dc5ee8c21e 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 @@ -380,4 +380,5 @@ END; # FOREACH bib [%- END %] [%- END %] + [% 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 ca6923bdb1..679b2f96d2 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2 @@ -556,9 +556,10 @@ ctx.metalinks.push(' [%- IF attrs.gtin13; ' '; END; %] [%- IF num_uris == 1 %]

[% ELSE %][% END %] - [%- END; END; %] + [%- END; %] [%- IF num_uris > 1 %][% END %] + [%- END; %] [% IF ebook_api.enabled == 'true'; INCLUDE "opac/parts/ebook_api/avail.tt2"; -- 2.11.0