Newer
Older
<!-- fid_adlr: get-it-box - links -->
<div class="facet-group" id="get-it-links-<?= $getit->getAccordeonColor() ?>">
<button class="title collapsed" id="get-it-button" data-toggle="collapse" href="#side-collapse-links-data">
<?= $getit->getAccordeonHeadline() ?>
</button>
<div id="side-collapse-links-data" class="collapse">
<?php $maxDisplayLength = 50; ?>
<?php if (!empty($urls)): ?>
<?php foreach ($urls as $current): ?>
<?php if (preg_match_all('/fid\-medien/', $current['url'])): ?>
<a href="<?= $this->escapeHtmlAttr($this->proxyUrl($current['url'])) ?>" target="_blank"><i
class="icon icon-external-link" aria-hidden="true"></i>
<?= $this->truncate($this->escapeHtml($current['desc']), $maxDisplayLength) ?>
</a><br/>
<?php endforeach; ?>
<?php endif; ?>
<?php /* finc-specific snippet - #9274 - replaces if ($openUrlActive): ... - CK */ ?>
<?php if ($openUrlActive): ?>
<?php if (empty($urls)): ?>
<?php $fallbackUrls = $this->driver->tryMethod('getURLs');
$doiName = $this->driver->tryMethod('getCleanDOI');
if (!empty($fallbackUrls)): ?>
<span id="urlsHideable" style="display: none">
<?php foreach ($fallbackUrls as $current): ?>
<?php if (preg_match_all('/doi/', $current['url'])): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" target="_blank">DOI: <?=$doiName?></a>
<?php endif; ?>
<?= $openUrl->renderTemplate() ?>
<?php if ($doiActive): ?><?= $doi->renderTemplate() ?><?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php
$closeAccordeonOnMobile = <<<JS
$(document).ready(function() {
if( !$("#search-main-dropdown").is(":visible")) {
$('#get-it-button').click();
}
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $closeAccordeonOnMobile, 'SET');?>
<!-- fid_adlr: get-it-box - links - END -->