Removing due date visibility from public OPAC view.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 6 Nov 2014 17:57:32 +0000 (12:57 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Thu, 6 Nov 2014 17:57:32 +0000 (12:57 -0500)
Conflicts:

Open-ILS/src/templates/opac/parts/record/copy_table.tt2

Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index a97823c..8874033 100644 (file)
@@ -48,7 +48,9 @@ END;
             <th scope='col'>[% l("Holdable?") %]</th>
             [%- END %]
             <th scope='col'>[% l("Status") %]</th>
+            [%- IF ctx.is_staff %]
             <th scope='col'>[% l("Due Date") %]</th>
+            [%- END %]
         </tr>
     </thead>
     <tbody class="copy_details_table">
@@ -69,7 +71,9 @@ END;
     <td>[% bib.target_copy.barcode | html %]</td>
     <td>[% copy_info.copy_location | html %]</td>
     <td>[% copy_info.copy_status | html %]</td>
+    [%- IF ctx.is_staff %]
     <td>[% copy_info.due_date | html %]</td>
+    [%- END %]
 </tr>
    [%- END; # FOREACH peer
 END; # FOREACH bib
@@ -213,6 +217,7 @@ END; # FOREACH bib
                 schema_copy_status.${copy_info.status_code};
                 copy_info.copy_status | html;
             -%]</td>
+            [%- IF ctx.is_staff %]
             <td>[%
                 IF copy_info.due_date;
                     date.format(
@@ -222,6 +227,7 @@ END; # FOREACH bib
                 ELSE;
                     '-';
                 END %]</td>
+            [%- END %]
         </tr>
 
         [% IF copy_info.notes; %]