Newer
Older
Robert Lange
committed
<!-- fid-adlr: dbis -->
<br/>
<h3><?= $this->translate('dbis_name') ?></h3>
<div class="dbis_description">
<button class="title collapsed" data-toggle="collapse" href="#dbis_description"><?= $this->translate('dbis_hint') ?></button>
<div id="dbis_description" class="collapse">
<p><?= $this->translate('dbis_text') ?></p>
</div>
</div>
<br/>
<div class="dbis_content" id="dbis_content"><i class="fa fa-spinner fa-spin"></i> <?= $this->transEsc("Loading") ?> ...
</div>
<?php
Robert Lange
committed
$dbisId = $this->homeLibrary ?? '';
Robert Lange
committed
$dbisRequest = "$(document).ready(function () {
$.ajax({
dataType: 'json',
method: 'GET',
url: VuFind.path + '/AJAX/JSON?method=getDbis&bibId=$dbisId&map_bibid_to_dbis=$this->map_bibid_to_dbis'
})
.done(function(response) {
$('#dbis_content').html(response.data.html);
});
});";
Robert Lange
committed
echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $dbisRequest, 'SET');
?>
<!-- fid-adlr: dbis - END -->