SIP2: Return slightly more hold info
authorThomas Berezansky <tsbere@mvlc.org>
Thu, 24 May 2012 16:37:33 +0000 (12:37 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 11 Jul 2013 13:46:09 +0000 (09:46 -0400)
We don't have a normal hold queue, but if there is a hold we can call that
the hold queue. So return the ID of the hold that was captured.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/SIP/Item.pm

index 59e97d0..a2523e1 100644 (file)
@@ -391,6 +391,7 @@ sub owner {
 
 sub hold_queue {
     my $self = shift;
+    return [$self->{hold}->id] if $self->{hold};
     return [];
 }