From: Terran McCanna Date: Tue, 23 Nov 2021 19:12:34 +0000 (-0500) Subject: PINES opac tweak for geosort buttons X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=b4bc1bda38dd7daffb2739a7b05060146056fd75;p=evergreen%2Fpines.git PINES opac tweak for geosort buttons Signed-off-by: Terran McCanna --- 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 6a5be0896b..fe5f5156fa 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 @@ -45,41 +45,53 @@ IF has_copies or ctx.foreign_copies; depth = CGI.param('copy_depth').defined ? CGI.param('copy_depth') : CGI.param('depth').defined ? CGI.param('depth') : ctx.copy_summary.last.depth; total_copies = ctx.copy_summary.$depth.count; %] +
[% IF ctx.geo_sort %] -
-[% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %] - -[% END %] - - [% l("Sort by distance from:") %] - - - -[% p = 'geographic-location'; IF CGI.params.$p && !ctx.has_valid_coords %] -[% l('Sorry, your address is not recognized') %] -[% END %] -
+
+
+ [% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %] + + [% END %] + + + [% l("Find the nearest copy:") %] + + + + [% p = 'geographic-location'; IF CGI.params.$p && !ctx.has_valid_coords %] + [% l('Sorry, your address is not recognized') %] + [% END %] +
+
[% p = 'geographic-location'; IF CGI.params.$p && ctx.has_valid_coords %]
[% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %] [% END %] +
+
[% END %] [% END %] -
-[% IF available == 'true'; %] - - [% l('Show All Copies') %] - -[% END %] -[% IF available == 'false'; %] - - [% l('Show Only Available Copies') %] - -[% END %] +
+ [% IF available == 'true'; %] + + [% l('Show All Copies') %] + + [% END %] + [% IF available == 'false'; %] + + [% l('Show Only Available Copies') %] + + [% END %] +
+
+