Skip to content
This repository has been archived by the owner on Jul 21, 2022. It is now read-only.

Commit

Permalink
Issue 253: Enable 'Available For Pickup' status for Verbis
Browse files Browse the repository at this point in the history
  • Loading branch information
xmorave2 committed Oct 18, 2021
1 parent e31646a commit 5a90de9
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,23 @@ public function normalizeRequestedItems(JsonXML &$response)
public function normalizeLookupUserLoanedItemsHistory(JsonXML &$response)
{
}

protected function normalizeStatus(string $status)
{

$newStatus = null;
if ($status !== null) {
// Let's correct improper statuses
if ($status === 'Available on Shelf')
$newStatus = 'Available On Shelf';
else if ($status === 'Not available')
$newStatus = 'Not Available';
else if ($status === 'Available for Pickup')
$newStatus = 'Available For Pickup';
else if ($status === 'Waiting To Be Reshelved')
$newStatus = 'In Process';
}

return $newStatus;
}
}

0 comments on commit 5a90de9

Please sign in to comment.