KMAIN-85: Holds Pull List - add an indicator for copy-specify item
authorBill Erickson <berickxx@gmail.com>
Wed, 29 Oct 2014 21:05:43 +0000 (17:05 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
    Cross-port: 7b8f6f6

Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm
Open-ILS/web/opac/extras/circ/alt_holds_print.js

index 33ef6b9..e9ac64e 100644 (file)
@@ -3587,7 +3587,7 @@ sub clear_shelf_cache {
                     "acns" => [{column => "label", alias => "suffix"}],
                     "bre" => ["marc"],
                     "acpl" => ["name"],
-                    "ahr" => ["id"]
+                    "ahr" => ["id", "hold_type"]
                 },
                 "from" => {
                     "ahr" => {
index 65199ab..8a8a6ae 100644 (file)
@@ -177,6 +177,12 @@ function do_clear_holds_from_cache(cache_key) {
                         var hold = hashify_fields(resp.hold_details);
                         hold.action = resp.action;
 
+                       if(resp.hold_details.hold_type) {
+                               hold.hold_type = resp.hold_details.hold_type;
+                       } else {
+                               hold.hold_type = "";
+                       }
+
                         var tr = dojo.clone(template);
                         any++;