Skip to content
Snippets Groups Projects
  • Robert Lange's avatar
    refs #15589 [fid_adlr] transfer licenses from composer package into instance and embed DBIS package · d534122d
    Robert Lange authored and Dorian Merz's avatar Dorian Merz committed
    * .gitignore changed: ignore copied dbis mixin in theme folder
    * composer.json changed: add DBIS package AND add post-install / post-update - hooks to copy mixins after composer install or update
    * config/application.config.php changed: also dbis module is still needed here for activation
    * fid_adlr/config/vufind/config.ini changed: set adlr licenses configuration
    * fid_adlr/config/vufind/fid.ini changed: set current api backend - remove on go live
    * fid_adlr/config/vufind/permissionBehavior.ini added: derived from fid for correct handling of permissions in permissionHelper (defaultDeniedTemplateBehavior = true)
    * fid_adlr/config/vufind/permissions.ini added: set permissions for licenses (currenty full_access only) and dbis (all)
    * module/fid_adlr/config/module.config.php changed: add routes for licenses = dbis = databases
    * module/fid_adlr/src/Controller/MyResearchController.php & MyResearchControllerFactor...
    d534122d
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
dbis-content.phtml 995 B
<!-- 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
$dbisId = $this->homeLibrary ?? '';
$dbisRequest = "$(document).ready(function () {
            $.ajax({
                dataType: 'json',
                method: 'GET',
                url: VuFind.path + '/AJAX/JSON?method=getDbis&bibId=$dbisId'
            })
            .done(function(response) {
                $('#dbis_content').html(response.data.html);
            });
        });";
echo $this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $dbisRequest, 'SET');
?>
<!-- fid-adlr: dbis - END -->