LP#1275118 Holds history displays canceled holds as active user/mccanna/lp1275118_myopac_canceled_holds
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 2 Mar 2016 21:52:13 +0000 (16:52 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 2 Mar 2016 21:52:13 +0000 (16:52 -0500)
Prior to this change, when a patron viewed holds history, canceled holds
displayed as active. From the patron point of view, the hold is no
longer active after it has been canceled.

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

index 8412f42..bffb716 100644 (file)
                         END %]
                     </td>
                     <td>
-                        [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
+                        [% IF hold.hold.status == 6 %]
+                            [% l('Canceled') %]
+                        [% ELSE %]
+                            [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
+                        [% END %]
                     </td>
                     <td>
                         [% IF ahr.fulfillment_time;