|
Lines 127-134
foreach my $bib ( @bib_holds ) {
Link Here
|
| 127 |
my $item_to_allocate = $itemnumber_to_allocate == $item->id ? $item : Koha::Items->find( $itemnumber_to_allocate ); |
127 |
my $item_to_allocate = $itemnumber_to_allocate == $item->id ? $item : Koha::Items->find( $itemnumber_to_allocate ); |
| 128 |
do_convert( $hold_to_convert, $item_to_allocate ); |
128 |
do_convert( $hold_to_convert, $item_to_allocate ); |
| 129 |
report( $hold_to_convert, ++$count ); |
129 |
report( $hold_to_convert, ++$count ); |
|
|
130 |
$this_record_holds_converted++; |
| 130 |
} |
131 |
} |
| 131 |
$this_record_holds_converted++; |
|
|
| 132 |
} |
132 |
} |
| 133 |
} |
133 |
} |
| 134 |
} |
134 |
} |
|
Lines 160-166
sub can_convert {
Link Here
|
| 160 |
} else { |
160 |
} else { |
| 161 |
# bib-level reserve |
161 |
# bib-level reserve |
| 162 |
|
162 |
|
| 163 |
if ( $item and $item->can_be_recalled({ patron => $patron, hold_convert => 1 }) ) { |
163 |
if ( $item and $item->can_be_recalled({ patron => $patron, hold_convert => 1 }) and Koha::Recalls->filter_by_current->search({ item_id => $item->id })->count < 1 ) { |
| 164 |
# this item may be able to fill the recall |
164 |
# this item may be able to fill the recall |
| 165 |
return $item->id; |
165 |
return $item->id; |
| 166 |
} |
166 |
} |
| 167 |
- |
|
|