diff --git a/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php b/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php index b5f27db358f4cc4af51e08a8e5afc5486da96651..fadca215d10bf1bf00b499e57b952bfd5af336c8 100644 --- a/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php +++ b/module/VuFind/src/VuFind/Recommend/EuropeanaResults.php @@ -227,12 +227,12 @@ class EuropeanaResults implements RecommendInterface, $parsedFeed = FeedReader::import($this->targetUrl); $resultsProcessed = []; foreach ($parsedFeed as $value) { - $link = (string)$value->link; + $link = $value->getLink(); if (!empty($link)) { $resultsProcessed[] = [ - 'title' => (string)$value->title, + 'title' => $value->getTitle(), 'link' => substr($link, 0, strpos($link, '.srw')) . '.html', - 'enclosure' => (string)$value->enclosure['url'] + 'enclosure' => $value->getEnclosure()['url'] ]; } if (count($resultsProcessed) == $this->limit) { @@ -260,4 +260,4 @@ class EuropeanaResults implements RecommendInterface, { return $this->results; } -} \ No newline at end of file +}