LP1704463: Item Status Fields Correction
authorJason Boyer <jboyer@library.in.gov>
Fri, 14 Jul 2017 19:01:09 +0000 (15:01 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 17 Jul 2017 14:46:27 +0000 (10:46 -0400)
The Loan Duration and Fine Level fields were
being incorrectly pulled from unrelated fields
on the most recent circ rather than the item.

Signed-off-by: Jason Boyer <jboyer@library.in.gov>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/staff/cat/item/t_summary_pane.tt2

index a80e4d8..4f03835 100644 (file)
     </div>
 
     <div class="flex-cell">[% l('Loan Duration') %]</div>
-    <div class="flex-cell well">{{circ.duration()}}</div>
+    <div class="flex-cell well">
+      <div ng-if="copy.loan_duration() == 1">[% l('Short') %]</div>
+      <div ng-if="copy.loan_duration() == 2">[% l('Normal') %]</div>
+      <div ng-if="copy.loan_duration() == 3">[% l('Long') %]</div>
+    </div>
 
     <div class="flex-cell">[% l('Renewal Type') %]</div>
     <div class="flex-cell well">
     <div class="flex-cell">[% l('Date Created') %]</div>
     <div class="flex-cell well">{{copy.create_date() | date:egDateAndTimeFormat}}</div>
     <div class="flex-cell">[% l('Fine Level') %]</div>
-    <div class="flex-cell well">{{circ.duration_rule().name()}}</div>
+    <div class="flex-cell well">
+      <div ng-if="copy.fine_level() == 1">[% l('Low') %]</div>
+      <div ng-if="copy.fine_level() == 2">[% l('Normal') %]</div>
+      <div ng-if="copy.fine_level() == 3">[% l('High') %]</div>
+    </div>
 
     <div class="flex-cell">[% l('Total Circs') %]</div>
     <div class="flex-cell well">{{total_circs}}</div>