Active date in OPAC
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 16 Feb 2017 22:45:34 +0000 (17:45 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 16 Feb 2017 22:45:34 +0000 (17:45 -0500)
This change would display the copy active date in the OPAC. If we decide
to go forward with this customization, a local custom Spanish translation
string will also need to be added.

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

index 3a25df2..7d61877 100644 (file)
@@ -53,6 +53,9 @@ END;
                        [%- IF ctx.is_staff %]
             <th scope='col'>[% l("Due Date") %]</th>
                        [%- END -%]
+            [%- IF !ctx.is_staff -%]
+            <th scope='col' style="text-align:left;vertical-align:top;">[% l("Date Added to PINES") %]</th>
+            [%- END -%]
         </tr>
     </thead>
     <tbody class="copy_details_table">
@@ -226,7 +229,17 @@ END; # FOREACH bib
                     '-';
                 END %]</td>
             [%- END %]
-        </tr>
+            [%- IF !ctx.is_staff -%]
+            <td valign="top" style="background-color:#fff;">
+                [%-
+                date.format(
+                        ctx.parse_datetime(copy_info.active_date),
+                        DATE_FORMAT
+                    );
+                -%]
+            </td>
+            [%- END -%]
+            </tr>
 
         [% IF copy_info.notes; %]
             [% FOREACH note IN copy_info.notes; %]