Skip to content
Snippets Groups Projects
Commit 6336790c authored by Alexander Purr's avatar Alexander Purr Committed by Robert Lange
Browse files

refs #21571 [fid] improve display off JOP / EZB access level

* adding abstract translation
* add default translation for homepage, volume and year
* build translation key within template
parent b87ee582
Branches
Tags
No related merge requests found
......@@ -251,9 +251,12 @@ class Ezb extends BaseEzb
);
$accessLevel_mapping = [
'article' => 'level_article',
'issue' => 'level_issue',
'homepage' => 'level_homepage'
'article' => 'article',
'issue' => 'issue',
'volume' => 'default',
'year' => 'default',
'homepage' => 'default',
'abstract' => 'abstract'
];
$i = 0;
......
......@@ -16,7 +16,7 @@
$this->externalLink(
$this->escapeHtmlAttr($link['href']),
'<i class="icon icon-external-link" aria-hidden="true"></i>'
. (isset($link['title']) ? $this->escapeHtml($this->transEsc('GetItBox::' . $link['title'])) : ''),
. (isset($link['title']) ? $this->escapeHtml($this->transEsc('GetItBox::level_' . $link['title'])) : ''),
[
'title' => isset($link['service_type']) ? $this->escapeHtmlAttr($link['service_type']) : '',
'class' => !empty($link['access']) ? 'access-' . $link['access'] : ''
......@@ -26,7 +26,7 @@
<br />
<?php /* fid: #16136 remove coverage - GG */?>
<?php else: ?>
<?=isset($link['title']) ? $this->escapeHtml($this->transEsc('GetItBox::' . $link['title'])) : ''?>
<?=isset($link['title']) ? $this->escapeHtml($this->transEsc('GetItBox::level_' . $link['title'])) : ''?>
<?php endif; ?>
</li>
<?php endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment