From 4a9d4843472cef46185aa29dc6f539e0a8a884f0 Mon Sep 17 00:00:00 2001 From: McCanna Date: Mon, 4 Dec 2017 17:51:00 -0500 Subject: [PATCH] PINES OPAC Fix: Holdings Navigation Add in OPAC code from Master to calculate the number of copies. Signed-off-by: McCanna --- .../src/templates/opac/parts/record/copy_table.tt2 | 42 +--------------------- 1 file changed, 1 insertion(+), 41 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 537f2bb59b..8e684faf6f 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -45,47 +45,7 @@ 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; %] - -[% use_courses = (ctx.get_org_setting(ctx.aou_tree.id, 'circ.course_materials_opt_in') == 1) ? 1 : 0 %] -[% 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 %] -
-[% 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 serial_holdings -%] -- 2.11.0