Bug 13122 - Patron holds table no longer display date item went in transit
authorKyle M Hall <kyle@bywatersolutions.com>
Tue, 21 Oct 2014 08:44:24 +0000 (04:44 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 17 Nov 2014 00:08:52 +0000 (21:08 -0300)
In Koha 3.14 and earlier, an item on hold and in transit would display
the date the item was transferred. This is missing from the new ajax
holds table.

Test Plan:
1) Place an item on hold for delivery at a different library
2) Check the item in, confirm the hold and transfer
3) View the patron's holds tab on circulation.pl and/or moremember.pl
4) Note the item is show as in transit, but does not give the "since"
   date
5) Apply this patch
6) Note the in transit status now has a "since <date>"

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Small change, works as described.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc
koha-tmpl/intranet-tmpl/prog/en/js/holds.js

index 5542875..312df74 100644 (file)
@@ -21,7 +21,7 @@
     var UNTIL = _("until %s");
     var ITEM_IS_WAITING = _("Item is <strong>waiting</strong>"); //
     var AT = _("at %s");
-    var ITEM_IS_IN_TRANSIT = _("Item is <strong>in transit</strong> from %s");
+    var ITEM_IS_IN_TRANSIT = _("Item is <strong>in transit</strong> from %s since %s");
     var FROM = _("from");
     var NOT_TRANSFERRED_YET = _("Item hasn't been transferred yet from %s");
     var NO = _("No");
index 253f339..60f747b 100644 (file)
@@ -64,7 +64,7 @@ $(document).ready(function() {
                                         data += " " + AT.format( oObj.waiting_at );
                                     }
                                 } else if ( oObj.transferred ) {
-                                    data += ITEM_IS_IN_TRANSIT.format( oObj.from_branch );
+                                    data += ITEM_IS_IN_TRANSIT.format( oObj.from_branch, oObj.date_sent );
                                 } else if ( oObj.not_transferred ) {
                                     data += NOT_TRANSFERRED_YET.format( oObj.not_transferred_by );
                                 }