LP1787415: Item Status checkout date and checkout workstation for renewed items
authorMichele Morgan <mmorgan@noblenet.org>
Thu, 8 Aug 2019 18:01:00 +0000 (14:01 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Fri, 21 Feb 2020 16:00:00 +0000 (11:00 -0500)
Fixes Item Status Quick Summary and Recent Circ History to show the original
checkout date and original checkout workstation for renewed items, instead of
values from the most recent circ row.

Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Signed-off-by: Dawn Dale <ddale@georgialibraries.org>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>

Open-ILS/src/templates/staff/cat/item/t_circs_pane.tt2
Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2

index fcadfe8..2eb548d 100644 (file)
   <div class="flex-row">
     <div class="flex-cell">[% l('Checkout Date') %]</div>
     <div class="flex-cell well">
-      {{circ.xact_start() | date:egDateAndTimeFormat}}
+      {{circ_summary.start_time() | date:egDateAndTimeFormat}}
     </div>
   </div>
 
   <div class="flex-row">
     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
     <div class="flex-cell well">
-      {{circ.workstation().name()}}
+      {{circ_summary.checkout_workstation()}}
     </div>
   </div>
 
index 46a6b02..865ee4e 100644 (file)
@@ -53,7 +53,7 @@
     </div>
 
     <div class="flex-cell">[% l('Checkout Date') %]</div>
-    <div class="flex-cell well">{{circ.xact_start() | date:egDateAndTimeFormat}}</div>
+    <div class="flex-cell well">{{circ_summary.start_time() | date:egDateAndTimeFormat}}</div>
   </div>
 
   <div class="flex-row">
@@ -78,7 +78,7 @@
     </div>
 
     <div class="flex-cell">[% l('Checkout Workstation') %]</div>
-    <div class="flex-cell well">{{circ.workstation().name()}}</div>
+    <div class="flex-cell well">{{circ_summary.checkout_workstation()}}</div>
   </div>
 
   <div class="flex-row">