Skip to content
Snippets Groups Projects
Commit 8cf141fd authored by Ere Maijala's avatar Ere Maijala Committed by Robert Lange
Browse files

Alma: Return pickup location fields as strings.

Also adds a missing parameter.
parent 21d245c0
No related merge requests found
......@@ -1497,21 +1497,23 @@ class Alma extends AbstractBase implements \VuFindHttp\HttpServiceAwareInterface
* This is responsible get a list of valid library locations for holds / recall
* retrieval
*
* @param array $patron Patron information returned by the patronLogin method.
* @param array $patron Patron information returned by the patronLogin
* method.
* @param array $holdDetails Hold details
*
* @return array An array of associative arrays with locationID and
* locationDisplay keys
*
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function getPickupLocations($patron)
public function getPickupLocations($patron, $holdDetails = null)
{
$xml = $this->makeRequest('/conf/libraries');
$libraries = [];
foreach ($xml as $library) {
$libraries[] = [
'locationID' => $library->code,
'locationDisplay' => $library->name
'locationID' => (string)$library->code,
'locationDisplay' => (string)$library->name
];
}
return $libraries;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment