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>
Thu, 7 Jan 2016 14:12:40 +0000 (09:12 -0500)
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 c2cfdbe..75b7447 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>
@@ -32,7 +33,7 @@
             %]
             [% curpage + 1 %]
                     [%- ELSE %]
-            <a href='[% mkurl('holds_history', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
+            <a href='[% mkurl('hold_history', {limit => limit, offset => (curpage * limit)}) %]'>[% curpage + 1 %]</a>
                     [%- END;
                     curpage = curpage + 1;
                 END;
@@ -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="#">Export List</a>
         </span>
                             date.format(ctx.parse_datetime(ahr.thaw_date), DATE_FORMAT);
                         END %]
                     </td>
-                    <td>
-                        [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
+                    <td>[% IF hold.hold.status != 6; %]
+                                               [% l(ahr.frozen == 'f' ? 'Active' : 'Suspended') %]
+                                           [% ELSE %]
+                                                   Canceled 
+                                               [% END %]
                     </td>
                     <td>
                         [% IF ahr.fulfillment_time;