<?php
  // Set page title.
  $this->headTitle($this->translate('Search Home'));

  // Disable top search box -- this page has a special layout.
  $this->layout()->searchbox = false;

  // Set default value if necessary:
  if (!isset($this->searchClassId)) {
    $this->searchClassId = 'SolrAuth';
  }

  // Load search actions and settings (if any):
  $options = $this->searchOptions($this->searchClassId);
  $basicSearch = $options->getSearchAction();
  $advSearch = $options->getAdvancedSearchAction();

  $this->layout()->breadcrumbs = false;
?>

<div class="searchHomeContent">
  <?
  $ilsStatusScript = <<<JS
$(document).ready(function() {
  $.ajax({
      dataType: 'json',
      method: 'GET',
      data: {'offlineModeMsg':'ils_offline_home_message'},
      url: VuFind.path + '/AJAX/JSON?method=getIlsStatus',
      success: function(response) {
          $('.searchHomeContent').prepend(response.data);
      }
  });
});
JS;
  ?>
  <?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $ilsStatusScript, 'SET'); ?>

  <?=$this->context($this)->renderInContext("search/searchboxAuthorities.phtml", ['ignoreHiddenFilterMemory' => true])?>
  <?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, '$("#searchForm_lookfor").focus();', 'SET'); ?>
</div>

<div class="mainbody left">
	<h4><?=$this->translate("AuthorityMainDescriptionHeadline")?></h4>
	<p><?=$this->translate("AuthorityMainDescriptionTop")?></p><br>
        <ul>
                <li style="list-style-type:disc; margin-left:20px;"><?=$this->translate("AuthorityMainDescriptionVETRepositoryList1")?></li>
<br>
		<li style="list-style-type:disc; margin-left:20px;"><?=$this->translate("AuthorityMainDescriptionVETRepositoryList2")?></li>
<br>
		<li style="list-style-type:disc; margin-left:20px;"><?=$this->translate("AuthorityMainDescriptionVETRepositoryList3")?></li>
<br>
        </ul>
	<p style="margin-bottom:20px;" ><?=$this->translate("AuthorityMainDescriptionLibrary")?></p>
        <p style="margin-bottom:20px;"><?=$this->translate("AuthorityMainDescriptionBottomText")?></p>
<br>
</div>


<div class="sidebar right">
    <ul class="list-group contact-home">
<!--        <li class="list-group-item">  -->
            <h4> <?=$this->transEsc("Contact") ?></h4>
<!--		<ul class="contact-list">  -->
                	<span class="at"><a target="_blank" href="https://www2.bibb.de/bibbtools/de/ssl/kontakt.php?maid=628"><?=$this->transEsc("Libraryteam")?></a></span>


<!--		</ul> -->
<!--		 <ul class="contact-list"> -->
                        <span class="at"><a target="_blank" href="https://www2.bibb.de/bibbtools/de/ssl/kontakt.php?maid=4841"><?=$this->transEsc("Repositoryteam")?></a></span>
<!--                 </ul> -->
<!--         </li> -->
    </ul>
</div>
