Skip to content

Commit

Permalink
When prompting for an item to place a hold on. Treat item statuses of…
Browse files Browse the repository at this point in the history
… - with a due date as checked out.
  • Loading branch information
mdnoble73 committed May 1, 2024
1 parent 9617e9e commit f4412e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/web/Drivers/Sierra.php
Original file line number Diff line number Diff line change
Expand Up @@ -1108,11 +1108,15 @@ public function placeHold($patron, $recordId, $pickupBranch = null, $cancelDate
if (isset($placeHoldResponse->code) && isset($placeHoldResponse->details->itemsAsVolumes)) {
$items = [];
foreach ($placeHoldResponse->details->itemsAsVolumes as $itemFromSierra) {
$status = $itemFromSierra->status->display;
if ($itemFromSierra->status->code == '-' && !empty( $itemFromSierra->status->duedate)) {
$status = 'CHECKED OUT';
}
$items[] = [
'itemNumber' => '.i' . $itemFromSierra->id . $this->getCheckDigit($itemFromSierra->id),
'location' => $itemFromSierra->location->name,
'callNumber' => $itemFromSierra->callNumber,
'status' => $itemFromSierra->status->display,
'status' => $status,
];
}
$hold_result['items'] = $items;
Expand Down
3 changes: 3 additions & 0 deletions code/web/release_notes/24.05.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
- Additional checking for OverDrive records that should have a format of eComic. (Ticket 124443) (*MDN*)
- Update error handling for OverDrive records when the active library does not have access to the record being viewed. (*MDN*)

### Sierra Updates
- When prompting for an item to place a hold on. Treat item statuses of - with a due date as checked out. (Tickets 117611, 122886, 129418) (*MDN*)

### Solr Updates
- Remove deprecated solr 7.6 from the code base. (*MDN*)

Expand Down

0 comments on commit f4412e4

Please sign in to comment.