From b597762102c32e3fe68076f9c413525e0d3c61b2 Mon Sep 17 00:00:00 2001 From: Juha Luoma <33253757+LuomaJuha@users.noreply.github.com> Date: Wed, 25 Oct 2023 10:09:25 +0300 Subject: [PATCH] LIDO: Adjust coordinate retrieval function names (#50) --- src/RecordManager/Finna/Record/Lido.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/RecordManager/Finna/Record/Lido.php b/src/RecordManager/Finna/Record/Lido.php index 7aa30ebb..64774dcc 100644 --- a/src/RecordManager/Finna/Record/Lido.php +++ b/src/RecordManager/Finna/Record/Lido.php @@ -284,8 +284,8 @@ public function toSolrArray(Database $db = null) } } $data['location_geo'] = [ - ...$this->getEventPlaceLocations(), - ...$this->getRepositoryLocations(), + ...$this->getEventPlaceCoordinates(), + ...$this->getRepositoryLocationCoordinates(), ]; $data['center_coords'] = $this->metadataUtils->getCenterCoordinates($data['location_geo']); @@ -544,11 +544,11 @@ protected function getHierarchicalLocations(\SimpleXMLElement $elem): array } /** - * Get repository locations + * Get repository location coordinates * * @return array */ - protected function getRepositoryLocations(): array + protected function getRepositoryLocationCoordinates(): array { $results = []; foreach ( @@ -1025,13 +1025,13 @@ protected function completeDate($date, $end = false) } /** - * Return the event place locations associated with specified event + * Return the event place coordinates associated with specified event * * @param string|array $event Event type(s) allowed (null = all types) * * @return array WKT */ - protected function getEventPlaceLocations($event = null) + protected function getEventPlaceCoordinates($event = null) { $results = []; foreach ($this->getEventNodes($event) as $event) {