$cite->year = $this->publication->published_up && $this->publication->published_up != '0000-00-00 00:00:00' ? Date::of($this->publication->published_up)->toLocal('Y') : Date::of('now')->toLocal('Y'); $cite->location = ''; $cite->date = ''; $cite->doi = $this->publication->doi ? $this->publication->doi : ''; $cite->url = $cite->doi ? trim($this->config->get('doi_resolve', 'http://dx.doi.org/'), DS) . DS . $cite->doi : NULL; $cite->type = ''; $cite->pages = ''; $cite->author = $this->publication->getUnlinkedContributors(); $cite->publisher = $this->config->get('doi_publisher', ''); if ($this->publication->params->get('show_citation') == 2) { $citations = ''; } } else { $cite = null; } $citeinstruct = \Components\Publications\Helpers\Html::citation($cite, $this->publication, $citations); ?> <h4 id="citethis"><?php echo Lang::txt('COM_PUBLICATIONS_CITE_THIS'); ?> </h4> <div class="pub-content"> <?php echo $citeinstruct; ?> </div> <?php } if ($this->publication->params->get('show_submitter') && $this->publication->submitter()) { ?> <h4><?php