Skip to content
Snippets Groups Projects
Commit 289adf4f authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #16616 [fid_adlr] boss bugs

* fixed boss display bugs
parent d5fc06e7
No related merge requests found
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
}).done(function(response) { }).done(function(response) {
if (response.data.isISIL) { if (response.data.isISIL) {
$('.boss-data-true').html(response.data.html); $('.boss-data-true').html(response.data.html);
$('.getitbox-notices').addClass('hidden');
} else { } else {
$('.boss-data-false').html(response.data.html); $('.boss-data-false').html(response.data.html);
$('.boss-notice').addClass('hidden'); $('.boss-notice').addClass('hidden');
...@@ -60,17 +61,6 @@ ...@@ -60,17 +61,6 @@
JS; JS;
?> ?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?> <?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
<?php if ($getit->hideNotice()): ?>
<? $script = <<<JS
$(document).ready(function() {
$('.getitbox-notices').addClass('hidden');
// Use to register new lightbox window networknotice
VuFind.lightbox.bind();
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET');?>
<?php endif; ?>
<?php endif; ?> <?php endif; ?>
<div class="getitbox-getit"> <div class="getitbox-getit">
...@@ -119,7 +109,7 @@ JS; ...@@ -119,7 +109,7 @@ JS;
<?php if ($user && $getit->showBOSSData()): ?> <?php if ($user && $getit->showBOSSData()): ?>
<div class="boss-data-false"></div> <div class="boss-data-false"></div>
<?php if ($getit->hideNotice()): ?><br/><?php endif; ?> <?php if (!$getit->hideNotice()): ?><br/><?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php <?php
...@@ -129,6 +119,13 @@ JS; ...@@ -129,6 +119,13 @@ JS;
<?=sprintf($getit->getNotices(), $url)?> <?=sprintf($getit->getNotices(), $url)?>
<?php if ($getit->hideNotice()): ?></div><?php endif; ?> <?php if ($getit->hideNotice()): ?></div><?php endif; ?>
</div> </div>
<?php else: ?>
<div class="getitbox-notices">
<?php if ($user && $getit->showBOSSData()): ?>
<div class="boss-data-false"></div>
<?php if (!$getit->hideNotice()): ?><br/><?php endif; ?>
<?php endif; ?>
</div>
<?php endif; ?> <?php endif; ?>
<!-- fid_adlr: recordTab - holdingsils - END --> <!-- fid_adlr: recordTab - holdingsils - END -->
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
<a href="<?= $this->escapeHtmlAttr($this->proxyUrl($current['url'])) ?>" target="_blank"><i <a href="<?= $this->escapeHtmlAttr($this->proxyUrl($current['url'])) ?>" target="_blank"><i
class="icon icon-external-link" aria-hidden="true"></i> class="icon icon-external-link" aria-hidden="true"></i>
<?= $this->truncate($this->escapeHtml($current['desc']), $maxDisplayLength) ?> <?= $this->truncate($this->escapeHtml($current['desc']), $maxDisplayLength) ?>
</a><?php endif; ?> </a><br/>
<?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
<?php /* finc-specific snippet - #9274 - replaces if ($openUrlActive): ... - CK */ ?> <?php /* finc-specific snippet - #9274 - replaces if ($openUrlActive): ... - CK */ ?>
......
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