diff --git a/code/web/Drivers/Sierra.php b/code/web/Drivers/Sierra.php index 9b87c1c2f7..96425438e7 100644 --- a/code/web/Drivers/Sierra.php +++ b/code/web/Drivers/Sierra.php @@ -2456,6 +2456,9 @@ public function checkoutByAPI(User $patron, $barcode, Location $currentLocation) if (!empty($patron->ils_password)) { $params['patronPin'] = $patron->ils_password; } + if (!empty($currentLocation->circulationUsername)) { + $params['username'] = $currentLocation->circulationUsername; + } if (!empty($currentLocation->statGroup) && $currentLocation->statGroup != -1) { $params['statgroup'] = $currentLocation->statGroup; } @@ -2630,6 +2633,14 @@ public function checkInByAPI(User $patron, $barcode, Location $currentLocation): if (!empty($currentLocation->statGroup) && $currentLocation->statGroup != -1) { $sierraUrl .= '?statgroup=' . $currentLocation->statGroup; } + if (!empty($currentLocation->circulationUsername)) { + if (strpos($sierraUrl, '?') === false) { + $sierraUrl .= '?'; + }else{ + $sierraUrl .= '&'; + } + $sierraUrl .= 'username=' . $currentLocation->circulationUsername; + } $checkoutResult = $this->_sendPage( 'sierra.checkin', 'DELETE', $sierraUrl); if ($this->lastResponseCode >= 200 && $this->lastResponseCode < 300) { diff --git a/code/web/release_notes/24.09.00.MD b/code/web/release_notes/24.09.00.MD index 9caa189f34..d2f1ff32a1 100644 --- a/code/web/release_notes/24.09.00.MD +++ b/code/web/release_notes/24.09.00.MD @@ -22,8 +22,8 @@ // mark - Grove ## API Updates -- Update getUserForApiCall and checkoutILSItem APIs so they can be called internally. (AD-9) (*MDN-G*) -- Add checkInILSItem API to checkin titles. This method cannot be called externally. (AD-9) (*MDN-G*) +- Update getUserForApiCall and checkoutILSItem APIs so they can be called internally. (DIS-6) (*MDN-G*) +- Add checkInILSItem API to checkin titles. This method cannot be called externally. (DIS-6) (*MDN-G*) ### Grouped Work Display Updates - Allow records within a Grouped Work to have a custom sort order rather than forcing them to be alphabetic with Book first. (DIS-11) (MDN-G) @@ -40,13 +40,15 @@ ### Library & Location Updates -- Allow Stat Group to be defined for each location (Sierra only). Stat Group is used when checking items in or out to determine where to credit the checkout. The stat group can be left -1 to use the default behavior. (A-9) (*MDN-G*) +- Allow Stat Group to be defined for each location (Sierra only). Stat Group is used when checking items in or out to determine where to credit the checkout. The stat group can be left -1 to use the default behavior. (DIS-6) (*MDN-G*) +- Allow Circulation Useranme to be defined for each location (Sierra only). Circulation Useranme is used when checking items in or out to determine the location where the item was checked out. The Circulation Useranme can be left blank to use the default behavior. (DIS-6) (*MDN-G*) - Add an internal method to easily lookup the main location for a library. (*MDN-G*)