Lines 277-283
sub GetPendingHoldRequestsForBib {
Link Here
|
277 |
my $dbh = C4::Context->dbh; |
277 |
my $dbh = C4::Context->dbh; |
278 |
|
278 |
|
279 |
my $request_query = "SELECT biblionumber, borrowernumber, itemnumber, priority, reserves.branchcode, |
279 |
my $request_query = "SELECT biblionumber, borrowernumber, itemnumber, priority, reserves.branchcode, |
280 |
reservedate, reservenotes, borrowers.branchcode AS borrowerbranch, itemtype |
280 |
reservedate, reservenotes, borrowers.branchcode AS borrowerbranch, itemtype, item_level_hold |
281 |
FROM reserves |
281 |
FROM reserves |
282 |
JOIN borrowers USING (borrowernumber) |
282 |
JOIN borrowers USING (borrowernumber) |
283 |
WHERE biblionumber = ? |
283 |
WHERE biblionumber = ? |
Lines 436-442
sub MapItemsToHoldRequests {
Link Here
|
436 |
holdingbranch => $item->{holdingbranch}, |
436 |
holdingbranch => $item->{holdingbranch}, |
437 |
pickup_branch => $request->{branchcode} |
437 |
pickup_branch => $request->{branchcode} |
438 |
|| $request->{borrowerbranch}, |
438 |
|| $request->{borrowerbranch}, |
439 |
item_level => 0, |
439 |
item_level => $request->{item_level_hold}, |
440 |
reservedate => $request->{reservedate}, |
440 |
reservedate => $request->{reservedate}, |
441 |
reservenotes => $request->{reservenotes}, |
441 |
reservenotes => $request->{reservenotes}, |
442 |
}; |
442 |
}; |
Lines 475-481
sub MapItemsToHoldRequests {
Link Here
|
475 |
biblionumber => $request->{biblionumber}, |
475 |
biblionumber => $request->{biblionumber}, |
476 |
holdingbranch => $items_by_itemnumber{ $request->{itemnumber} }->{holdingbranch}, |
476 |
holdingbranch => $items_by_itemnumber{ $request->{itemnumber} }->{holdingbranch}, |
477 |
pickup_branch => $request->{branchcode} || $request->{borrowerbranch}, |
477 |
pickup_branch => $request->{branchcode} || $request->{borrowerbranch}, |
478 |
item_level => 1, |
478 |
item_level => $request->{item_level_hold}, |
479 |
reservedate => $request->{reservedate}, |
479 |
reservedate => $request->{reservedate}, |
480 |
reservenotes => $request->{reservenotes}, |
480 |
reservenotes => $request->{reservenotes}, |
481 |
}; |
481 |
}; |
Lines 650-656
sub MapItemsToHoldRequests {
Link Here
|
650 |
biblionumber => $request->{biblionumber}, |
650 |
biblionumber => $request->{biblionumber}, |
651 |
holdingbranch => $holdingbranch, |
651 |
holdingbranch => $holdingbranch, |
652 |
pickup_branch => $pickup_branch, |
652 |
pickup_branch => $pickup_branch, |
653 |
item_level => 0, |
653 |
item_level => $request->{item_level_hold}, |
654 |
reservedate => $request->{reservedate}, |
654 |
reservedate => $request->{reservedate}, |
655 |
reservenotes => $request->{reservenotes}, |
655 |
reservenotes => $request->{reservenotes}, |
656 |
}; |
656 |
}; |
657 |
- |
|
|