Lines 2511-2527
sub GetBorrowersToSatisfyHold {
Link Here
|
2511 |
|
2511 |
|
2512 |
if ($library eq 'RequestorLibrary') { |
2512 |
if ($library eq 'RequestorLibrary') { |
2513 |
$query .= " AND borrowers.branchcode = ?"; |
2513 |
$query .= " AND borrowers.branchcode = ?"; |
2514 |
$sth = $dbh->prepare( $query ); |
2514 |
$sth = $dbh->prepare( $query ); |
2515 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2515 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2516 |
} |
2516 |
} |
2517 |
elsif ($library eq 'ItemHomeLibrary') { |
2517 |
elsif ($library eq 'ItemHomeLibrary') { |
2518 |
$query .= " AND items.homebranch = ?"; |
2518 |
$query .= " AND items.homebranch = ?"; |
2519 |
$sth = $dbh->prepare( $query ); |
2519 |
$sth = $dbh->prepare( $query ); |
2520 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2520 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2521 |
} |
2521 |
} |
2522 |
else { |
2522 |
else { |
2523 |
$sth = $dbh->prepare( $query ); |
2523 |
$sth = $dbh->prepare( $query ); |
2524 |
$sth->execute( $hold->id() ); |
2524 |
$sth->execute( $hold->id() ); |
2525 |
} |
2525 |
} |
2526 |
|
2526 |
|
2527 |
my @results = (); |
2527 |
my @results = (); |
2528 |
- |
|
|