Removing due date visibility from public OPAC view.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 3 Jul 2014 18:59:15 +0000 (14:59 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 3 Jul 2014 18:59:15 +0000 (14:59 -0400)
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index c29a017..c0fbbd2 100644 (file)
@@ -48,7 +48,9 @@ END;
             <th id='copy_header_holdable'>[% l("Holdable?") %]</th>
             [%- END %]
             <th id='copy_header_status'>[% l("Status") %]</th>
+            [%- IF ctx.is_staff %]
             <th id='copy_header_due_date'>[% l("Due Date") %]</th>
+            [%- END %]
         </tr>
     </thead>
     <tbody class="copy_details_table">
@@ -69,7 +71,9 @@ END;
     <td headers='copy_header_barcode'>[% bib.target_copy.barcode | html %]</td>
     <td headers='copy_header_shelfloc'>[% copy_info.copy_location | html %]</td>
     <td headers='copy_header_status'>[% copy_info.copy_status | html %]</td>
+    [%- IF ctx.is_staff %]
     <td headers='copy_header_due_date'>[% copy_info.due_date | html %]</td>
+    [%- END %]
 </tr>
    [%- END; # FOREACH peer
 END; # FOREACH bib
@@ -188,6 +192,7 @@ END; # FOREACH bib
                 schema_copy_status.${copy_info.status_code};
                 copy_info.copy_status | html;
             -%]</td>
+            [%- IF ctx.is_staff %]
             <td headers='copy_header_due_date'>[%
                 IF copy_info.due_date;
                     date.format(
@@ -197,6 +202,7 @@ END; # FOREACH bib
                 ELSE;
                     '-';
                 END %]</td>
+            [%- END %]
         </tr>
 
         [% IF copy_info.notes; %]