More NCIP::ILS::Evergreen->requestitem() improvements.
authorJason Stephenson <jason@sigio.com>
Sat, 27 Sep 2014 16:51:18 +0000 (12:51 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 27 Sep 2014 16:51:18 +0000 (12:51 -0400)
We check if item is a NCIP::Problem and return it if it is.

Signed-off-by: Jason Stephenson <jason@sigio.com>
lib/NCIP/ILS/Evergreen.pm

index 82bd251..5d588b3 100644 (file)
@@ -1075,6 +1075,9 @@ sub requestitem {
             );
         }
         return $response;
+    } elsif (ref($item) eq 'NCIP::Problem') {
+        $response->problem($item);
+        return $response;
     }
 
     # See if we were given a PickupLocation.