Skip to content

Commit

Permalink
LIDO: Adjust coordinate retrieval function names (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuomaJuha authored Oct 25, 2023
1 parent 01b0e5a commit b597762
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/RecordManager/Finna/Record/Lido.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down Expand Up @@ -544,11 +544,11 @@ protected function getHierarchicalLocations(\SimpleXMLElement $elem): array
}

/**
* Get repository locations
* Get repository location coordinates
*
* @return array<int, string>
*/
protected function getRepositoryLocations(): array
protected function getRepositoryLocationCoordinates(): array
{
$results = [];
foreach (
Expand Down Expand Up @@ -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<int, string> WKT
*/
protected function getEventPlaceLocations($event = null)
protected function getEventPlaceCoordinates($event = null)
{
$results = [];
foreach ($this->getEventNodes($event) as $event) {
Expand Down

0 comments on commit b597762

Please sign in to comment.