diff --git a/module/CPK/src/CPK/ILS/Logic/XmlTransformation/Normalizers/VerbisNCIPNormalizer.php b/module/CPK/src/CPK/ILS/Logic/XmlTransformation/Normalizers/VerbisNCIPNormalizer.php index b1117ceb4..9aecce128 100644 --- a/module/CPK/src/CPK/ILS/Logic/XmlTransformation/Normalizers/VerbisNCIPNormalizer.php +++ b/module/CPK/src/CPK/ILS/Logic/XmlTransformation/Normalizers/VerbisNCIPNormalizer.php @@ -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; + } } \ No newline at end of file