diff --git a/module/finc/src/finc/View/Helper/Root/ResultFeed.php b/module/finc/src/finc/View/Helper/Root/ResultFeed.php index 6eebc54b7a8b9f32cd3cdabd0899967bcc23da8e..38d5eccbd88ec70c41c8040fb9b0728a5aa0ff0d 100644 --- a/module/finc/src/finc/View/Helper/Root/ResultFeed.php +++ b/module/finc/src/finc/View/Helper/Root/ResultFeed.php @@ -53,18 +53,12 @@ class ResultFeed extends \VuFind\View\Helper\Root\ResultFeed protected function addEntry($feed, $record) { $entry = $feed->createEntry(); - $title = $record->tryMethod('getTitle'); - $publishPlace = $record->tryMethod('getPlacesOfPublication'); - if (!empty($publishPlace)) { - $title .= ' / ' . implode(', ', $publishPlace); - } - $publisher = $record->tryMethod('getPublishers'); - if (!empty($publisher) && is_array($publisher)) { - $title .= ' / ' . implode(', ', $publisher); - } - $publishDateSort = $record->tryMethod('getPublishDateSort'); - if (!empty($publishDateSort)) { - $title .= ' / ' . $publishDateSort; + $helper = $this->getView()->citation($record); + $recordtype = $record->getRecordType(); + if ($recordtype == 'ai') { + $title = $helper->getCitation('APAAI'); + } else { + $title = $helper->getCitation('APA'); } $entry->setTitle(empty($title) ? $record->getBreadcrumb() : $title); $serverUrl = $this->getView()->plugin('serverurl'); @@ -84,21 +78,6 @@ class ResultFeed extends \VuFind\View\Helper\Root\ResultFeed if (!empty($date)) { $entry->setDateModified($date); } - $author = $record->tryMethod('getPrimaryAuthor'); - if (!empty($author)) { - $entry->addAuthor(['name' => $author]); - } - /*$formats = $record->tryMethod('getFormats'); - if (is_array($formats)) { - foreach ($formats as $format) { - $entry->addDCFormat($format); - } - } - $dcDate = $this->getDcDate($record); - if (!empty($dcDate)) { - $entry->setDCDate($dcDate); - }*/ - $feed->addEntry($entry); }