Skip to content
Snippets Groups Projects
Commit 99b284a6 authored by Robert Lange's avatar Robert Lange
Browse files

refs #20842 [de_105] refactor getPickUpLocations

* remove getPickUpLocations
parent 0ce8a224
Branches
Tags
1 merge request!3refs #20945 [de_105] w3c validation - syntax fixes
......@@ -43,38 +43,6 @@ namespace de_105\ILS\Driver;
*/
class FincLibero extends \finc\ILS\Driver\FincLibero
{
/**
* This method returns a list of locations where a user may collect a hold.
*
* @param array $patron Patron array returned by patronLogin method
* @param array $details Hold information array similar to placeHold's input
* @return array Array of associative arrays containing these keys:
* locationID - A pick up location id or code (string)
* locationDisplay – The text to display for the location (string)
*
* @link https://vufind.org/wiki/development:plugins:ils_drivers#getpickuplocations
*/
public function getPickUpLocations($patron = [], $details = [])
{
if ($details != [] && isset($details['id'])) {
$statusItems = $this->getStatus($details['id']);
foreach ($statusItems as $statusItem) {
if ($statusItem['item_id'] == $details['item_id']) {
// our pickUpLocations are stored in the customData array upon
// processing the DAIA availability information
if (isset($statusItem['customData'])
&& isset($statusItem['customData']['pickUpLocations'])
) {
return $statusItem['customData']['pickUpLocations'];
}
}
}
}
return [];
}
/**
* {@inheritdoc}
* DE-105 specific, avoid duplicate texts for available status by ommission
......
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