Fix checkoutitem in NCIP::ILS::Evergreen.
authorJason Stephenson <jason@sigio.com>
Sat, 11 Oct 2014 20:20:07 +0000 (16:20 -0400)
committerJason Stephenson <jason@sigio.com>
Sat, 11 Oct 2014 20:20:07 +0000 (16:20 -0400)
Even though, the function documentation for checkout(.full) says
a copy object works, it apparently doesn't, so I switched to using
the copy_id parameter with $copy->id().

Signed-off-by: Jason Stephenson <jason@sigio.com>

lib/NCIP/ILS/Evergreen.pm

index 7f71e51..01f1ea4 100644 (file)
@@ -809,7 +809,7 @@ sub checkoutitem {
     # the user is not allowed to check out this item, without getting
     # into details.
     my $params = {
-        copy => $copy,
+        copy_id => $copy->id(),
         patron_id => $user->id(),
     };
     my $r = $U->simplereq(