PINES OPAC Fix: Holdings Navigation
authorMcCanna <tmccanna@georgialibraries.org>
Mon, 4 Dec 2017 22:51:00 +0000 (17:51 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Tue, 14 Sep 2021 18:01:31 +0000 (14:01 -0400)
Add in OPAC code from Master to calculate the number of copies.

Signed-off-by: McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 537f2bb..8e684fa 100644 (file)
@@ -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 %]
-<form method="GET">
-[% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %]
-  <input type="hidden" name="[% p | html %]" value="[% CGI.params.$p | html %]"/>
-[% END %]
-<span with="50%">
-<th colspan="6">
-    [% l("Sort by distance from:") %]
-    <input type="text" id="geographic-location-box" name="geographic-location" aria-label="[% l('Enter address or postal code') %]" placeholder="[% l('Enter address/postal code') %]" class="search-box" x-webkit-speech="" value="[% p = 'geographic-location'; CGI.params.$p %]"></input>
-    <button type="submit" class="opac-button">[% l('Go') %]</button>
-</span>
-[% p = 'geographic-location'; IF CGI.params.$p && !ctx.has_valid_coords %]
-<span class="alert">[% l('Sorry, your address is not recognized') %]</span>
-[% END %]
-</form>
-[% p = 'geographic-location'; IF CGI.params.$p && ctx.has_valid_coords %]
-<form method="GET">
-[% FOREACH p IN CGI.params.keys; NEXT IF p == 'geographic-location' %]
-  <input type="hidden" name="[% p | html %]" value="[% CGI.params.$p | html %]"/>
-[% END %]
-   <button type="submit" class="opac-button">[% l('Use default item sort') %]</button>
-</form>
-[% END %]
-[% END %]
-
-<div>
-[% IF available == 'true'; %]
-    <a href="[% mkurl('', {available => 'false' }) %]">
-        [% l('Show All Copies') %]
-    </a>
-[% END; %]
-
-[% IF available == 'false'; %]
-    <a href="[% mkurl('', {available => 'true' }) %]">
-        [% l('Show Only Available Copies') %]
-    </a>
-[% END; %]
-
-<table class="table_no_border_space table_no_cell_pad table_no_border" width="100%" id="rdetails_status">
+<table  width="100%" cellpadding="5" style="border:1px #999 solid;">
     <thead>
         <tr>
             [% IF serial_holdings -%]