From 937002156315dccd6a87a3340e3da53ee5707bd3 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Wed, 10 Aug 2022 17:05:14 +0000 Subject: [PATCH] LP#1983729: Bootstrap Opac: fix copy navigation links in small screens This moves the previous, next, and Show more copies links out of the copies table so that these values do not have incorrect labels on small screens. To test: 1. Retrieve a bib record with a large number of copies. 2. In a small screen notice that the previous, next, and show more copies links are labeled, as Library and Call Number. 3. Apply the patch. 4. Repeat step 2. Signed-off-by: Garry Collum Signed-off-by: John Amundson Signed-off-by: Galen Charlton --- .../opac/parts/record/copy_table.tt2 | 26 +++++++++------------- 1 file changed, 10 insertions(+), 16 deletions(-) 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 9d9251346e..479d0b9f4c 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 @@ -345,45 +345,39 @@ END; # FOREACH bib [%- END; # FOR copy_info %] + + + + [% IF ctx.copy_limit < total_copies AND NOT serial_holdings %] - +
[%- IF ctx.copy_offset > 0; new_offset = ctx.copy_offset - ctx.copy_limit; IF new_offset < 0; new_offset = 0; END %] - + [%- END %] [%- IF copies.size >= ctx.copy_limit AND (ctx.copy_offset + ctx.copy_limit < total_copies) %] - + [%- END %] - +
[% END %] [% IF NOT serial_holdings -%] [%- more_copies_limit = 50 %] [%# TODO: config %] [%- IF ctx.copy_limit != more_copies_limit AND copies.size >= ctx.copy_limit AND ctx.copy_limit < total_copies %] - - - - [%- ELSIF ctx.copy_limit == more_copies_limit %] - - - - [%- END %] [%- END %] - - [% END %] -- 2.11.0