Temporary modifications to My Account > Holds History until more
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 5 Jan 2016 22:47:01 +0000 (17:47 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 10 Oct 2016 12:40:02 +0000 (08:40 -0400)
permanent fixes are developed.

Hid paging because it is broken. See:
https://bugs.launchpad.net/evergreen/+bug/1422927

Showing "Canceled" instead of "Active" for canceled holds. See:
https://bugs.launchpad.net/evergreen/+bug/1275118

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

index 701f7a9..187fc96 100644 (file)
@@ -22,6 +22,7 @@
 
     <div class="header_middle">
         <span style="float:left;">[% l("Previously Requested Items") %]</span>
+               <!-- HIDE BECAUSE OF BUG
         <span class='float-left' style='padding-left: 10px;'>
             <a href='[% mkurl('hold_history', {limit => limit,offset => (offset - limit)}) %]'
                 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">&#9668;</span>[% l('Previous') %]</a>
@@ -40,6 +41,7 @@
             <a href='[% mkurl('hold_history', {limit => limit, offset => (offset + limit)}) %]'
                [% IF count <= limit + offset %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">&#9658;</span></a>
         </span>
+               -->
         <span style="float:right;">
             <a class="hide_me" href="#">[% l('Export List') %]</a>
         </span>
                         [% ctx.get_aou(ahr.pickup_lib).name | html %]
                     </td>
                     <td>
-                        <div name="acct_holds_status">
+                        [% IF ahr.frozen == 't' AND ahr.thaw_date;
+                            date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
+                        END %]
+                    </td>
+                    <td>[% IF hold.hold.status != 6; %]
+                                               [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
+                                           [% ELSE %]
+                                                   Canceled 
+                                               [% END %]
+                    </td>
+                    <td>
+                        [% IF ahr.fulfillment_time;
+                            date.format(ctx.parse_datetime(ahr.fulfillment_time), DATE_FORMAT);
+                        END %]
+                    </td>
+                    <td>
+                        <div name="acct_holds_status"
+                            style="margin-top:10px;margin-bottom:10px;">
                             [% PROCESS get_hold_status hold=hold; %]
                         </div>
                     </td>