From 99b284a69eb9f9479095f44d99413d13da7bdb34 Mon Sep 17 00:00:00 2001 From: Robert Lange <robert.lange@uni-leipzig.de> Date: Thu, 4 Nov 2021 17:16:54 +0100 Subject: [PATCH] refs #20842 [de_105] refactor getPickUpLocations * remove getPickUpLocations --- .../src/de_105/ILS/Driver/FincLibero.php | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/module/de_105/src/de_105/ILS/Driver/FincLibero.php b/module/de_105/src/de_105/ILS/Driver/FincLibero.php index 7d4f4524d50..5406104959f 100644 --- a/module/de_105/src/de_105/ILS/Driver/FincLibero.php +++ b/module/de_105/src/de_105/ILS/Driver/FincLibero.php @@ -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 -- GitLab