projects
/
working
/
SIPServer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1adfde3
)
Minor cleanups.
author
djfiander
<djfiander>
Sun, 16 Apr 2006 15:47:07 +0000
(15:47 +0000)
committer
djfiander
<djfiander>
Sun, 16 Apr 2006 15:47:07 +0000
(15:47 +0000)
move available() method out of Transaction and into Item.
ILS/Item.pm
patch
|
blob
|
history
diff --git
a/ILS/Item.pm
b/ILS/Item.pm
index
0d214a4
..
91b8830
100644
(file)
--- a/
ILS/Item.pm
+++ b/
ILS/Item.pm
@@
-133,10
+133,10
@@
sub owner {
return 'UWOLS';
}
-sub hold_queue
_length
{
+sub hold_queue {
my $self = shift;
- return
scalar
@{$self->{hold_queue}};
+ return @{$self->{hold_queue}};
}
sub hold_queue_position {
@@
-181,5
+181,9
@@
sub print_line {
return $self->{print_line} || '';
}
+sub available {
+ my $self = shift;
+ return (!$self->{patron_id} && !$self->{hold_queue});
+}
1;