Lp 1942920: Show Legacy/Not Dated for Legacy Circs
authorJason Stephenson <jason@sigio.com>
Tue, 7 Sep 2021 18:37:54 +0000 (14:37 -0400)
committerJason Stephenson <jason@sigio.com>
Mon, 27 Sep 2021 16:14:34 +0000 (12:14 -0400)
When legacy circ counts are displayed in the AngularJS client, the
year shows up as -1.  This patch attempts to replace -1 with a
translatable string: "Legacy/Not Dated" as was used in the XUL staff
client.

Signed-off-by: Jason Stephenson <jason@sigio.com>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>

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

index f325321..5f14ee6 100644 (file)
       [% l('Total Circs') %]
       <script type="text/ng-template" id="circ-popover.html">
         <div ng-repeat="circ_count in circ_counts | orderBy:'year'">
-          {{circ_count.year}}: {{circ_count.count}}
+          {{(circ_count.year === -1) ? "[% l('Legacy/Not Dated') %]" : circ_count.year}}: {{circ_count.count}}
         </div>
       </script>
       <button type="button"