diff --git a/module/finc/src/finc/View/Helper/Root/Citation.php b/module/finc/src/finc/View/Helper/Root/Citation.php index b855634ccfec24a1afdc7291338b1d4c725fc251..9d98f00cb57b05e9fe3888a1508023a8c8a7d3b6 100644 --- a/module/finc/src/finc/View/Helper/Root/Citation.php +++ b/module/finc/src/finc/View/Helper/Root/Citation.php @@ -502,7 +502,9 @@ class Citation extends \VuFind\View\Helper\Root\Citation protected function getYear() { if (isset($this->details['pubDate'])) { - if (strlen($this->details['pubDate']) > 4) { + if ((strlen($this->details['pubDate']) > 4) + && !preg_match("/^\[\d+\]/", $this->details['pubDate']) + ) { try { return $this->dateConverter->convertFromDisplayDate( 'Y', diff --git a/themes/finc/templates/Citation/apa.phtml b/themes/finc/templates/Citation/apa.phtml index 1b40871412d5660f64424006e504abf2eee26a38..cdda373c4b6f00455968615b047c68860f893fc7 100644 --- a/themes/finc/templates/Citation/apa.phtml +++ b/themes/finc/templates/Citation/apa.phtml @@ -1,5 +1,11 @@ <?php if (!empty($this->authors)): ?><?=$this->escapeHtml($this->authors)?> - <?php if (!empty($this->year)): ?><?php if (!empty($this->authors)): ?><?php endif; ?>(<?=$this->escapeHtml($this->year)?>). <?php endif; ?> + <?php if (!empty($this->year)): ?> + <?php if (!preg_match("/^\[\d+\]/", $this->year)): ?> + (<?=$this->escapeHtml($this->year)?>). + <?php else: ?> + <?=$this->escapeHtml($this->year)?>. + <?php endif; ?> + <?php endif; ?> <?php endif; ?> <i><?=$this->escapeHtml($this->title)?></i><?php if ($this->periodAfterTitle): ?>. <?php endif ?> <?php if (empty($this->authors)): ?>