diff --git a/module/finc/src/finc/View/Helper/Root/Record.php b/module/finc/src/finc/View/Helper/Root/Record.php index 843bd3b7fe22312f8bfa514f5f5877e1ec3b95dc..6dc7f86eca63c11a5a6696d10dbb62171f35e861 100644 --- a/module/finc/src/finc/View/Helper/Root/Record.php +++ b/module/finc/src/finc/View/Helper/Root/Record.php @@ -462,4 +462,29 @@ class Record extends \VuFind\View\Helper\Root\Record return $transEsc('Title not available'); } + public function getOnlineEditions() { + + $online_keys = array( + "Online-Ausg.", + "Online-Ausg.:", + "Digital. Ausg.", + "Online-Ausg. u.d.T.", + "Elektronische Reproduktion" + ); + $onlineEditions = []; + $recordLinkHelper = $this->getView()->RecordLink(); + foreach ($this->driver->tryMethod('getAdditionals') as $add) { + if (isset($add['identifier']) && in_array($add['identifier'],$online_keys)) { + if (isset($add['id'])) { + $link = $recordLinkHelper->getRecordLink($add['id'], 'id'); + if (!empty($link)) { + $add['link'] = $link; + $onlineEditions[] = $add; + } + } + } + } + return $onlineEditions; + } + } \ No newline at end of file