Bug 32565: (follow-up) Tidy

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Nick Clemens 2024-04-19 11:25:58 +00:00 committed by Katrin Fischer
parent c3eac3c889
commit 4da2e1444b
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834
3 changed files with 25 additions and 24 deletions

View file

@ -172,7 +172,7 @@ sub CreateQueue {
my $unallocated = $params->{unallocated};
my $dbh = C4::Context->dbh;
unless( $unallocated ){
unless ($unallocated) {
$dbh->do("DELETE FROM tmp_holdsqueue"); # clear the old table for new info
$dbh->do("DELETE FROM hold_fill_targets");
}
@ -202,7 +202,8 @@ sub CreateQueue {
$total_bibs++;
my $result = update_queue_for_biblio(
{ biblio_id => $biblionumber,
{
biblio_id => $biblionumber,
branches_to_use => $branches_to_use,
transport_cost_matrix => $transport_cost_matrix,
unallocated => $unallocated
@ -245,7 +246,7 @@ sub GetBibsWithPendingHoldRequests {
=head2 GetPendingHoldRequestsForBib
my $requests = GetPendingHoldRequestsForBib({ biblionumber => $biblionumber, unallocated => $unallocated });
my $requests = GetPendingHoldRequestsForBib( { biblionumber => $biblionumber, unallocated => $unallocated } );
Returns an arrayref of hashrefs to pending, unfilled hold requests
on the bib identified by $biblionumber. Optionally returns only unallocated holds. The following keys
@ -315,7 +316,7 @@ sub GetItemsAvailableToFillHoldRequestsForBib {
my $items_query = "SELECT items.itemnumber, homebranch, holdingbranch, itemtypes.itemtype AS itype
FROM items ";
if (C4::Context->preference('item-level_itypes')) {
if ( C4::Context->preference('item-level_itypes') ) {
$items_query .= "LEFT JOIN itemtypes ON (itemtypes.itemtype = items.itype) ";
} else {
$items_query .= "JOIN biblioitems USING (biblioitemnumber)

View file

@ -85,6 +85,6 @@ if ( $rthq && !$force ) {
cronlogaction( { info => $command_line_options } );
CreateQueue({ unallocated => $unallocated });
CreateQueue( { unallocated => $unallocated } );
cronlogaction( { action => 'End', info => "COMPLETED" } );