Lines 1027-1044
sub backend_create {
Link Here
|
1027 |
# ... complex case: commit! |
1027 |
# ... complex case: commit! |
1028 |
|
1028 |
|
1029 |
# Do we still have space for an ILL or should we queue? |
1029 |
# Do we still have space for an ILL or should we queue? |
1030 |
my $permitted = $self->check_limits( |
1030 |
my $permitted = 1; |
1031 |
{ patron => $self->patron }, { librarycode => $self->branchcode } |
1031 |
if( $self->patron ) { |
1032 |
); |
1032 |
$permitted = $self->check_limits( |
1033 |
|
1033 |
{ patron => $self->patron }, { librarycode => $self->branchcode } |
1034 |
# Now augment our committed request. |
1034 |
); |
1035 |
|
1035 |
$result->{permitted} = $permitted; |
1036 |
$result->{permitted} = $permitted; # Queue request? |
1036 |
$self->status('QUEUED')->store unless ($permitted); |
1037 |
|
1037 |
} |
1038 |
# This involves... |
|
|
1039 |
|
1040 |
# ...Updating status! |
1041 |
$self->status('QUEUED')->store unless ( $permitted ); |
1042 |
|
1038 |
|
1043 |
## Handle Unmediated ILLs |
1039 |
## Handle Unmediated ILLs |
1044 |
|
1040 |
|
1045 |
- |
|
|