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
No related merge requests found
...@@ -251,9 +251,12 @@ class Ezb extends BaseEzb ...@@ -251,9 +251,12 @@ class Ezb extends BaseEzb
); );
$accessLevel_mapping = [ $accessLevel_mapping = [
'article' => 'level_article', 'article' => 'article',
'issue' => 'level_issue', 'issue' => 'issue',
'homepage' => 'level_homepage' 'volume' => 'default',
'year' => 'default',
'homepage' => 'default',
'abstract' => 'abstract'
]; ];
$i = 0; $i = 0;
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
$this->externalLink( $this->externalLink(
$this->escapeHtmlAttr($link['href']), $this->escapeHtmlAttr($link['href']),
'<i class="icon icon-external-link" aria-hidden="true"></i>' '<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']) : '', 'title' => isset($link['service_type']) ? $this->escapeHtmlAttr($link['service_type']) : '',
'class' => !empty($link['access']) ? 'access-' . $link['access'] : '' 'class' => !empty($link['access']) ? 'access-' . $link['access'] : ''
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<br /> <br />
<?php /* fid: #16136 remove coverage - GG */?> <?php /* fid: #16136 remove coverage - GG */?>
<?php else: ?> <?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; ?> <?php endif; ?>
</li> </li>
<?php endif; ?> <?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