lp1863252 fix unrelated issue that was breaking display of the copy_table
authorGalen Charlton <gmc@equinoxinitiative.org>
Wed, 16 Dec 2020 16:10:20 +0000 (11:10 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 11 Mar 2021 21:00:52 +0000 (16:00 -0500)
Without this, lack of a 'loc' CGI parameter breaks the page. This
was introduced in the course materials work and just appears to be wrong,
but should be double-checked.

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

index dc47ab7..358b836 100644 (file)
@@ -122,8 +122,7 @@ IF has_copies or ctx.foreign_copies;
     <td>[% bib.target_copy.location.name | html %]</td>
     <td>[% bib.target_copy.status.name | html %]</td>
     <td>[% date.format(ctx.parse_datetime(copy_info.due_date, copy_info.circ_circ_lib),DATE_FORMAT) %]</td>
-    [%- IF ctx.get_org_setting(CGI.param('loc'))
-        OR use_courses %]
+    [%- IF use_courses %]
     <td></td>
     [%- END %]
     [%- IF ctx.geo_sort && ctx.has_valid_coords %]