|
Lines 2216-2232
sub GetBorrowersToSatisfyHold {
Link Here
|
| 2216 |
|
2216 |
|
| 2217 |
if ($library eq 'RequestorLibrary') { |
2217 |
if ($library eq 'RequestorLibrary') { |
| 2218 |
$query .= " AND borrowers.branchcode = ?"; |
2218 |
$query .= " AND borrowers.branchcode = ?"; |
| 2219 |
$sth = $dbh->prepare( $query ); |
2219 |
$sth = $dbh->prepare( $query ); |
| 2220 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2220 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
| 2221 |
} |
2221 |
} |
| 2222 |
elsif ($library eq 'ItemHomeLibrary') { |
2222 |
elsif ($library eq 'ItemHomeLibrary') { |
| 2223 |
$query .= " AND items.homebranch = ?"; |
2223 |
$query .= " AND items.homebranch = ?"; |
| 2224 |
$sth = $dbh->prepare( $query ); |
2224 |
$sth = $dbh->prepare( $query ); |
| 2225 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
2225 |
$sth->execute( $hold->id(), $hold->borrower()->branchcode ); |
| 2226 |
} |
2226 |
} |
| 2227 |
else { |
2227 |
else { |
| 2228 |
$sth = $dbh->prepare( $query ); |
2228 |
$sth = $dbh->prepare( $query ); |
| 2229 |
$sth->execute( $hold->id() ); |
2229 |
$sth->execute( $hold->id() ); |
| 2230 |
} |
2230 |
} |
| 2231 |
|
2231 |
|
| 2232 |
my @results = (); |
2232 |
my @results = (); |
| 2233 |
- |
|
|