Bug 32565: (follow-up) Tidy
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4da2e1444b
)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
c23b90e11b
commit
fcc65787aa
3 changed files with 25 additions and 24 deletions
|
@ -170,7 +170,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");
|
||||
}
|
||||
|
@ -200,7 +200,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
|
||||
|
@ -243,7 +244,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
|
||||
|
@ -313,7 +314,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)
|
||||
|
|
|
@ -85,6 +85,6 @@ if ( $rthq && !$force ) {
|
|||
|
||||
cronlogaction( { info => $command_line_options } );
|
||||
|
||||
CreateQueue({ unallocated => $unallocated });
|
||||
CreateQueue( { unallocated => $unallocated } );
|
||||
|
||||
cronlogaction( { action => 'End', info => "COMPLETED" } );
|
||||
|
|
Loading…
Reference in a new issue