PHP short tags und Zend->Laminas Kompatibilität für VuFind 10

This commit is contained in:
root 2026-02-24 09:19:58 +01:00
parent 4a95d65ba6
commit 88eb2a6b0b
94 changed files with 1994 additions and 2013 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
*.bak
*.20*
*.old
*.swp

View File

@ -1,4 +1,4 @@
<?
<?php
// Helper for preparation of author names
$names = explode(";", $this->authors);
@ -51,24 +51,24 @@ if ($pos !== false) {
}
?>
<? if (!empty($this->authors)): ?><?=$nameout?> <? endif; ?>
<? if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><? if ($this->periodAfterTitle): ?><? endif; ?><? endif; ?>
<?php if (!empty($this->authors)): ?><?=$nameout?> <?php endif; ?>
<?php if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><?php if ($this->periodAfterTitle): ?><?php endif; ?><?php endif; ?>
<!--<span style="font-style:italic;"> -->
In:
<?= $authors ?> <?= trim(str_replace(array(":", ","), array("&ndash;",""),$vol)) ?>
<? if (!empty($this->volume) || !empty($vol)): ?> <? endif; ?>
<?php if (!empty($this->volume) || !empty($vol)): ?> <?php endif; ?>
<!-- </span> -->
<? if (!empty($this->issue)): ?>
<?php if (!empty($this->issue)): ?>
(
<?=$this->escapeHtml($this->issue)?>
)
<? endif; ?>
<? if (!empty($this->volume) || !empty($this->issue)): ?>
<? endif; ?>
<? if (!empty($this->pubPlace)) : ?><?=$this->escapeHtml($this->pubPlace)?> <? endif; ?>
<? if (!empty($this->volume)): ?><?=$this->escapeHtml(str_replace(array("H.",",") ,array("",""),$this->volume))?>, <? endif; ?>
<? if (empty($this->volume)) : ?> <? if (!empty($this->year)) : ?> <?=$this->escapeHtml($this->year)?> <? endif; ?> <? endif; ?>
<? if (!empty($this->pageRange)) : ?> <?=$this->escapeHtml(str_replace("Seite","S.",$this->pageRange))?><?endif ; ?>
<? if (isset($this->doi)): ?>. doi:<?=$this->escapeHtml($this->doi)?><? endif; ?>
<?php endif; ?>
<?php if (!empty($this->volume) || !empty($this->issue)): ?>
<?php endif; ?>
<?php if (!empty($this->pubPlace)) : ?><?=$this->escapeHtml($this->pubPlace)?> <?php endif; ?>
<?php if (!empty($this->volume)): ?><?=$this->escapeHtml(str_replace(array("H.",",") ,array("",""),$this->volume))?>, <?php endif; ?>
<?php if (empty($this->volume)) : ?> <?php if (!empty($this->year)) : ?> <?=$this->escapeHtml($this->year)?> <?php endif; ?> <?php endif; ?>
<?php if (!empty($this->pageRange)) : ?> <?=$this->escapeHtml(str_replace("Seite","S.",$this->pageRange))?><?endif ; ?>
<?php if (isset($this->doi)): ?>. doi:<?=$this->escapeHtml($this->doi)?><?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Helper for preparation of author names
$names = explode(";", $this->authors);
@ -51,24 +51,24 @@ if ($pos !== false) {
}
?>
<? if (!empty($this->authors)): ?><?=$nameout?> <? endif; ?>
<? if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><? if ($this->periodAfterTitle): ?><? endif; ?><? endif; ?>
<?php if (!empty($this->authors)): ?><?=$nameout?> <?php endif; ?>
<?php if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><?php if ($this->periodAfterTitle): ?><?php endif; ?><?php endif; ?>
<!--<span style="font-style:italic;"> -->
In:
<?= $authors ?> <?= trim(str_replace(array(":", ","), array("&ndash;",""),$vol)) ?>
<? if (!empty($this->volume) || !empty($vol)): ?> <? endif; ?>
<?php if (!empty($this->volume) || !empty($vol)): ?> <?php endif; ?>
<!-- </span> -->
<? if (!empty($this->issue)): ?>
<?php if (!empty($this->issue)): ?>
(
<?=$this->escapeHtml($this->issue)?>
)
<? endif; ?>
<? if (!empty($this->volume) || !empty($this->issue)): ?>
<? endif; ?>
<? if (!empty($this->pubPlace)) : ?><?=$this->escapeHtml($this->pubPlace)?> <? endif; ?>
<? if (!empty($this->volume)): ?><?=$this->escapeHtml(str_replace(array("H.",",") ,array("",""),$this->volume))?>, <? endif; ?>
<? if (empty($this->volume)) : ?> <? if (!empty($this->year)) : ?> <?=$this->escapeHtml($this->year)?> <? endif; ?> <? endif; ?>
<? if (!empty($this->pageRange)) : ?> <?=$this->escapeHtml(str_replace("Seite","S.",$this->pageRange))?><?endif ; ?>
<? if (isset($this->doi)): ?>. doi:<?=$this->escapeHtml($this->doi)?><? endif; ?>
<?php endif; ?>
<?php if (!empty($this->volume) || !empty($this->issue)): ?>
<?php endif; ?>
<?php if (!empty($this->pubPlace)) : ?><?=$this->escapeHtml($this->pubPlace)?> <?php endif; ?>
<?php if (!empty($this->volume)): ?><?=$this->escapeHtml(str_replace(array("H.",",") ,array("",""),$this->volume))?>, <?php endif; ?>
<?php if (empty($this->volume)) : ?> <?php if (!empty($this->year)) : ?> <?=$this->escapeHtml($this->year)?> <?php endif; ?> <?php endif; ?>
<?php if (!empty($this->pageRange)) : ?> <?=$this->escapeHtml(str_replace("Seite","S.",$this->pageRange))?><?endif ; ?>
<?php if (isset($this->doi)): ?>. doi:<?=$this->escapeHtml($this->doi)?><?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Helper for preparation of author names
count($this->authors > 1) ? $names = explode(";", $this->authors) : $names[] = $this->authors .".";
@ -24,8 +24,8 @@ if (strcmp($this->role, "edt") == 0) {
?>
<? if (!empty($this->authors)): ?><?=$nameout?> <? endif; ?>
<? if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><? if ($this->periodAfterTitle): ?>. <? endif; ?><? endif; ?>
<? if (!empty($this->pubPlace)): ?><?=$this->escapeHtml($this->pubPlace)?> <? endif; ?>
<? if (!empty($this->year)): ?><?=$this->escapeHtml($this->year)?><? endif; ?>
<?php if (!empty($this->authors)): ?><?=$nameout?> <?php endif; ?>
<?php if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><?php if ($this->periodAfterTitle): ?>. <?php endif; ?><?php endif; ?>
<?php if (!empty($this->pubPlace)): ?><?=$this->escapeHtml($this->pubPlace)?> <?php endif; ?>
<?php if (!empty($this->year)): ?><?=$this->escapeHtml($this->year)?><?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Helper for preparation of author names
$names = explode(";", $this->authors);
@ -20,8 +20,8 @@ if (strcmp($this->role, "edt") == 0) {
?>
<? if (!empty($this->authors)): ?><?=$nameout?> <? endif; ?>
<? if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><? if ($this->periodAfterTitle): ?>. <? endif; ?><? endif; ?>
<? if (!empty($this->pubPlace)): ?><?=$this->escapeHtml($this->pubPlace)?> <? endif; ?>
<? if (!empty($this->year)): ?><?=$this->escapeHtml($this->year)?><? endif; ?>
<?php if (!empty($this->authors)): ?><?=$nameout?> <?php endif; ?>
<?php if (!empty($this->title)) : ?><?=$this->escapeHtml($this->title)?><?php if ($this->periodAfterTitle): ?>. <?php endif; ?><?php endif; ?>
<?php if (!empty($this->pubPlace)): ?><?=$this->escapeHtml($this->pubPlace)?> <?php endif; ?>
<?php if (!empty($this->year)): ?><?=$this->escapeHtml($this->year)?><?php endif; ?>

View File

@ -1,16 +1,16 @@
<?
<?php
$this->headScript()->appendFile('facets.js');
// Save results/options to $this so they are available to sub-templates:
$this->results = $results = $this->recommend->getResults();
$this->options = $options = $this->searchOptions($this->searchClassId);
?>
<? if ($results->getResultTotal() > 0): ?>
<?php if ($results->getResultTotal() > 0): ?>
<div class="narrow-search"><h4><?=$this->transEsc(isset($this->overrideSideFacetCaption) ? $this->overrideSideFacetCaption : 'Narrow Search')?></h4></div>
<? endif; ?>
<? $checkboxFilters = $results->getParams()->getCheckboxFacets(); ?>
<? $checkboxesShown = false; ?>
<? if (count($checkboxFilters) > 0):
<?php endif; ?>
<?php $checkboxFilters = $results->getParams()->getCheckboxFacets(); ?>
<?php $checkboxesShown = false; ?>
<?php if (count($checkboxFilters) > 0):
foreach ($checkboxFilters as $current) {
if ($results->getResultTotal() > 0 || $current['selected'] || $current['alwaysVisible']) {
$checkboxesShown = true;
@ -22,54 +22,54 @@
<div class="checkboxFilter">
<?=$this->context($this)->renderInContext('Recommend/SideFacets/checkbox-filters.phtml', ['checkboxFilters' => $checkboxFilters, 'results' => $results]); ?>
</div>
<? endif; ?>
<? endif; ?>
<? $extraFilters = isset($this->extraSideFacetFilters) ? $this->extraSideFacetFilters : []; ?>
<? $collapsedFacets = $this->recommend->getCollapsedFacets() ?>
<? $filterList = array_merge($results->getParams()->getFilterList(true), $extraFilters); ?>
<? if (!empty($filterList)): ?>
<?php endif; ?>
<?php endif; ?>
<?php $extraFilters = isset($this->extraSideFacetFilters) ? $this->extraSideFacetFilters : []; ?>
<?php $collapsedFacets = $this->recommend->getCollapsedFacets() ?>
<?php $filterList = array_merge($results->getParams()->getFilterList(true), $extraFilters); ?>
<?php if (!empty($filterList)): ?>
<?=$this->context($this)->renderInContext('Recommend/SideFacets/filter-list.phtml', [
'collapsedFacets' => $collapsedFacets,
'extraFilters' => $extraFilters,
'filterList' => $filterList,
]); ?>
<? endif; ?>
<?php endif; ?>
<?= isset($this->sideFacetExtraControls) ? $this->sideFacetExtraControls : '' ?>
<? $sideFacetSet = $this->recommend->getFacetSet(); $rangeFacets = $this->recommend->getAllRangeFacets(); ?>
<? $hierarchicalFacets = $this->recommend->getHierarchicalFacets() ?>
<? $hierarchicalFacetSortOptions = $this->recommend->getHierarchicalFacetSortOptions() ?>
<? if (!empty($sideFacetSet) && $results->getResultTotal() > 0): ?>
<? foreach ($sideFacetSet as $title => $cluster): ?>
<?php $sideFacetSet = $this->recommend->getFacetSet(); $rangeFacets = $this->recommend->getAllRangeFacets(); ?>
<?php $hierarchicalFacets = $this->recommend->getHierarchicalFacets() ?>
<?php $hierarchicalFacetSortOptions = $this->recommend->getHierarchicalFacetSortOptions() ?>
<?php if (!empty($sideFacetSet) && $results->getResultTotal() > 0): ?>
<?php foreach ($sideFacetSet as $title => $cluster): ?>
<div class="facet-group" id="side-panel-<?=$this->escapeHtmlAttr($title) ?>">
<div class="title<? if(in_array($title, $collapsedFacets)): ?> collapsed<? endif ?>" data-toggle="collapse" href="#side-collapse-<?=$this->escapeHtmlAttr($title) ?>" >
<div class="title<?php if(in_array($title, $collapsedFacets)): ?> collapsed<?php endif ?>" data-toggle="collapse" href="#side-collapse-<?=$this->escapeHtmlAttr($title) ?>" >
<?=$this->transEsc($cluster['label'])?>
</div>
<div id="side-collapse-<?=$this->escapeHtmlAttr($title) ?>" class="collapse<? if(!in_array($title, $collapsedFacets)): ?> in<? endif ?>">
<? if (isset($rangeFacets[$title])): ?>
<div id="side-collapse-<?=$this->escapeHtmlAttr($title) ?>" class="collapse<?php if(!in_array($title, $collapsedFacets)): ?> in<?php endif ?>">
<?php if (isset($rangeFacets[$title])): ?>
<?=$this->context($this)->renderInContext('Recommend/SideFacets/range-slider.phtml', ['title' => $title, 'facet' => $rangeFacets[$title]]); ?>
<? else: ?>
<? $contextVars = [
<?php else: ?>
<?php $contextVars = [
'allowExclude' => $this->recommend->excludeAllowed($title),
'title' => $title,
'sortOptions' => isset($hierarchicalFacetSortOptions[$title]) ? $hierarchicalFacetSortOptions[$title] : '',
'collapsedFacets' => $collapsedFacets
]; ?>
<? if (in_array($title, $hierarchicalFacets)): ?>
<?php if (in_array($title, $hierarchicalFacets)): ?>
<?=$this->context($this)->renderInContext('Recommend/SideFacets/hierarchical-facet.phtml', $contextVars); ?>
<noscript>
<? endif; ?>
<? $contextVars = [
<?php endif; ?>
<?php $contextVars = [
'options' => $options,
'allowExclude' => $this->recommend->excludeAllowed($title),
'facets_before_more' => $this->recommend->getShowMoreSetting($title),
'showMoreInLightbox' => $this->recommend->getShowInLightboxSetting($title)
]; ?>
<?=$this->context($this)->renderInContext('Recommend/SideFacets/cluster-list.phtml', array_merge($contextVars, ['title' => $title, 'cluster' => $cluster])); ?>
<? if (in_array($title, $hierarchicalFacets)): ?>
<?php if (in_array($title, $hierarchicalFacets)): ?>
</noscript>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,6 +1,6 @@
<? foreach ($checkboxFilters as $current): ?>
<a class="checkbox-filter<? if(!($results->getResultTotal() > 0 || $current['selected'] || $current['alwaysVisible'])): ?> hidden<? endif; ?>" href="<?=$current['selected'] ? $results->getUrlQuery()->removeFilter($current['filter']) : $results->getUrlQuery()->addFilter($current['filter']);?>">
<?php foreach ($checkboxFilters as $current): ?>
<a class="checkbox-filter<?php if(!($results->getResultTotal() > 0 || $current['selected'] || $current['alwaysVisible'])): ?> hidden<?php endif; ?>" href="<?=$current['selected'] ? $results->getUrlQuery()->removeFilter($current['filter']) : $results->getUrlQuery()->addFilter($current['filter']);?>">
<i class="fa fa-<?=$current['selected'] ? 'check-square-o' : 'square-o' ?>"></i>
<?=$this->transEsc($current['desc']) ?>
</a>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,73 +1,73 @@
<? $idAndClass = 'id="more-narrowGroupHidden-'.$this->escapeHtmlAttr($this->title).'" class="facet narrow-toggle"'; ?>
<? $moreClass = 'narrowGroupHidden-'.$this->escapeHtmlAttr($this->title).' hidden'; ?>
<? foreach ($this->cluster['list'] as $i => $thisFacet): ?>
<?php $idAndClass = 'id="more-narrowGroupHidden-'.$this->escapeHtmlAttr($this->title).'" class="facet narrow-toggle"'; ?>
<?php $moreClass = 'narrowGroupHidden-'.$this->escapeHtmlAttr($this->title).' hidden'; ?>
<?php foreach ($this->cluster['list'] as $i => $thisFacet): ?>
<?
if(empty($thisFacet['displayText'])) {
$thisFacet['displayText'] = "-";
}
?>
<? /* MORE link */ ?>
<? if ($i == $this->facets_before_more): ?>
<? if ($facetLightbox = $this->options->getFacetListAction()): ?>
<? $moreUrl = $this->url($facetLightbox) . $results->getUrlQuery()->getParams() . '&amp;facet=' . $this->title . '&amp;facetop=' . $thisFacet['operator'] . '&amp;facetexclude=' . ($this->allowExclude ? 1 : 0); ?>
<? else: ?>
<? $moreUrl = '#'; ?>
<? endif; ?>
<? if (($this->showMoreInLightbox && $this->showMoreInLightbox !== 'more') && $facetLightbox): ?>
<?php /* MORE link */ ?>
<?php if ($i == $this->facets_before_more): ?>
<?php if ($facetLightbox = $this->options->getFacetListAction()): ?>
<?php $moreUrl = $this->url($facetLightbox) . $results->getUrlQuery()->getParams() . '&amp;facet=' . $this->title . '&amp;facetop=' . $thisFacet['operator'] . '&amp;facetexclude=' . ($this->allowExclude ? 1 : 0); ?>
<?php else: ?>
<?php $moreUrl = '#'; ?>
<?php endif; ?>
<?php if (($this->showMoreInLightbox && $this->showMoreInLightbox !== 'more') && $facetLightbox): ?>
<a <?=$idAndClass ?> data-lightbox href="<?=$moreUrl ?>" rel="nofollow"><?=$this->transEsc('more')?> ...</a>
<? break; ?>
<? endif; ?>
<?php break; ?>
<?php endif; ?>
<a <?=$idAndClass ?> href="<?=$moreUrl ?>" onclick="return moreFacets('narrowGroupHidden-<?=$this->escapeHtmlAttr($this->title) ?>')" rel="nofollow"><?=$this->transEsc('more')?> ...</a>
<? endif; ?>
<?php endif; ?>
<?
$affectiveURL = $thisFacet['isApplied']
? $this->currentPath() . $results->getUrlQuery()->removeFacet($this->title, $thisFacet['value'], $thisFacet['operator'])
: $this->currentPath() . $results->getUrlQuery()->addFacet($this->title, $thisFacet['value'], $thisFacet['operator']);
?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<div class="facet excludable facet<?=$thisFacet['operator'] ?><? if ($thisFacet['isApplied']): ?>active<? endif; ?><? if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<? $excludeURL = $thisFacet['isApplied']
<?php if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<div class="facet excludable facet<?=$thisFacet['operator'] ?><?php if ($thisFacet['isApplied']): ?>active<?php endif; ?><?php if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<?php $excludeURL = $thisFacet['isApplied']
? $this->currentPath() . $results->getUrlQuery()->removeFacet($this->title, $thisFacet['value'], $thisFacet['operator'])->addFacet($this->title, $thisFacet['value'], 'NOT')
: $this->currentPath() . $results->getUrlQuery()->addFacet($this->title, $thisFacet['value'], 'NOT');
?>
<a href="<?=$excludeURL ?>" title="<?=$this->transEsc('exclude_facet') ?>" class="exclude"><i class="fa fa-times" aria-hidden="true"></i></a>
<? else: ?>
<a href="<?=$affectiveURL ?>" class="facet facet<?=$thisFacet['operator'] ?><? if ($thisFacet['isApplied']): ?>active<? endif; ?><? if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<? endif; ?>
<?php else: ?>
<a href="<?=$affectiveURL ?>" class="facet facet<?=$thisFacet['operator'] ?><?php if ($thisFacet['isApplied']): ?>active<?php endif; ?><?php if ($i >= $this->facets_before_more): ?> <?=$moreClass ?><?endif ?>">
<?php endif; ?>
<? if ($thisFacet['isApplied']): ?>
<?php if ($thisFacet['isApplied']): ?>
<span class="status"><i class="fa fa-check" aria-hidden="true"></i></span>
<? else: ?>
<?php else: ?>
<span class="badge"><?=$this->localizedNumber($thisFacet['count'])?></span>
<? endif; ?>
<?php endif; ?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<?php if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<a href="<?=$affectiveURL ?>" class="text">
<? else: ?>
<?php else: ?>
<span class="text">
<? endif; ?>
<?php endif; ?>
<? if ($thisFacet['operator'] == 'OR'): ?>
<?php if ($thisFacet['operator'] == 'OR'): ?>
<i class="fa <?=$thisFacet['isApplied'] ? 'fa-check-square-o' : 'fa-square-o' ?>" aria-hidden="true"></i>
<? endif; ?>
<?php endif; ?>
<?=$this->transEsc($thisFacet['displayText'])?>
<? if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
<?php if (!$thisFacet['isApplied'] && $this->allowExclude): ?>
</a>
</div>
<? else: ?>
<?php else: ?>
</span>
</a>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<? /* LESS and SEE MORE links */ ?>
<? if ($i >= $this->facets_before_more): ?>
<? if ($this->showMoreInLightbox === 'more' && $facetLightbox = $options->getFacetListAction()): ?>
<? $moreUrl = $this->url($facetLightbox) . $results->getUrlQuery()->getParams().'&amp;facet='.$this->title.'&amp;facetop='.$thisFacet['operator'].'&amp;facetexclude='.($this->allowExclude ? 1 : 0); ?>
<?php /* LESS and SEE MORE links */ ?>
<?php if ($i >= $this->facets_before_more): ?>
<?php if ($this->showMoreInLightbox === 'more' && $facetLightbox = $options->getFacetListAction()): ?>
<?php $moreUrl = $this->url($facetLightbox) . $results->getUrlQuery()->getParams().'&amp;facet='.$this->title.'&amp;facetop='.$thisFacet['operator'].'&amp;facetexclude='.($this->allowExclude ? 1 : 0); ?>
<a class="facet narrow-toggle <?=$moreClass ?>" data-lightbox href="<?=$moreUrl ?>" rel="nofollow"><?=$this->transEsc('see all')?> ...</a>
<? endif; ?>
<?php endif; ?>
<a class="facet narrow-toggle <?=$moreClass ?>" href="#" onclick="return lessFacets('narrowGroupHidden-<?=$this->escapeHtmlAttr($this->title) ?>')"><?=$this->transEsc('less')?> ...</a>
<? endif; ?>
<?php endif; ?>

View File

@ -1,7 +1,7 @@
<div class="facet-group active-filters">
<div class="title"><?=$this->transEsc('Remove Filters')?></div>
<? foreach ($filterList as $field => $filters): ?>
<? foreach ($filters as $i => $filter): ?>
<?php foreach ($filterList as $field => $filters): ?>
<?php foreach ($filters as $i => $filter): ?>
<?
$index = isset($filter['field']) ? array_search($filter['field'], $collapsedFacets) : false;
if ($index !== false) {
@ -18,10 +18,10 @@
?>
<a class="facet" href="<?=$removeLink ?>" title="<?=$this->transEsc('clear_tag_filter') ?>">
<span class="status"><i class="fa fa-times" aria-hidden="true"></i></span>
<? if ($filter['operator'] == 'NOT'): ?><?=$this->transEsc('NOT') ?><? endif; ?>
<? if ($filter['operator'] == 'OR' && $i > 0): ?><?=$this->transEsc('OR') ?><? endif; ?>
<?php if ($filter['operator'] == 'NOT'): ?><?=$this->transEsc('NOT') ?><?php endif; ?>
<?php if ($filter['operator'] == 'OR' && $i > 0): ?><?=$this->transEsc('OR') ?><?php endif; ?>
<?=$this->transEsc($field) ?>: <?=$this->escapeHtml($filter['displayText']) ?>
</a>
<? endforeach; ?>
<? endforeach; ?>
<?php endforeach; ?>
<?php endforeach; ?>
</div>

View File

@ -3,7 +3,7 @@
<?=$results->getUrlQuery()->asHiddenFields(['page' => "/./", 'filter' => "/^{$this->title}:.*/"])?>
<input type="hidden" name="<?=$this->escapeHtmlAttr($this->facet['type'])?>range[]" value="<?=$this->escapeHtmlAttr($this->title)?>"/>
<div class="date-fields">
<? $extraInputAttribs = ($this->facet['type'] == 'date') ? 'maxlength="4" ' : ''; ?>
<?php $extraInputAttribs = ($this->facet['type'] == 'date') ? 'maxlength="4" ' : ''; ?>
<div class="date-from">
<input type="text" value="<?=$this->transEsc('date_from')?>" class="form-control" name="<?=$this->escapeHtmlAttr($this->title)?>from" id="<?=$this->escapeHtmlAttr($this->title)?>from" value="<?=isset($this->facet['values'][0])?$this->escapeHtmlAttr($this->facet['values'][0]):''?>" <?=$extraInputAttribs?>/>
</div>
@ -11,15 +11,15 @@
<input type="text" value="<?=$this->transEsc('date_to')?>" class="form-control" name="<?=$this->escapeHtmlAttr($this->title)?>to" id="<?=$this->escapeHtmlAttr($this->title)?>to" value="<?=isset($this->facet['values'][1])?$this->escapeHtmlAttr($this->facet['values'][1]):''?>" <?=$extraInputAttribs?>/>
</div>
</div>
<? if ($this->facet['type'] == 'date'): ?>
<?php if ($this->facet['type'] == 'date'): ?>
<div class="slider-container"><input type="text" class="hidden" id="<?=$this->escapeHtmlAttr($this->title)?><?=$this->escapeHtml($this->facet['type'])?>Slider"/></div>
<? endif; ?>
<?php endif; ?>
<input class="btn btn-default" type="submit" value="<?=$this->transEsc('Set')?>"/>
</form>
</div>
<? if ($this->facet['type'] == 'date'): ?>
<? $this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); ?>
<? $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?>
<?php if ($this->facet['type'] == 'date'): ?>
<?php $this->headScript()->appendFile('vendor/bootstrap-slider.min.js'); ?>
<?php $this->headLink()->appendStylesheet('vendor/bootstrap-slider.min.css'); ?>
<?
$min = !empty($this->facet['values'][0]) ? min($this->facet['values'][0], 1400) : 1400;
$future = date('Y', time()+31536000); // next year
@ -59,5 +59,5 @@ $('#{$this->escapeHtmlAttr($this->title)}from, #{$this->escapeHtmlAttr($this->ti
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<? endif; ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<?php endif; ?>

View File

@ -1,20 +1,20 @@
<?
<?php
$searchTabs = is_object($this->params)
? $this->searchtabs()->getTabConfigForParams($this->params) : [];
?>
<? if (count($searchTabs) > 0): ?>
<?php if (count($searchTabs) > 0): ?>
<div class="alert alert-info">
<? if (strcmp($this->translate($this->recommend->getActiveTab($searchTabs)['label']), "Gesamtbestand") == 0) return; ?>
<?php if (strcmp($this->translate($this->recommend->getActiveTab($searchTabs)['label']), "Gesamtbestand") == 0) return; ?>
<?=$this->transEsc('nohit_change_tab', ['%%activeTab%%' => $this->translate($this->recommend->getActiveTab($searchTabs)['label'])])?>
<ul>
<? $inactiveTabs = $this->recommend->getInactiveTabs($searchTabs); ?>
<? foreach ($inactiveTabs as $tab): ?>
<?php $inactiveTabs = $this->recommend->getInactiveTabs($searchTabs); ?>
<?php foreach ($inactiveTabs as $tab): ?>
<li>
<? if (!$tab['selected']): ?><a href="<?=$this->escapeHtmlAttr($tab['url'])?>"><? endif; ?>
<?php if (!$tab['selected']): ?><a href="<?=$this->escapeHtmlAttr($tab['url'])?>"><?php endif; ?>
<?=$this->transEsc($tab['label']); ?>
<? if (!$tab['selected']): ?></a><? endif; ?>
<?php if (!$tab['selected']): ?></a><?php endif; ?>
</li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
<? endif; ?>
<?php endif; ?>

View File

@ -1,18 +1,18 @@
<?
<?php
// TODO: This file needs love
$topFacetSet = $this->recommend->getTopFacetSet();
$topFacetSettings = $this->recommend->getTopFacetSettings();
$results = $this->recommend->getResults();
?>
<? if (isset($topFacetSet)): ?>
<? foreach($topFacetSet as $title => $cluster): ?>
<? $moreClass = ' NarrowGroupHidden_'.$this->escapeHtml($title).' hidden'; ?>
<? $allowExclude = $this->recommend->excludeAllowed($title); ?>
<?php if (isset($topFacetSet)): ?>
<?php foreach($topFacetSet as $title => $cluster): ?>
<?php $moreClass = ' NarrowGroupHidden_'.$this->escapeHtml($title).' hidden'; ?>
<?php $allowExclude = $this->recommend->excludeAllowed($title); ?>
<div class="top-facets">
<? $limit = $topFacetSettings['rows'] * $topFacetSettings['cols']; ?>
<? foreach($cluster['list'] as $index => $thisFacet): ?>
<?php $limit = $topFacetSettings['rows'] * $topFacetSettings['cols']; ?>
<?php foreach($cluster['list'] as $index => $thisFacet): ?>
<span class="facet <?=$index > $limit ? $moreClass : '' ?>">
<? if ($thisFacet['isApplied']):
<?php if ($thisFacet['isApplied']):
if (isset($thisFacet['specialType']) && $thisFacet['specialType'] == 'keyword') {
$removeLink = $this->currentPath().$results->getUrlQuery()->replaceTerm($thisFacet['value'], '');
} else {
@ -21,31 +21,31 @@
<a href="<?=$removeLink ?>" class="applied">
<?=$this->escapeHtml($thisFacet['displayText'])?> <i class="fa fa-check" aria-hidden="true"></i><!--
--></a>
<? else: ?>
<?php else: ?>
<span class="badge"><?=$this->localizedNumber($thisFacet['count']) ?>
<? if ($allowExclude): ?>
<?php if ($allowExclude): ?>
<a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], 'NOT')?>" title="<?=$this->transEsc('exclude_facet')?>"><i class="fa fa-times" aria-hidden="true"></i></a>
<? endif; ?>
<?php endif; ?>
</span>
<a href="<?=$this->currentPath().$results->getUrlQuery()->addFacet($title, $thisFacet['value'], $thisFacet['operator'])?>">
<?=$this->escapeHtml($thisFacet['displayText'])?><!--
--></a>
<? endif; ?>
<?php endif; ?>
</span>
<? /* More link */ ?>
<? if ($index == $limit): ?>
<?php /* More link */ ?>
<?php if ($index == $limit): ?>
<span id="more-NarrowGroupHidden_<?=$this->escapeHtml($title)?>" class="narrow-toggle">
<a href="#" onclick="moreFacets('NarrowGroupHidden_<?=$this->escapeHtml($title)?>'); return false;">
<?=$this->transEsc('more') ?> ...
</a>
</span>
<? endif; ?>
<? endforeach; ?>
<? if (count($cluster['list']) > $limit): ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if (count($cluster['list']) > $limit): ?>
<a class="narrow-toggle <?=$moreClass ?>" href="#" onclick="lessFacets('NarrowGroupHidden_<?=$title ?>'); return false;">
<?=$this->transEsc('less') ?> ...
</a>
<? endif; ?>
<?php endif; ?>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up some convenience variables:
$id = $this->driver->getUniqueId();
$source = $this->driver->getSourceIdentifier();
@ -19,61 +19,61 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<div class="result<? if($this->driver->supportsAjaxStatus()): ?> ajaxItem<? endif ?>">
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<div class="result<?php if($this->driver->supportsAjaxStatus()): ?> ajaxItem<?php endif ?>">
<input type="hidden" value="<?=$this->escapeHtmlAttr($id) ?>" class="hiddenId"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($source) ?>" class="hiddenSource"/>
<?=$this->record($this->driver)->getCheckbox()?>
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif; ?>
<?php endif; ?>
<div class="media-body">
<div class="result-body">
<div class="resultItemLine1">
<? $missing = $this->driver instanceof \VuFind\RecordDriver\Missing; ?>
<? if (!$missing): ?><a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>"><? endif; ?>
<?php $missing = $this->driver instanceof \VuFind\RecordDriver\Missing; ?>
<?php if (!$missing): ?><a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>"><?php endif; ?>
<span class="title"><?=$this->record($this->driver)->getTitleHtml()?></span>
<? if (!$missing): ?></a><? endif; ?>
<?php if (!$missing): ?></a><?php endif; ?>
</div>
<div class="resultItemLine2">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<? $summAuthors = $this->driver->getPrimaryAuthors(); if (!empty($summAuthors)): ?>
<?php else: ?>
<?php $summAuthors = $this->driver->getPrimaryAuthors(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $summAuthor)?>"><?=$this->escapeHtml($summAuthor)?></a><?=($i + 1 < $authorCount ? ';' : '') ?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br/>' : ''?>
<?=/* TODO: handle highlighting more elegantly here */ $this->transEsc('Published in') . ' <a href="' . $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)) . '">' . $this->highlight($journalTitle) . '</a>';?>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br/>' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (false && !empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (false && !empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="last">
<? if(!$this->driver->isCollection()) {
<?php if(!$this->driver->isCollection()) {
if ($snippet = $this->driver->getHighlightedSnippet()) {
if (!empty($snippet['caption'])) {
echo '<strong>' . $this->transEsc($snippet['caption']) . ':</strong> ';
@ -84,37 +84,37 @@
}
} ?>
<? $listTags = ($this->usertags()->getMode() !== 'disabled') ? $this->driver->getTags(
<?php $listTags = ($this->usertags()->getMode() !== 'disabled') ? $this->driver->getTags(
null === $list_id ? true : $list_id, // get tags for all lists if no single list is selected
$user_id, 'tag'
) : array();
?>
<? if (count($listTags) > 0): ?>
<?php if (count($listTags) > 0): ?>
<strong><?=$this->transEsc('Your Tags')?>:</strong>
<? foreach ($listTags as $tag): ?>
<?php foreach ($listTags as $tag): ?>
<a href="<?=$this->currentPath() . $results->getUrlQuery()->addFacet('tags', $tag->tag)?>"><?=$this->escapeHtml($tag->tag)?></a>
<? endforeach; ?>
<?php endforeach; ?>
<br/>
<? endif; ?>
<? $listNotes = $this->driver->getListNotes($list_id, $user_id); ?>
<? if (count($listNotes) > 0): ?>
<?php endif; ?>
<?php $listNotes = $this->driver->getListNotes($list_id, $user_id); ?>
<?php if (count($listNotes) > 0): ?>
<strong><?=$this->transEsc('Notes')?>:</strong>
<? if (count($listNotes) > 1): ?><br/><? endif; ?>
<? foreach ($listNotes as $note): ?>
<?php if (count($listNotes) > 1): ?><br/><?php endif; ?>
<?php foreach ($listNotes as $note): ?>
<?=$this->escapeHtml($note)?><br/>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? if (count($this->lists) > 0): ?>
<?php if (count($this->lists) > 0): ?>
<strong><?=$this->transEsc('Saved in')?>:</strong>
<? $i=0;foreach($this->lists as $current): ?>
<a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><? if($i++ < count($this->lists)-1): ?>,<? endif; ?>
<? endforeach; ?>
<?php $i=0;foreach($this->lists as $current): ?>
<a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><?php if($i++ < count($this->lists)-1): ?>,<?php endif; ?>
<?php endforeach; ?>
<br/>
<? endif; ?>
<?php endif; ?>
<div class="callnumAndLocation ajax-availability hidden">
<? if ($this->driver->supportsAjaxStatus()): ?>
<?php if ($this->driver->supportsAjaxStatus()): ?>
<strong class="hideIfDetailed"><?=$this->transEsc('Call Number')?>:</strong>
<span class="callnumber ajax-availability hidden">
<?=$this->transEsc('Loading')?>...<br/>
@ -124,14 +124,14 @@
<?=$this->transEsc('Loading')?>...
</span>
<div class="locationDetails"></div>
<? else: ?>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php else: ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<strong><?=$this->transEsc('Call Number')?>:</strong> <?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -142,66 +142,66 @@
if ($openUrlActive || !empty($urls)):
?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<br/>
<?=$openUrl->renderTemplate()?>
<? endif;?>
<?php endif;?>
<? if (!is_array($urls)) { $urls = array(); }
<?php if (!is_array($urls)) { $urls = array(); }
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<? if (strncmp("https://bibb-dspace.bibb.de/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/handle/BIBB")) == 0) continue; ?>
<? if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $title = $this->driver->getMainTitle(); ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/handle/BIBB")) == 0) continue; ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $title = $this->driver->getMainTitle(); ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<? $current['url'] = "https://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<? $current['desc'] = "URN"; ?>
<? endif; ?>
<? if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<?php $current['url'] = "https://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<?php $current['desc'] = "URN"; ?>
<?php endif; ?>
<?php if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (($start = strrpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<?php if (($start = strrpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<a href="<?=$this->escapeHtmlAttr(trim(substr($this->proxyUrl($current['url']),0, $start-1)))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc(trim(substr($this->proxyUrl($current['url']),$start+1,strlen($this->proxyUrl($current['url']))-($start+2)))) : $this->escapeHtml($current['desc'])?></a><br/>
<? endif; ?>
<?php endif; ?>
<? if (($start = strrpos($this->proxyUrl($current['url']), "[")) === false) : ?>
<?php if (($start = strrpos($this->proxyUrl($current['url']), "[")) === false) : ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a><br/>
<? endif ; ?>
<? if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
<?php endif ; ?>
<?php if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
onmouseover="this.style.zoom='0.8'" onmouseout="this.style.zoom='0.2'" />
<? endif; ?>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<br/>
<?=$this->record($this->driver)->getFormatList() ?>
<? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<?php if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<span class="status ajax-availability hidden"><?=$this->transEsc('Loading')?>...</span>
<br/><br/>
<? endif; ?>
<?php endif; ?>
<?=$this->record($this->driver)->getPreviews()?>
</div>
</div>
<div class="result-links hidden-print">
<i class="fa fa-fw fa-edit" aria-hidden="true"></i> <a href="<?=$this->url('myresearch-edit')?>?id=<?=urlencode($id)?>&amp;source=<?=urlencode($source)?><? if (!is_null($list_id)):?>&amp;list_id=<?=urlencode($list_id)?><? endif; ?>" class="edit tool"><?=$this->transEsc('Edit')?></a><br/>
<? /* Use a different delete URL if we're removing from a specific list or the overall favorites: */
<i class="fa fa-fw fa-edit" aria-hidden="true"></i> <a href="<?=$this->url('myresearch-edit')?>?id=<?=urlencode($id)?>&amp;source=<?=urlencode($source)?><?php if (!is_null($list_id)):?>&amp;list_id=<?=urlencode($list_id)?><?php endif; ?>" class="edit tool"><?=$this->transEsc('Edit')?></a><br/>
<?php /* Use a different delete URL if we're removing from a specific list or the overall favorites: */
$deleteUrl = null === $list_id
? $this->url('myresearch-favorites')
: $this->url('userList', array('id' => $list_id));
@ -222,8 +222,8 @@
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif; ?>
<?php endif; ?>
</div>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
$heading = $this->driver->getTitle();
if (empty($heading)) {
$heading = $this->translate('Heading unavailable.');
@ -47,21 +47,21 @@
<div class="title-container">
<a class="title" href="https://lit.bibb.de/vufind/Search/Results?lookfor=<?= rawurlencode('"' .$heading .'"') ?>&type=<?= $searchFields[ $authorityType] ?>&limit=20&sort=year"><?= $this->escapeHTML($heading) ?></a>
<span style="font-size:17px">(<?= $this->transEsc($authorityType) ?>)</span>
<? //if ($authorityType == "Subject") : ?>
<!-- <span style="font-size:17px">(<? // = $occurance ?>)</span> -->
<? // endif ; ?>
<? if (!empty($coreFields['Scopenote'])) : ?>
<?php //if ($authorityType == "Subject") : ?>
<!-- <span style="font-size:17px">(<?php // = $occurance ?>)</span> -->
<?php // endif ; ?>
<?php if (!empty($coreFields['Scopenote'])) : ?>
<p>
<span style="font-size:17px;font-weight:normal"><?=$this->escapeHtml($coreFields['Scopenote'])?></span>
<p>
<? endif ; ?>
<? if (!empty($useForText)) : ?>
<?php endif ; ?>
<?php if (!empty($useForText)) : ?>
<p><span style="font-size:17px;font-weight:bold"><?= $this->transEsc('Use for') ?>: </span>
<span style="font-size:17px;"> <?= $useForText ?> </span>
<? endif ; ?>
<?php endif ; ?>
<? $c= empty($coreFields['See also']) && empty($coreFields['Related term']) && empty($coreFields['Narrower term']) && empty($coreFields['Broader term']) && empty($coreFields['Used later']) && empty($coreFields['Used earlier']) ?>
<? if ($c === false) : ?>
<?php $c= empty($coreFields['See also']) && empty($coreFields['Related term']) && empty($coreFields['Narrower term']) && empty($coreFields['Broader term']) && empty($coreFields['Used later']) && empty($coreFields['Used earlier']) ?>
<?php if ($c === false) : ?>
<table class="table table-striped">
<?//= $c ?>
<table width="99%">
@ -76,26 +76,26 @@
<th>&nbsp;</th>
<th><?=$this->transEsc("Term")?></th>
</tr>
<? foreach ($coreFields as $key => $current): ?>
<? $displayed = false ?>
<? if ($key != "Scopenote" && $key != "Use for" && $key != "Authority type") : ?>
<? if ($displayed === false) : ?>
<? if (!empty ($coreFields[$key] )) : ?>
<?php foreach ($coreFields as $key => $current): ?>
<?php $displayed = false ?>
<?php if ($key != "Scopenote" && $key != "Use for" && $key != "Authority type") : ?>
<?php if ($displayed === false) : ?>
<?php if (!empty ($coreFields[$key] )) : ?>
<tr><td><?=$this->transEsc($key)?>:</td><td></td><td>
<? $displayed = true; ?>
<? endif; ?>
<? endif ; ?>
<? foreach($current as $entry) : ?>
<? $tmp = explode("|", $entry) ; list($id, $text) = $tmp; ?>
<?php $displayed = true; ?>
<?php endif; ?>
<?php endif ; ?>
<?php foreach($current as $entry) : ?>
<?php $tmp = explode("|", $entry) ; list($id, $text) = $tmp; ?>
<a href="<?=$id?>" class="title"><?=$this->escapeHtml($text)?></a><p>
<? endforeach; ?>
<?php endforeach; ?>
</td></tr>
<? endif ; ?>
<? endforeach ;?>
<?php endif ; ?>
<?php endforeach ;?>
</tr>
</tbody>
</table>
<? endif ; ?>
<?php endif ; ?>
</table>
</div>
<?/* End Main Details */?>

View File

@ -129,11 +129,11 @@ class SolrDefault extends AbstractBase
/**
* Constructor
*
* @param \Zend\Config\Config $mainConfig VuFind main configuration (omit for
* @param \Laminas\Config\Config $mainConfig VuFind main configuration (omit for
* built-in defaults)
* @param \Zend\Config\Config $recordConfig Record-specific configuration file
* @param \Laminas\Config\Config $recordConfig Record-specific configuration file
* (omit to use $mainConfig as $recordConfig)
* @param \Zend\Config\Config $searchSettings Search-specific configuration file
* @param \Laminas\Config\Config $searchSettings Search-specific configuration file
*/
public function __construct($mainConfig = null, $recordConfig = null,
$searchSettings = null

View File

@ -21,60 +21,60 @@
if (strlen(trim($filetype)) == 0) $filetype = "PDF";
if (strcmp(trim(strtoupper($filetype)), "ADOBE PDF") == 0) $filetype = "PDF";
?>
<? if ($QRCode || $cover || $preview): ?>
<?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?>
<?php /* Display thumbnail if appropriate: */ ?>
<?php if($cover): ?>
<?=$cover?>
<? endif; ?>
<?php endif; ?>
<? /* Display qrcode if appropriate: */ ?>
<? if($QRCode): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if($QRCode): ?>
<span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span>
<? endif; ?>
<?php endif; ?>
<br />
<? if(isset($url['url']) && strlen($url['url']) > 10): ?>
<?php if(isset($url['url']) && strlen($url['url']) > 10): ?>
<form action="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($url['url'])))?>">
<? //if (strcmp($url['desc'], "Inhaltsverzeichnis") != 0 && strncmp(strcmp($url['desc'],"Volltext über anderen Anbieter", strlen("Volltext über anderen Anbieter")) !=0)) : ?>
<? if ($displayDownloadButton) : ?>
<?php //if (strcmp($url['desc'], "Inhaltsverzeichnis") != 0 && strncmp(strcmp($url['desc'],"Volltext über anderen Anbieter", strlen("Volltext über anderen Anbieter")) !=0)) : ?>
<?php if ($displayDownloadButton) : ?>
<button type="submit" class="btn btn-lg" style="height:30px;width:130px; background-color:#ffce53;color:#5e6c78;"><i class="fa fa-download" aria-hidden="true"></i> - <?= $filetype ?></button>
<? endif; ?>
<?php endif; ?>
</form>
<? endif ; ?>
<?php endif ; ?>
<? // if you have a preview tab but want to move or remove the preview link
<?php // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into
// getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?>
<? if ($preview): ?>
<?php if ($preview): ?>
<div class="record-previews">
<?=$preview?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
<div class="media-body">
<h3 property="name"><?=$this->escapeHtml($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())?></h3>
<? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<? if ($summary): ?>
<?php $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p>
<? if(strlen($summary) > 300): ?>
<?php if(strlen($summary) > 300): ?>
<p><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
<?/* Display Main Details */?>
<?
@ -83,17 +83,17 @@
//print_r($coreFields);
?>
<? if (!empty($coreFields)) : ?>
<?php if (!empty($coreFields)) : ?>
<table class="table table-striped" summary="<?=$this->transEsc('Bibliographic Details')?>">
<? foreach ($coreFields as $key => $current): ?>
<? if (strcmp($key,"Language") == 0): ?>
<?php foreach ($coreFields as $key => $current): ?>
<?php if (strcmp($key,"Language") == 0): ?>
<?$tr = "Language::" .$current['value'] ; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$this->translate("$tr")?></td></tr>
<? continue; ?>
<? endif; ?>
<?php continue; ?>
<?php endif; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</table>
<?/* End Main Details */?>

View File

@ -1,7 +1,7 @@
<? if (! isset($subfield)) $subfield ='';
<?php if (! isset($subfield)) $subfield ='';
foreach ($data as $field): ?>
<div class="classification-line" property="keywords">
<? isset($subject) ? $subject = trim($subject . ' ' . $subfield) : $subject = ''; ?>
<?php isset($subject) ? $subject = trim($subject . ' ' . $subfield) : $subject = ''; ?>
<a title="<?=$this->escapeHtmlAttr($field)?>" href="<?=$this->record($this->driver)->getLink('classification', $field)?>" rel="nofollow"><?=trim($this->escapeHtml($field))?></a>
</div>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,13 +1,13 @@
<? foreach ($data as $recordLink): ?>
<? $link = str_replace("type=id","type=ctrlnum",$this->recordLink()->related($recordLink['link'])); ?>
<?php foreach ($data as $recordLink): ?>
<?php $link = str_replace("type=id","type=ctrlnum",$this->recordLink()->related($recordLink['link'])); ?>
<?=$this->transEsc($recordLink['title'])?>:
<? // print_r($recordLink['link']); ?>
<?php // print_r($recordLink['link']); ?>
<a href="<?= substr($link,0, -strlen("&jumpto=1")+1) ?>"><?=$this->escapeHtml($recordLink['value'])?></a><br />
<? endforeach; ?>
<? /* if we have record links, display relevant explanatory notes */
<?php endforeach; ?>
<?php /* if we have record links, display relevant explanatory notes */
$related = $this->driver->getRelationshipNotes();
if (!empty($related)): ?>
<? foreach ($related as $field): ?>
<?php foreach ($related as $field): ?>
<?=$this->escapeHtml($field)?><br/>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,11 +1,11 @@
<? foreach ($data as $field): ?>
<?php foreach ($data as $field): ?>
<div class="subject-line" property="keywords">
<? $subject = ''; ?>
<? if(count($field) == 1) $field = explode('--', $field[0]); ?>
<? $i = 0; foreach ($field as $subfield): ?>
<?php $subject = ''; ?>
<?php if(count($field) == 1) $field = explode('--', $field[0]); ?>
<?php $i = 0; foreach ($field as $subfield): ?>
<?=($i++ == 0) ? '' : ' &gt; '?>
<? $subject = trim($subject . ' ' . $subfield); ?>
<?php $subject = trim($subject . ' ' . $subfield); ?>
<a title="<?=$this->escapeHtmlAttr($subject)?>" href="<?=$this->record($this->driver)->getLink('subject', $subject)?>" rel="nofollow"><?=trim($this->escapeHtml($subfield))?></a>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
$formatProperty = function ($datafield, $name, $label) {
if (count($datafield) == 0) {
return '';
@ -11,9 +11,9 @@ $formatProperty = function ($datafield, $name, $label) {
};
$formattedAuthors = [];
?>
<? if (!empty($data[$type])): ?>
<? foreach ($data[$type] as $author => $dataFields): ?>
<? ob_start(); ?>
<?php if (!empty($data[$type])): ?>
<?php foreach ($data[$type] as $author => $dataFields): ?>
<?php ob_start(); ?>
<span class="author-data" property="<?=$this->escapeHtml($schemaLabel)?>">
<a href="<?=$this->record($this->driver)->getLink('author', $author)?>">
<?=$this->escapeHtml($author)?>
@ -37,6 +37,6 @@ $formattedAuthors = [];
$formattedAuthors[] = trim(preg_replace('/\s+<\//', '</', ob_get_contents()));
ob_end_clean();
?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?=implode('; ', $formattedAuthors)?>

View File

@ -1,4 +1,4 @@
<?
<?php
$containerSource = $this->driver->getSourceIdentifier();
$containerID = $this->driver->getContainerRecordID();
$containerVolume = $this->driver->getContainerVolume();

View File

@ -1,4 +1,4 @@
<?
<?php
$openUrl = $this->openUrl($this->driver, 'record');
$openUrlActive = $openUrl->isActive();
// Account for replace_other_urls setting
@ -31,76 +31,76 @@
?>
<? if (!empty($urls) || $openUrlActive): ?>
<? $extend =''; ?>
<? if (isset($data['extend'])) : ?>
<? $extend = "(" .$data['extend'][0] .")"; ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<?php $extend =''; ?>
<?php if (isset($data['extend'])) : ?>
<?php $extend = "(" .$data['extend'][0] .")"; ?>
<?php endif; ?>
<?php foreach ($urls as $current): ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<? foreach ($urls as $current): ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<? continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<? continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<? if (isset ($voevzlink)) : ?> <? $current['url'] = $voevzlink; ?> <?endif ; ?>
<? $current['desc'] = "Volltext"; ?>
<? if (($start = strrpos($current['url'], "(")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<?php if (isset ($voevzlink)) : ?> <?php $current['url'] = $voevzlink; ?> <?endif ; ?>
<?php $current['desc'] = "Volltext"; ?>
<?php if (($start = strrpos($current['url'], "(")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<?endif?>
<? $current['extend'] = $extend ; ?>
<?php $current['extend'] = $extend ; ?>
<?endif ; ?>
<? //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<? if (($start = strrpos($current['url'], "(")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<?php if (($start = strrpos($current['url'], "(")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (($start = strrpos($current['url'], "[")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php if (($start = strrpos($current['url'], "[")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<? $current['url'] = "https://" .$current['url']; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<?php $current['url'] = "https://" .$current['url']; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<? $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<? $current['desc'] = "URN"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<?php $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<?php $current['desc'] = "URN"; ?>
<?php endif; ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>"><?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp; <span style="color: #14416b; font-size: 13px;"> <?= $current['extend']; ?></span>
<? if (strlen($rightsImage)) : ?>
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>" onmouseover="this.style.zoom='0.22'" onmouseout="this.style.zoom='0.2'" /></a>
<? $rightsImage = ''; ?>
<? endif; ?>
<?php if (strlen($rightsImage)) : ?>
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>" onmouseover="this.style.zoom='0.22'" onmouseout="this.style.zoom='0.2'" /></a>
<?php $rightsImage = ''; ?>
<?php endif; ?>
<br />
<a class="feedbackLink" style="color: #14416b; font-size: 13px;" data-lightbox href="<?=$this->url('feedback-home') ."?function=feedback&comments=Titel: " .urlencode($title) ." (ID: " .$id ."): Link ist nicht korrekt!" ?>"> <i class="fa fa-chain-broken" aria-hidden="true"></i> <?=$this->transEsc('Report broken link')?></a>
<br />
<? endforeach; ?>
<? if ($openUrlActive): ?>
<?php endforeach; ?>
<?php if ($openUrlActive): ?>
<?=$openUrl->renderTemplate()?><br/>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Account for replace_other_urls setting
$urls = $this->driver->getOnlineLinks($expand=true); // extend links with PIDs in case links are empty
// print_r($urls);
@ -56,36 +56,36 @@
?>
<? if (!empty($urls) || $openUrlActive): ?>
<? foreach ($urls as $current): ?>
<? if (strlen($rightsImage)) : ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<?php foreach ($urls as $current): ?>
<?php if (strlen($rightsImage)) : ?>
&nbsp;&nbsp;
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="height:35px" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>"></a>
<? $rightsImage = ''; ?>
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="height:35px" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>"></a>
<?php $rightsImage = ''; ?>
<br />
<? endif; ?>
<?php endif; ?>
<? if ($displayDownloadButton) : ?>
<? // if ((strcmp($current['desc'], "Inhaltsverzeichnis") != 0) && strcmp(strcmp($current['desc'],"Volltext über anderen Anbieter") !=0)) : ?>
<?php if ($displayDownloadButton) : ?>
<?php // if ((strcmp($current['desc'], "Inhaltsverzeichnis") != 0) && strcmp(strcmp($current['desc'],"Volltext über anderen Anbieter") !=0)) : ?>
<form action="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>">
<button type="submit" class="btn btn-lg" style="height:30px;width:130px; background-color:#ffce53;color:#5e6c78;">
<!-- RKE: Änderung wegen PDF auf Downloadbutton siehe https://mantis.conlicom.de/view.php?id=98 -->
<? if (strlen($current['desc']) <=5 || strcmp($current['desc'], "Volltext") == 0) : ?>
<?php if (strlen($current['desc']) <=5 || strcmp($current['desc'], "Volltext") == 0) : ?>
<i class="fa fa-download" aria-hidden="true"></i> - <?=$filetype?></button>
<? else : ?>
<?php else : ?>
<i class="fa fa-download" aria-hidden="true"></i></button>
<? endif; ?>
<?php endif; ?>
<? if (strncmp($current['desc'], "DESC", strlen("DESC")) == 0) : ?>
<? $current['desc'] = "(" .substr($current['desc'], strlen("DESC:")) .")" ?>
<? endif ; ?>
<?php if (strncmp($current['desc'], "DESC", strlen("DESC")) == 0) : ?>
<?php $current['desc'] = "(" .substr($current['desc'], strlen("DESC:")) .")" ?>
<?php endif ; ?>
<span style="color: #14416b; font-size: 15px;"><?= $this->escapeHtml($current['desc'])?></span>
</form>
<? else : ?>
<?php else : ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>" target="_blank"><?=$this->escapeHtml($current['desc'])?></a>
<br />
<? endif; ?>
<?php endif; ?>
<!-- <a><button type="submit" style="background:#fff; border:none;"><span style="color: #14416b; font-size: 20px"><?=$this->escapeHtml($current['desc'])?></span>&nbsp;&nbsp;<img src='/vufind/themes/bibb_new/images/pdf.png' style="no-repeat; float right"></button> </a>
-->
@ -96,21 +96,21 @@
<a class="feedbackLink" style="color: #14416b; font-size: 13px;" data-lightbox href="<?=$this->url('feedback-home') ."?function=feedback&comments=Titel: " .urlencode($title) ." (ID: " .$id ."): Link ist nicht korrekt!" ?>"> <i class="fa fa-chain-broken" aria-hidden="true"></i> <?=$this->transEsc('Report broken link')?></a>
<br />
<br />
<? endforeach; ?>
<?php endforeach; ?>
<? if (count($additionalLinks) > 0) : ?>
<?php if (count($additionalLinks) > 0) : ?>
<span style="color: #14416b; font-size: 15px;">Weitere Links</span><br />
<? foreach ($additionalLinks as $additionalLink): ?>
<?php foreach ($additionalLinks as $additionalLink): ?>
&nbsp;&nbsp;
<a class="feedbackLink" target="new" style="color: #14416b; font-size: 13px;" href="<?=$this->escapeHtmlAttr($this->proxyUrl($additionalLink['link']))?>"><i class="fa fa-link" aria-hidden="true">&nbsp; </i><?= $additionalLink['description'] ?></a>
<br />
<? endforeach; ?>
<? endif ; ?>
<?php endforeach; ?>
<?php endif ; ?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<?=$openUrl->renderTemplate()?><br/>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<script>
function Copy2Clipboard(CopyText) {

View File

@ -1,11 +1,11 @@
<?
<?php
$urls = $this->driver->getPids();
?>
<? if (!empty($urls)): ?>
<?php if (!empty($urls)): ?>
<? foreach ($urls as $current): ?>
<?php foreach ($urls as $current): ?>
<?=$this->escapeHtml($current['displaytext'])?>
<!-- <a style="color:#14416b; font-size:13px; font-style:italic" href="?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['link'])))?>"</a><br />?=$this->escapeHtml("(Volltext ggf. gegen Gebühr)")?>-->
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,29 +1,29 @@
<? foreach ($data as $field): ?>
<?php foreach ($data as $field): ?>
<?/* Depending on the record driver, $field may either be an array with
"name" and "number" keys or a flat string containing only the series
name. We should account for both cases to maximize compatibility. */?>
<? if (is_array($field)): ?>
<? if (!empty($field['name'])): ?>
<?php if (is_array($field)): ?>
<?php if (!empty($field['name'])): ?>
<a href="<?=$this->record($this->driver)->getLink('series', $field['name'])?>"><?=$this->escapeHtml($field['name'])?></a>
<? if (!empty($field['number'])): ?>
<?php if (!empty($field['number'])): ?>
<?=$this->escapeHtml($field['number'])?>
<? endif; ?>
<?php endif; ?>
<br/>
<? endif; ?>
<? if (!empty($field[0])): ?>
<? $link = $field[0] ;
<?php endif; ?>
<?php if (!empty($field[0])): ?>
<?php $link = $field[0] ;
$l = strrpos($link, ';');
if ($l !== false) $link = trim(substr($link,0,$l));
?>
<a href="<?=$this->record($this->driver)->getLink('series', $link)?>"><?=$this->escapeHtml($link)?></a>
<? if (!empty($field['number'])): ?>
<?php if (!empty($field['number'])): ?>
<?=$this->escapeHtml($field['number'])?>
<? endif; ?>
<?php endif; ?>
<br/>
<? endif; ?>
<?php endif; ?>
<? else: ?>
<?php else: ?>
<a href="<?=$this->record($this->driver)->getLink('series', $field)?>"><?=$this->escapeHtml($field)?></a><br/>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>

View File

@ -1,8 +1,8 @@
<? $c = count($this->driver->getFormatsFiltered()); ?>
<? foreach ($this->driver->getFormatsFiltered() as $format): ?>
<? if (strlen($format)) : ?>
<?php $c = count($this->driver->getFormatsFiltered()); ?>
<?php foreach ($this->driver->getFormatsFiltered() as $format): ?>
<?php if (strlen($format)) : ?>
<span class="format <?=$this->record($this->driver)->getFormatClass($format) ?>"><?=$this->transEsc($format) ?></span>
<? endif ; ?>
<?php endif ; ?>
<?//=!empty($summAuthor) ? '<br />' : ''?>
<?=$c-- > 1 ? '<br />' : '' ?>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up some convenience variables:
$id = $this->driver->getUniqueId();
$source = $this->driver->getSourceIdentifier();
@ -19,61 +19,61 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<div class="result<? if($this->driver->supportsAjaxStatus()): ?> ajaxItem<? endif ?>">
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<div class="result<?php if($this->driver->supportsAjaxStatus()): ?> ajaxItem<?php endif ?>">
<input type="hidden" value="<?=$this->escapeHtmlAttr($id) ?>" class="hiddenId"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($source) ?>" class="hiddenSource"/>
<?=$this->record($this->driver)->getCheckbox()?>
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif; ?>
<?php endif; ?>
<div class="media-body">
<div class="result-body">
<div class="resultItemLine1">
<? $missing = $this->driver instanceof \VuFind\RecordDriver\Missing; ?>
<? if (!$missing): ?><a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>"><? endif; ?>
<?php $missing = $this->driver instanceof \VuFind\RecordDriver\Missing; ?>
<?php if (!$missing): ?><a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>"><?php endif; ?>
<span class="title"><?=$this->record($this->driver)->getTitleHtml()?></span>
<? if (!$missing): ?></a><? endif; ?>
<?php if (!$missing): ?></a><?php endif; ?>
</div>
<div class="resultItemLine2">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<? $summAuthors = $this->driver->getPrimaryAuthors(); if (!empty($summAuthors)): ?>
<?php else: ?>
<?php $summAuthors = $this->driver->getPrimaryAuthors(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $summAuthor)?>"><?=$this->escapeHtml($summAuthor)?></a><?=($i + 1 < $authorCount ? ';' : '') ?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br/>' : ''?>
<?=/* TODO: handle highlighting more elegantly here */ $this->transEsc('Published in') . ' <a href="' . $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)) . '">' . $this->highlight($journalTitle) . '</a>';?>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br/>' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (false && !empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (false && !empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<div class="last">
<? if(!$this->driver->isCollection()) {
<?php if(!$this->driver->isCollection()) {
if ($snippet = $this->driver->getHighlightedSnippet()) {
if (!empty($snippet['caption'])) {
echo '<strong>' . $this->transEsc($snippet['caption']) . ':</strong> ';
@ -84,37 +84,37 @@
}
} ?>
<? $listTags = ($this->usertags()->getMode() !== 'disabled') ? $this->driver->getTags(
<?php $listTags = ($this->usertags()->getMode() !== 'disabled') ? $this->driver->getTags(
null === $list_id ? true : $list_id, // get tags for all lists if no single list is selected
$user_id, 'tag'
) : array();
?>
<? if (count($listTags) > 0): ?>
<?php if (count($listTags) > 0): ?>
<strong><?=$this->transEsc('Your Tags')?>:</strong>
<? foreach ($listTags as $tag): ?>
<?php foreach ($listTags as $tag): ?>
<a href="<?=$this->currentPath() . $results->getUrlQuery()->addFacet('tags', $tag->tag)?>"><?=$this->escapeHtml($tag->tag)?></a>
<? endforeach; ?>
<?php endforeach; ?>
<br/>
<? endif; ?>
<? $listNotes = $this->driver->getListNotes($list_id, $user_id); ?>
<? if (count($listNotes) > 0): ?>
<?php endif; ?>
<?php $listNotes = $this->driver->getListNotes($list_id, $user_id); ?>
<?php if (count($listNotes) > 0): ?>
<strong><?=$this->transEsc('Notes')?>:</strong>
<? if (count($listNotes) > 1): ?><br/><? endif; ?>
<? foreach ($listNotes as $note): ?>
<?php if (count($listNotes) > 1): ?><br/><?php endif; ?>
<?php foreach ($listNotes as $note): ?>
<?=$this->escapeHtml($note)?><br/>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? if (count($this->lists) > 0): ?>
<?php if (count($this->lists) > 0): ?>
<strong><?=$this->transEsc('Saved in')?>:</strong>
<? $i=0;foreach($this->lists as $current): ?>
<a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><? if($i++ < count($this->lists)-1): ?>,<? endif; ?>
<? endforeach; ?>
<?php $i=0;foreach($this->lists as $current): ?>
<a href="<?=$this->url('userList', array('id' => $current->id))?>"><?=$this->escapeHtml($current->title)?></a><?php if($i++ < count($this->lists)-1): ?>,<?php endif; ?>
<?php endforeach; ?>
<br/>
<? endif; ?>
<?php endif; ?>
<div class="callnumAndLocation ajax-availability hidden">
<? if ($this->driver->supportsAjaxStatus()): ?>
<?php if ($this->driver->supportsAjaxStatus()): ?>
<strong class="hideIfDetailed"><?=$this->transEsc('Call Number')?>:</strong>
<span class="callnumber ajax-availability hidden">
<?=$this->transEsc('Loading')?>...<br/>
@ -124,14 +124,14 @@
<?=$this->transEsc('Loading')?>...
</span>
<div class="locationDetails"></div>
<? else: ?>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php else: ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<strong><?=$this->transEsc('Call Number')?>:</strong> <?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -142,66 +142,66 @@
if ($openUrlActive || !empty($urls)):
?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<br/>
<?=$openUrl->renderTemplate()?>
<? endif;?>
<?php endif;?>
<? if (!is_array($urls)) { $urls = array(); }
<?php if (!is_array($urls)) { $urls = array(); }
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<? if (strncmp("https://bibb-dspace.bibb.de/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/handle/BIBB")) == 0) continue; ?>
<? if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $title = $this->driver->getMainTitle(); ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/handle/BIBB")) == 0) continue; ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $title = $this->driver->getMainTitle(); ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<? $current['url'] = "https://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<? $current['desc'] = "URN"; ?>
<? endif; ?>
<? if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<?php $current['url'] = "https://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<?php $current['desc'] = "URN"; ?>
<?php endif; ?>
<?php if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (($start = strrpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<?php if (($start = strrpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<a href="<?=$this->escapeHtmlAttr(trim(substr($this->proxyUrl($current['url']),0, $start-1)))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc(trim(substr($this->proxyUrl($current['url']),$start+1,strlen($this->proxyUrl($current['url']))-($start+2)))) : $this->escapeHtml($current['desc'])?></a><br/>
<? endif; ?>
<?php endif; ?>
<? if (($start = strrpos($this->proxyUrl($current['url']), "[")) === false) : ?>
<?php if (($start = strrpos($this->proxyUrl($current['url']), "[")) === false) : ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a><br/>
<? endif ; ?>
<? if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
<?php endif ; ?>
<?php if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
onmouseover="this.style.zoom='0.8'" onmouseout="this.style.zoom='0.2'" />
<? endif; ?>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<br/>
<?=$this->record($this->driver)->getFormatList() ?>
<? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<?php if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<span class="status ajax-availability hidden"><?=$this->transEsc('Loading')?>...</span>
<br/><br/>
<? endif; ?>
<?php endif; ?>
<?=$this->record($this->driver)->getPreviews()?>
</div>
</div>
<div class="result-links hidden-print">
<i class="fa fa-fw fa-edit" aria-hidden="true"></i> <a href="<?=$this->url('myresearch-edit')?>?id=<?=urlencode($id)?>&amp;source=<?=urlencode($source)?><? if (!is_null($list_id)):?>&amp;list_id=<?=urlencode($list_id)?><? endif; ?>" class="edit tool"><?=$this->transEsc('Edit')?></a><br/>
<? /* Use a different delete URL if we're removing from a specific list or the overall favorites: */
<i class="fa fa-fw fa-edit" aria-hidden="true"></i> <a href="<?=$this->url('myresearch-edit')?>?id=<?=urlencode($id)?>&amp;source=<?=urlencode($source)?><?php if (!is_null($list_id)):?>&amp;list_id=<?=urlencode($list_id)?><?php endif; ?>" class="edit tool"><?=$this->transEsc('Edit')?></a><br/>
<?php /* Use a different delete URL if we're removing from a specific list or the overall favorites: */
$deleteUrl = null === $list_id
? $this->url('myresearch-favorites')
: $this->url('userList', array('id' => $list_id));
@ -222,8 +222,8 @@
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif; ?>
<?php endif; ?>
</div>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
$urls = $this->driver->getOnlineLinks($expand=true);
$aLinks = $this->driver->getAdditionalLinks();
$displayDownloadButton = false;
@ -84,17 +84,17 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" />
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getSourceIdentifier())?>" class="hiddenSource" />
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
<div class="media-body">
<div class="result-body">
@ -102,20 +102,20 @@
<div class="title-container">
<a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>">
<?=$this->record($this->driver)->getTitleHtml()?>
<? $subTitle = $this->driver->getTitleSection(); ?>
<? if (!empty($subTitle)): ?>
<?php $subTitle = $this->driver->getTitleSection(); ?>
<?php if (!empty($subTitle)): ?>
<br> <?=$subTitle?>
<? endif; ?>
<?php endif; ?>
</a>
</div>
<div class="author">
<? $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ';' : ''?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
<table width="99%">
@ -135,93 +135,93 @@
<tr>
<td><?=$this->record($this->driver)->getFormatList() ?></td>
<td>
<? $Collections = $this->driver->getCollection() ; if (!empty ($Collections)) : ?>
<? foreach($Collections as $Collection) : ?>
<? if (strcmp($Collection,"VET Repository") == 0) : ?> <? $img = "VET_Repository_small.png"; ?> <? endif; ?>
<? if (!strcmp($Collection,"VET Repository") == 0) : ?> <? $img = "BIBB_library_small.png"; ?> <? endif; ?>
<?php $Collections = $this->driver->getCollection() ; if (!empty ($Collections)) : ?>
<?php foreach($Collections as $Collection) : ?>
<?php if (strcmp($Collection,"VET Repository") == 0) : ?> <?php $img = "VET_Repository_small.png"; ?> <?php endif; ?>
<?php if (!strcmp($Collection,"VET Repository") == 0) : ?> <?php $img = "BIBB_library_small.png"; ?> <?php endif; ?>
<img src="/vufind/themes/bibb/images/<?=$img?>">
<? endforeach ; ?>
<? endif; ?>
<?php endforeach ; ?>
<?php endif; ?>
</td>
<td>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<?php endif; ?>
</td>
<td>
<? $openUrl = $this->openUrl($this->driver, 'results');
<?php $openUrl = $this->openUrl($this->driver, 'results');
$openUrlActive = $openUrl->isActive();
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
$urls = $this->driver->getOnlineLinks($expand=true); // extend links with PIDs in case links are empty
?>
<? if (!is_array($urls)) $urls = array();
<?php if (!is_array($urls)) $urls = array();
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<? if (strlen($rightsImage)) : ?>
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>" onmouseover="this.style.zoom='0.8'" onmouseout="this.style.zoom='0.2'" /></a>
<? $rightsImage = ''; ?>
<? endif; ?>
<?php if (strlen($rightsImage)) : ?>
<a href="<?= $rightsLink ?>"><img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.2" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID()); ?>" onmouseover="this.style.zoom='0.8'" onmouseout="this.style.zoom='0.2'" /></a>
<?php $rightsImage = ''; ?>
<?php endif; ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : str_replace("DESC:","",$this->escapeHtml($current['desc']))?></a><br/>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<?php if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<span class="status ajax-availability hidden">
<span class="label label-default"><?=$this->transEsc('Loading')?>...</span>
</span>
<? endif; ?>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<div class="published">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<?php else: ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published in')?>
<? $containerSource = $this->driver->getSourceIdentifier(); ?>
<? $containerID = $this->driver->getContainerRecordID(); ?>
<? /* TODO: handle highlighting more elegantly here: */?>
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? if(!$this->driver->isCollection()): ?>
<? if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<? if (!empty($snippet['caption'])): ?>
<?php if(!$this->driver->isCollection()): ?>
<?php if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<?php if (!empty($snippet['caption'])): ?>
<strong><?=$this->transEsc($snippet['caption']) ?>:</strong> ';
<? endif; ?>
<? if (!empty($snippet['snippet'])): ?>
<?php endif; ?>
<?php if (!empty($snippet['snippet'])): ?>
<span class="quotestart">&#8220;</span>...<?=$this->highlight($snippet['snippet']) ?>...<span class="quoteend">&#8221;</span><br/>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?
/* Display information on duplicate records if available */
@ -245,9 +245,9 @@
?>)</span><?
}?>
</div>
<? endif; ?>
<?php endif; ?>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -257,10 +257,10 @@
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
if ($openUrlActive || !empty($urls)): ?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<?=$openUrl->renderTemplate()?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<div class="result-previews">
<?=$this->record($this->driver)->getPreviews()?>
@ -269,20 +269,20 @@
<div class="add-result">
<div class="favorites">
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Add to favorites */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Add to favorites */ ?>
<a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" data-lightbox class="save-record result-link-label" data-id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId()) ?>"><?=$this->transEsc('Add to favorites')?></a>
<i class="result-link-icon fa fa-fw fa-star" aria-hidden="true"></i><br/>
<? /* Saved lists */ ?>
<?php /* Saved lists */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<div class="result-links hidden-print">
<? /* Display qrcode if appropriate: */ ?>
<? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?
// Add JS Variables for QrCode
$this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show'));
@ -295,57 +295,57 @@
</script>
</div><br/>
</span>
<? endif; ?>
<?php endif; ?>
<? if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?php if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?><br/>
<? endif; ?>
<?php endif; ?>
<? /* Hierarchy tree link */ ?>
<? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<? foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<?php /* Hierarchy tree link */ ?>
<?php $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<?php foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<div class="hierarchyTreeLink">
<input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" />
<a class="hierarchyTreeLinkText result-link-label" data-lightbox href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>" data-lightbox-href="<?=$this->recordLink()->getTabUrl($this->driver, 'AjaxTab')?>?hierarchy=<?=urlencode($hierarchyID)?>" data-lightbox-post="tab=hierarchytree">
<?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?>
<?=$this->transEsc('hierarchy_view_context')?><?php if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><?php endif; ?>
</a>
<i class="result-link-icon fa fa-fw fa-sitemap" aria-hidden="true"></i>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? if ($displayRequestForm > 0) : ?>
<?php if ($displayRequestForm > 0) : ?>
<br />
<? if ($orderText == 'Artikel') : ?>
<?php if ($orderText == 'Artikel') : ?>
<a class="feedbackLink" data-lightbox href="<?=$this->url('feedback-home') ."?function=requestArticle&comments=Artikel: " .urlencode($articleTitle) .", " .urlencode($outText) ." (ID: " .$id .")"?>"><?=$this->transEsc('Request article')?></a> <i class="fa fa-newspaper" style="color:#44801e;" aria-hidden="true"></i>
<? endif; ?>
<? if ($orderText == 'Beitrag') : ?>
<?php endif; ?>
<?php if ($orderText == 'Beitrag') : ?>
<a class="feedbackLink" data-lightbox href="<?=$this->url('feedback-home') ."?function=requestPaper&comments=Beitrag: " .urlencode($articleTitle) .", " .urlencode($outText) ." (ID: " .$id .")"?>"><?=$this->transEsc('Request Paper in edited volumes')?></a> <i class="fa fa-newspaper" style="color:#44801e;" aria-hidden="true"></i>
<? endif; ?>
<?php endif; ?>
<? endif; ?>
<? // RKE @ in nächster Zeile ergänzt wegen Meldungen in Apache-Logfile ?>
<? if (strlen(trim($current['url'])) > 0) : ?>
<?php endif; ?>
<?php // RKE @ in nächster Zeile ergänzt wegen Meldungen in Apache-Logfile ?>
<?php if (strlen(trim($current['url'])) > 0) : ?>
<br />
<form action="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>" target="_blank">
<? if ($displayDownloadButton) : ?>
<?php if ($displayDownloadButton) : ?>
<button type="submit" class="btn btn-lg" style="height:30px;width:130px; background-color:#ffce53;color:#5e6c78;"><i class="fa fa-download" aria-hidden="true"></i> - <?=$filetype?></button>
<? endif; ?>
<? if(count($aLinks) > 0) : ?>
<?php endif; ?>
<?php if(count($aLinks) > 0) : ?>
<br />&nbsp;<br />
<span style="font-size:80%; font-weight:bold";><strong><?= "Weitere Links s. Treffer" ?> </span>
<? endif ; ?>
<?php endif ; ?>
</form>
<? endif; ?>
<?php endif; ?>
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
</div>

View File

@ -1,10 +1,10 @@
<?
<?php
$addThis = $this->addThis();
if (!empty($addThis)) {
$this->headScript()->appendFile('https://s7.addthis.com/js/250/addthis_widget.js?pub=' . urlencode($addThis));
}
?>
<? $offlineMode = $this->ils()->getOfflineMode();
<?php $offlineMode = $this->ils()->getOfflineMode();
try {
$holdings = $this->driver->getRealTimeHoldings();
} catch (\VuFind\Exception\ILS $e) {
@ -41,7 +41,7 @@
}
?>
<? // Collect data for the article requestform
<?php // Collect data for the article requestform
$formatArray = $this->driver->getFormatsFiltered();
(! in_array("Electronic resource", $formatArray) && (in_array("Journal article", $formatArray) || in_array("Paper in edited volumes", $formatArray))) ? $displayRequestForm = 1 : $displayRequestForm = 0 ;
if ($displayRequestForm == 1) {
@ -68,53 +68,53 @@
</div>
<div id="suchauswahl" class="show-content suchauswahl hidden-print">
<ul class="record-nav nav nav-pills hidden-print">
<? if (count($this->driver->getCitationFormats()) > 0): ?>
<?php if (count($this->driver->getCitationFormats()) > 0): ?>
<li><a class="cite-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Cite')?>" rel="nofollow"><i class="fa fa-asterisk" aria-hidden="true"></i> <?=$this->transEsc('Cite this')?></a></li>
<? endif; ?>
<? if ($this->accountCapabilities()->getSmsSetting() !== 'disabled'): ?>
<?php endif; ?>
<?php if ($this->accountCapabilities()->getSmsSetting() !== 'disabled'): ?>
<li><a class="sms-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'SMS')?>" rel="nofollow"><i class="fa fa-mobile" aria-hidden="true"></i> <?=$this->transEsc('Text this')?></a></li>
<? endif; ?>
<?php endif; ?>
<li><a class="mail-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Email')?>" rel="nofollow"><i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this')?></a></li>
<? $exportFormats = $this->export()->getFormatsForRecord($this->driver); ?>
<? if(count($exportFormats) > 0): ?>
<?php $exportFormats = $this->export()->getFormatsForRecord($this->driver); ?>
<?php if(count($exportFormats) > 0): ?>
<li class="dropdown">
<a class="export-toggle dropdown-toggle" data-toggle="dropdown" href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>" rel="nofollow"><i class="fa fa-list-alt" aria-hidden="true"></i> <?=$this->transEsc('Export Record') ?></a>
<ul class="dropdown-menu" role="menu">
<? foreach ($exportFormats as $exportFormat): ?>
<li><a <? if ($this->export()->needsRedirect($exportFormat)): ?>target="<?=$this->escapeHtmlAttr($exportFormat)?>Main" <? endif; ?>href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtmlAttr($exportFormat)?>" rel="nofollow"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li>
<? endforeach; ?>
<?php foreach ($exportFormats as $exportFormat): ?>
<li><a <?php if ($this->export()->needsRedirect($exportFormat)): ?>target="<?=$this->escapeHtmlAttr($exportFormat)?>Main" <?php endif; ?>href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtmlAttr($exportFormat)?>" rel="nofollow"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li>
<?php endforeach; ?>
</ul>
</li>
<? endif; ?>
<?php endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<li><a class="save-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" rel="nofollow"><i class="fa fa-star" aria-hidden="true"></i> <?=$this->transEsc('Add to favorites')?></a></li>
<? endif; ?>
<? if (!empty($addThis)): ?>
<?php endif; ?>
<?php if (!empty($addThis)): ?>
<li><a class="addThis addthis_button" href="https://www.addthis.com/bookmark.php?v=250&amp;pub=<?=urlencode($addThis)?>"><i class="fa fa-bookmark" aria-hidden="true"></i> <?=$this->transEsc('Bookmark')?></a></li>
<? endif; ?>
<?php endif; ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?>
<? if (!empty($availableLinks)) : ?>
<?php if (!empty($availableLinks)) : ?>
<li><a class="save-record" <?=$availableLinks[0] ?></a></li>
<?endif; ?>
<? if (empty($availableLinks) && !empty($checkedOutLinks)) : ?>
<?php if (empty($availableLinks) && !empty($checkedOutLinks)) : ?>
<li><a <?=$checkedOutLinks[0] ?></a></li>
<?endif; ?>
<? if ($displayRequestForm > 0) : ?>
<? if ($orderText == 'Artikel') : ?>
<?php if ($displayRequestForm > 0) : ?>
<?php if ($orderText == 'Artikel') : ?>
<li>
<a class="feedbackLink" data-lightbox href="<?=$this->url('feedback-home') ."?function=requestArticle&comments=Artikel: " .urlencode($articleTitle) .", " .urlencode($outText) ?>"><?=$this->transEsc('Request article')?></a>
</li>
<? endif; ?>
<? if ($orderText == 'Beitrag') : ?>
<?php endif; ?>
<?php if ($orderText == 'Beitrag') : ?>
<li>
<a class="feedbackLink" data-lightbox href="<?=$this->url('feedback-home') ."?function=requestPaper&comments=Beitrag: " .urlencode($articleTitle) .", " .urlencode($outText) ?>"><?=$this->transEsc('Request Paper in edited volumes')?></a>
</li>
<? endif; ?>
<?php endif; ?>
<?endif; ?>

View File

@ -129,11 +129,11 @@ class SolrDefault extends AbstractBase
/**
* Constructor
*
* @param \Zend\Config\Config $mainConfig VuFind main configuration (omit for
* @param \Laminas\Config\Config $mainConfig VuFind main configuration (omit for
* built-in defaults)
* @param \Zend\Config\Config $recordConfig Record-specific configuration file
* @param \Laminas\Config\Config $recordConfig Record-specific configuration file
* (omit to use $mainConfig as $recordConfig)
* @param \Zend\Config\Config $searchSettings Search-specific configuration file
* @param \Laminas\Config\Config $searchSettings Search-specific configuration file
*/
public function __construct($mainConfig = null, $recordConfig = null,
$searchSettings = null

View File

@ -5,50 +5,50 @@
$cover = $coverDetails['html'];
$preview = $this->record($this->driver)->getPreviews();
?>
<? if ($QRCode || $cover || $preview): ?>
<?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?>
<?php /* Display thumbnail if appropriate: */ ?>
<?php if($cover): ?>
<?=$cover?>
<? endif; ?>
<?php endif; ?>
<? /* Display qrcode if appropriate: */ ?>
<? if($QRCode): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if($QRCode): ?>
<span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span>
<? endif; ?>
<?php endif; ?>
<? // if you have a preview tab but want to move or remove the preview link
<?php // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into
// getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?>
<? if ($preview): ?>
<?php if ($preview): ?>
<div class="record-previews">
<?=$preview?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
<div class="media-body">
<h3 property="name"><?=$this->escapeHtml($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())?></h3>
<? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<? if ($summary): ?>
<?php $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p>
<? if(strlen($summary) > 300): ?>
<?php if(strlen($summary) > 300): ?>
<p><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
<?/* Display Main Details */?>
<?
@ -56,24 +56,24 @@
$coreFields = $formatter->getData($driver, $formatter->getDefaults('core'));
$title_alt = $this->driver->getAlternativeTitle();
?>
<? if (!empty($coreFields)) : ?>
<?php if (!empty($coreFields)) : ?>
<table class="table table-striped" summary="<?=$this->transEsc('Bibliographic Details')?>">
<? foreach ($coreFields as $key => $current): ?>
<? if (strcmp($key,"Language") == 0): ?>
<?php foreach ($coreFields as $key => $current): ?>
<?php if (strcmp($key,"Language") == 0): ?>
<?$tr = "Language::" .$current['value'] ; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$this->translate("$tr")?></td></tr>
<? continue; ?>
<? endif; ?>
<?php continue; ?>
<?php endif; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr>
<? endforeach; ?>
<? endif; ?>
<? if (!empty($title_alt)) : ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if (!empty($title_alt)) : ?>
<tr><th><?=$this->transEsc('Alternative titles') ?></th><td>
<? foreach ($title_alt as $title_alt_entry): ?>
<?php foreach ($title_alt as $title_alt_entry): ?>
<?=$this->transEsc($title_alt_entry);?><br>
<? endforeach; ?>
<?php endforeach; ?>
</td></tr>
<? endif; ?>
<?php endif; ?>
</table>
<?/* End Main Details */?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
$formatProperty = function ($datafield, $name, $label) {
if (count($datafield) == 0) {
return '';
@ -11,9 +11,9 @@ $formatProperty = function ($datafield, $name, $label) {
};
$formattedAuthors = [];
?>
<? if (!empty($data[$type])): ?>
<? foreach ($data[$type] as $author => $dataFields): ?>
<? ob_start(); ?>
<?php if (!empty($data[$type])): ?>
<?php foreach ($data[$type] as $author => $dataFields): ?>
<?php ob_start(); ?>
<span class="author-data" property="<?=$this->escapeHtml($schemaLabel)?>">
<a href="<?=$this->record($this->driver)->getLink('author', $author)?>">
<?=$this->escapeHtml($author)?>
@ -37,6 +37,6 @@ $formattedAuthors = [];
$formattedAuthors[] = trim(preg_replace('/\s+<\//', '</', ob_get_contents()));
ob_end_clean();
?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?=implode('; ', $formattedAuthors)?>

View File

@ -1,6 +1,6 @@
<? $c = count($this->driver->getFormats()); ?>
<? foreach ($this->driver->getFormats() as $format): ?>
<?php $c = count($this->driver->getFormats()); ?>
<?php foreach ($this->driver->getFormats() as $format): ?>
<span class="format <?=$this->record($this->driver)->getFormatClass($format) ?>"><?=$this->transEsc($format) ?></span>
<?//=!empty($summAuthor) ? '<br />' : ''?>
<?=$c-- > 1 ? '<br />' : '' ?>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
$coverDetails = $this->record($this->driver)->getCoverDetails('result-list', 'medium', $this->recordLink()->getUrl($this->driver));
$cover = $coverDetails['html'];
$thumbnail = false;
@ -10,15 +10,15 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" />
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getSourceIdentifier())?>" class="hiddenSource" />
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
<div class="media-body">
<div class="result-body">
@ -29,12 +29,12 @@
</div>
<div class="author">
<? $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ';' : ''?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
<table class="result-table">
@ -48,72 +48,72 @@
<td><?=$this->record($this->driver)->getFormatList() ?></td>
<td>
<div class="callnumAndLocation ajax-availability hidden">
<? if ($this->driver->supportsAjaxStatus()): ?>
<?php if ($this->driver->supportsAjaxStatus()): ?>
<span class="location ajax-availability hidden">
<?=$this->transEsc('Loading')?>...
</span>
<div class="locationDetails"></div>
<? endif; ?>
<?php endif; ?>
</div>
</td>
<td>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
</strong> <?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<?php endif; ?>
</td>
<td>
<? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<?php if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<span class="status ajax-availability hidden">
<span class="label label-default"><?=$this->transEsc('Loading')?>...</span>
</span>
<? endif; ?>
<?php endif; ?>
</td>
</tr>
</table>
<div class="published">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<?php else: ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published in')?>
<? $containerSource = $this->driver->getSourceIdentifier(); ?>
<? $containerID = $this->driver->getContainerRecordID(); ?>
<? /* TODO: handle highlighting more elegantly here: */?>
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? if(!$this->driver->isCollection()): ?>
<? if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<? if (!empty($snippet['caption'])): ?>
<?php if(!$this->driver->isCollection()): ?>
<?php if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<?php if (!empty($snippet['caption'])): ?>
<strong><?=$this->transEsc($snippet['caption']) ?>:</strong> ';
<? endif; ?>
<? if (!empty($snippet['snippet'])): ?>
<?php endif; ?>
<?php if (!empty($snippet['snippet'])): ?>
<span class="quotestart">&#8220;</span>...<?=$this->highlight($snippet['snippet']) ?>...<span class="quoteend">&#8221;</span><br/>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?
/* Display information on duplicate records if available */
@ -137,9 +137,9 @@
?>)</span><?
}?>
</div>
<? endif; ?>
<?php endif; ?>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -149,24 +149,24 @@
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
if ($openUrlActive || !empty($urls)): ?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<br/>
<?=$openUrl->renderTemplate()?>
<? endif; ?>
<? if (!is_array($urls)) $urls = array();
<?php endif; ?>
<?php if (!is_array($urls)) $urls = array();
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<? if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $this->proxyUrl($current['url']), strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<? if (($start = strpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $this->proxyUrl($current['url']), strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<?php if (($start = strpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<a href="<?=$this->escapeHtmlAttr(trim(substr($this->proxyUrl($current['url']),0, $start-1)))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc(trim(substr($this->proxyUrl($current['url']),$start+1,strlen($this->proxyUrl($current['url']))-($start+2)))) : $this->escapeHtml($current['desc'])?></a><br/>
<? endif; ?>
<?php endif; ?>
<? if (($start = strpos($this->proxyUrl($current['url']), "(")) === false) : ?>
<?php if (($start = strpos($this->proxyUrl($current['url']), "(")) === false) : ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a><br/>
<? endif ; ?>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endif ; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<div class="result-previews">
<?=$this->record($this->driver)->getPreviews()?>
@ -175,20 +175,20 @@
<div class="add-result">
<div class="favorites">
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Add to favorites */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Add to favorites */ ?>
<a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" data-lightbox class="save-record result-link-label" data-id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId()) ?>"><?=$this->transEsc('Add to favorites')?></a>
<i class="result-link-icon fa fa-fw fa-star" aria-hidden="true"></i><br/>
<? /* Saved lists */ ?>
<?php /* Saved lists */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<div class="result-links hidden-print">
<? /* Display qrcode if appropriate: */ ?>
<? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?
// Add JS Variables for QrCode
$this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show'));
@ -201,33 +201,33 @@
</script>
</div><br/>
</span>
<? endif; ?>
<?php endif; ?>
<? if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?php if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?><br/>
<? endif; ?>
<?php endif; ?>
<? /* Hierarchy tree link */ ?>
<? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<? foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<?php /* Hierarchy tree link */ ?>
<?php $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<?php foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<div class="hierarchyTreeLink">
<input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" />
<a class="hierarchyTreeLinkText result-link-label" data-lightbox href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>" data-lightbox-href="<?=$this->recordLink()->getTabUrl($this->driver, 'AjaxTab')?>?hierarchy=<?=urlencode($hierarchyID)?>" data-lightbox-post="tab=hierarchytree">
<?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?>
<?=$this->transEsc('hierarchy_view_context')?><?php if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><?php endif; ?>
</a>
<i class="result-link-icon fa fa-fw fa-sitemap" aria-hidden="true"></i>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
$coverDetails = $this->record($this->driver)->getCoverDetails('result-list', 'medium', $this->recordLink()->getUrl($this->driver));
$cover = $coverDetails['html'];
$thumbnail = false;
@ -10,15 +10,15 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" />
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getSourceIdentifier())?>" class="hiddenSource" />
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
<div class="media-body">
<div class="result-body">
@ -29,12 +29,12 @@
</div>
<div class="author">
<? $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ',' : ''?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
<table class="result-table">
@ -48,72 +48,72 @@
<td><?=$this->record($this->driver)->getFormatList() ?></td>
<td>
<div class="callnumAndLocation ajax-availability hidden">
<? if ($this->driver->supportsAjaxStatus()): ?>
<?php if ($this->driver->supportsAjaxStatus()): ?>
<span class="location ajax-availability hidden">
<?=$this->transEsc('Loading')?>...
</span>
<div class="locationDetails"></div>
<? endif; ?>
<?php endif; ?>
</div>
</td>
<td>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
</strong> <?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<?php endif; ?>
</td>
<td>
<? if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<?php if (!$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus()): ?>
<span class="status ajax-availability hidden">
<span class="label label-default"><?=$this->transEsc('Loading')?>...</span>
</span>
<? endif; ?>
<?php endif; ?>
</td>
</tr>
</table>
<div class="published">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<?php else: ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published in')?>
<? $containerSource = $this->driver->getSourceIdentifier(); ?>
<? $containerID = $this->driver->getContainerRecordID(); ?>
<? /* TODO: handle highlighting more elegantly here: */?>
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? if(!$this->driver->isCollection()): ?>
<? if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<? if (!empty($snippet['caption'])): ?>
<?php if(!$this->driver->isCollection()): ?>
<?php if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<?php if (!empty($snippet['caption'])): ?>
<strong><?=$this->transEsc($snippet['caption']) ?>:</strong> ';
<? endif; ?>
<? if (!empty($snippet['snippet'])): ?>
<?php endif; ?>
<?php if (!empty($snippet['snippet'])): ?>
<span class="quotestart">&#8220;</span>...<?=$this->highlight($snippet['snippet']) ?>...<span class="quoteend">&#8221;</span><br/>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?
/* Display information on duplicate records if available */
@ -137,9 +137,9 @@
?>)</span><?
}?>
</div>
<? endif; ?>
<?php endif; ?>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -149,17 +149,17 @@
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
if ($openUrlActive || !empty($urls)): ?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<br/>
<?=$openUrl->renderTemplate()?>
<? endif; ?>
<? if (!is_array($urls)) $urls = array();
<?php endif; ?>
<?php if (!is_array($urls)) $urls = array();
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<a href="<?=$this->escapeHtmlAttr($this->proxyUrl($current['url']))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc('Get full text') : $this->escapeHtml($current['desc'])?></a><br/>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<div class="result-previews">
<?=$this->record($this->driver)->getPreviews()?>
@ -168,20 +168,20 @@
<div class="add-result">
<div class="favorites">
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Add to favorites */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Add to favorites */ ?>
<a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" data-lightbox class="save-record result-link-label" data-id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId()) ?>"><?=$this->transEsc('Add to favorites')?></a>
<i class="result-link-icon fa fa-fw fa-star" aria-hidden="true"></i><br/>
<? /* Saved lists */ ?>
<?php /* Saved lists */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<div class="result-links hidden-print">
<? /* Display qrcode if appropriate: */ ?>
<? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?
// Add JS Variables for QrCode
$this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show'));
@ -194,33 +194,33 @@
</script>
</div><br/>
</span>
<? endif; ?>
<?php endif; ?>
<? if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?php if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?><br/>
<? endif; ?>
<?php endif; ?>
<? /* Hierarchy tree link */ ?>
<? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<? foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<?php /* Hierarchy tree link */ ?>
<?php $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<?php foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<div class="hierarchyTreeLink">
<input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" />
<a class="hierarchyTreeLinkText result-link-label" data-lightbox href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>" data-lightbox-href="<?=$this->recordLink()->getTabUrl($this->driver, 'AjaxTab')?>?hierarchy=<?=urlencode($hierarchyID)?>" data-lightbox-post="tab=hierarchytree">
<?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?>
<?=$this->transEsc('hierarchy_view_context')?><?php if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><?php endif; ?>
</a>
<i class="result-link-icon fa fa-fw fa-sitemap" aria-hidden="true"></i>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
$addThis = $this->addThis();
if (!empty($addThis)) {
$this->headScript()->appendFile('https://s7.addthis.com/js/250/addthis_widget.js?pub=' . urlencode($addThis));
@ -9,32 +9,32 @@
</div>
<div id="suchauswahl" class="show-content suchauswahl">
<ul class="record-nav nav nav-pills hidden-print">
<? if (count($this->driver->getCitationFormats()) > 0): ?>
<?php if (count($this->driver->getCitationFormats()) > 0): ?>
<li><a class="cite-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Cite')?>" rel="nofollow"><i class="fa fa-asterisk" aria-hidden="true"></i> <?=$this->transEsc('Cite this')?></a></li>
<? endif; ?>
<? if ($this->accountCapabilities()->getSmsSetting() !== 'disabled'): ?>
<?php endif; ?>
<?php if ($this->accountCapabilities()->getSmsSetting() !== 'disabled'): ?>
<li><a class="sms-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'SMS')?>" rel="nofollow"><i class="fa fa-mobile" aria-hidden="true"></i> <?=$this->transEsc('Text this')?></a></li>
<? endif; ?>
<?php endif; ?>
<li><a class="mail-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Email')?>" rel="nofollow"><i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this')?></a></li>
<? $exportFormats = $this->export()->getFormatsForRecord($this->driver); ?>
<? if(count($exportFormats) > 0): ?>
<?php $exportFormats = $this->export()->getFormatsForRecord($this->driver); ?>
<?php if(count($exportFormats) > 0): ?>
<li class="dropdown">
<a class="export-toggle dropdown-toggle" data-toggle="dropdown" href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>" rel="nofollow"><i class="fa fa-list-alt" aria-hidden="true"></i> <?=$this->transEsc('Export Record') ?></a>
<ul class="dropdown-menu" role="menu">
<? foreach ($exportFormats as $exportFormat): ?>
<li><a <? if ($this->export()->needsRedirect($exportFormat)): ?>target="<?=$this->escapeHtmlAttr($exportFormat)?>Main" <? endif; ?>href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtmlAttr($exportFormat)?>" rel="nofollow"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li>
<? endforeach; ?>
<?php foreach ($exportFormats as $exportFormat): ?>
<li><a <?php if ($this->export()->needsRedirect($exportFormat)): ?>target="<?=$this->escapeHtmlAttr($exportFormat)?>Main" <?php endif; ?>href="<?=$this->recordLink()->getActionUrl($this->driver, 'Export')?>?style=<?=$this->escapeHtmlAttr($exportFormat)?>" rel="nofollow"><?=$this->transEsc('Export to')?> <?=$this->transEsc($this->export()->getLabelForFormat($exportFormat))?></a></li>
<?php endforeach; ?>
</ul>
</li>
<? endif; ?>
<?php endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<li><a class="save-record" data-lightbox href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" rel="nofollow"><i class="fa fa-star" aria-hidden="true"></i> <?=$this->transEsc('Add to favorites')?></a></li>
<? endif; ?>
<? if (!empty($addThis)): ?>
<?php endif; ?>
<?php if (!empty($addThis)): ?>
<li><a class="addThis addthis_button" href="https://www.addthis.com/bookmark.php?v=250&amp;pub=<?=urlencode($addThis)?>"><i class="fa fa-bookmark" aria-hidden="true"></i> <?=$this->transEsc('Bookmark')?></a></li>
<? endif; ?>
<?php endif; ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?>
</ul>
</div>

View File

@ -5,50 +5,50 @@
$cover = $coverDetails['html'];
$preview = $this->record($this->driver)->getPreviews();
?>
<? if ($QRCode || $cover || $preview): ?>
<?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<? /* Display thumbnail if appropriate: */ ?>
<? if($cover): ?>
<?php /* Display thumbnail if appropriate: */ ?>
<?php if($cover): ?>
<?=$cover?>
<? endif; ?>
<?php endif; ?>
<? /* Display qrcode if appropriate: */ ?>
<? if($QRCode): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if($QRCode): ?>
<span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/>
</span>
<? endif; ?>
<?php endif; ?>
<? // if you have a preview tab but want to move or remove the preview link
<?php // if you have a preview tab but want to move or remove the preview link
// from this area of the record view, this can be split into
// getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?>
<? if ($preview): ?>
<?php if ($preview): ?>
<div class="record-previews">
<?=$preview?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
<div class="media-body">
<h3 property="name"><?=$this->escapeHtml($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())?></h3>
<? $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<? if ($summary): ?>
<?php $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p>
<? if(strlen($summary) > 300): ?>
<?php if(strlen($summary) > 300): ?>
<p><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Display the lists that this record is saved to */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
<?/* Display Main Details */?>
<?
@ -56,17 +56,17 @@
$coreFields = $formatter->getData($driver, $formatter->getDefaults('core'));
// print_r($coreFields);
?>
<? if (!empty($coreFields)) : ?>
<?php if (!empty($coreFields)) : ?>
<table class="table table-striped" summary="<?=$this->transEsc('Bibliographic Details')?>">
<? foreach ($coreFields as $key => $current): ?>
<? if (strcmp($key,"Language") == 0): ?>
<?php foreach ($coreFields as $key => $current): ?>
<?php if (strcmp($key,"Language") == 0): ?>
<?$tr = "Language::" .$current['value'] ; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$this->translate("$tr")?></td></tr>
<? continue; ?>
<? endif; ?>
<?php continue; ?>
<?php endif; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</table>
<?/* End Main Details */?>

View File

@ -1,4 +1,4 @@
<?
<?php
$openUrl = $this->openUrl($this->driver, 'record');
$openUrlActive = $openUrl->isActive();
// Account for replace_other_urls setting
@ -19,69 +19,69 @@
?>
<? if (!empty($urls) || $openUrlActive): ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<? foreach ($urls as $current): ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<? continue; ?>
<?php foreach ($urls as $current): ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<? continue; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<? $current['desc'] = "Volltext"; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<?php $current['desc'] = "Volltext"; ?>
<?endif ; ?>
<? //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<? if (($start = strrpos($current['url'], "(")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<?php if (($start = strrpos($current['url'], "(")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (($start = strrpos($current['url'], "[")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php if (($start = strrpos($current['url'], "[")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<? $current['url'] = "https://" .$current['url']; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<?php $current['url'] = "https://" .$current['url']; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<? $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<? $current['desc'] = "URN"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<?php $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<?php $current['desc'] = "URN"; ?>
<?php endif; ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>"><?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp;
<? if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.18" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
<?php if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.18" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
onmouseover="this.style.zoom='0.22'" onmouseout="this.style.zoom='0.18'" />
<? $rightsImage = ''; ?>
<? endif; ?>
<?php $rightsImage = ''; ?>
<?php endif; ?>
<br />
&nbsp;&nbsp;
<a class="feedbackLink" style="color: #14416b; font-size: 13px;" data-lightbox href="<?=$this->url('feedback-home') ."?function=feedback&comments=Titel: " .urlencode($title) ." (ID: " .$id ."): Link ist nicht korrekt!" ?>"> <i class="fa fa-chain-broken" aria-hidden="true"></i> <?=$this->transEsc('Report broken link')?></a>
<br />
<? endforeach; ?>
<? if ($openUrlActive): ?>
<?php endforeach; ?>
<?php if ($openUrlActive): ?>
<?=$openUrl->renderTemplate()?><br/>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
$account = $this->auth()->getManager();
$openUrl = $this->openUrl($this->driver, 'record');
@ -22,79 +22,79 @@
?>
<? if (!empty($urls) || $openUrlActive): ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<? foreach ($urls as $current): ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<? continue; ?>
<?php foreach ($urls as $current): ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/handle", strlen("https://bibb-dspace.bibb.de/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<? continue; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/jspui/handle", strlen("https://bibb-dspace.bibb.de/jspui/handle")) == 0) : ?>
<?php continue; ?>
<?endif ; ?>
<? if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<? $current['desc'] = "Volltext"; ?>
<?php if (strncmp($current['url'],"https://bibb-dspace.bibb.de/rest/bitstreams", strlen("https://bibb-dspace.bibb.de/rest/bitstreams")) == 0) : ?>
<?php $current['desc'] = "Volltext"; ?>
<?endif ; ?>
<? //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<? if (($start = strrpos($current['url'], "(")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php //Looking for "(" and ")" and separation of the link and the label MUST be located here!! ?>
<?php if (($start = strrpos($current['url'], "(")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],")") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (($start = strrpos($current['url'], "[")) !== false) : ?>
<? $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<? $current['url'] = trim(substr($current['url'],0, $start)); ?>
<? endif; ?>
<?php if (($start = strrpos($current['url'], "[")) !== false) : ?>
<?php $current['desc'] = substr($current['url'],$start+1, strrpos($current['url'],"]") - $start -1) ; ?>
<?php $current['url'] = trim(substr($current['url'],0, $start)); ?>
<?php endif; ?>
<? if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<? $current['url'] = "https://" .$current['url']; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"www.bibb.de", strlen("www.bibb.de")) == 0) : ?>
<?php $current['url'] = "https://" .$current['url']; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"http://dx.doi.org/", strlen("http://dx.doi.org/")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("http://dx.doi.org/")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<? $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<? $current['desc'] = "DOI"; ?>
<? endif; ?>
<?php if (strncmp(strtolower($current['url']),"doi:", strlen("doi:")) == 0) : ?>
<?php $current['url'] = "https://doi.org/" .urlencode(trim(substr($current['url'], strlen("doi:")))) ; ?>
<?php $current['desc'] = "DOI"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<? $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<? $current['desc'] = "URN"; ?>
<? endif; ?>
<?php if (strncmp($current['url'],"urn:nbn:de:", strlen("urn:nbn:de:")) == 0) : ?>
<?php $current['url'] = "http://nbn-resolving.org/" .urlencode($current['url']) ; ?>
<?php $current['desc'] = "URN"; ?>
<?php endif; ?>
<? $LoginRequired = false ; ?>
<? if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com") !== false || strpos($current['url'],"research.ebsco.com/") !== false)) || strlen($accessRestrictions[0]) > 0) : ?>
<? //if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com"))) !== false || strlen($accessRestrictions[0]) > 0) : ?>
<? $LoginRequired = true ; ?>
<? endif; ?>
<?php $LoginRequired = false ; ?>
<?php if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com") !== false || strpos($current['url'],"research.ebsco.com/") !== false)) || strlen($accessRestrictions[0]) > 0) : ?>
<?php //if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com"))) !== false || strlen($accessRestrictions[0]) > 0) : ?>
<?php $LoginRequired = true ; ?>
<?php endif; ?>
<? if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?php if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?=$this->escapeHtml($current['desc'])?> &nbsp; &nbsp;
<? else: ?>
<?php else: ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>" target="_blank"><?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp;
<? endif; ?>
<?php endif; ?>
<? if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.18" name="<? echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
<?php if (strlen($rightsImage)) : ?>
<img src="<?= $rightsImage ?>" alt="License" style="zoom: 0.18" name="<?php echo $this->escapeHtmlAttr($this->driver->getUniqueID())?>"
onmouseover="this.style.zoom='0.22'" onmouseout="this.style.zoom='0.18'" />
<? $rightsImage = ''; ?>
<? endif; ?>
<?php $rightsImage = ''; ?>
<?php endif; ?>
<br />
&nbsp;&nbsp;
<a class="feedbackLink" style="color: #14416b; font-size: 13px;" data-lightbox href="<?=$this->url('feedback-home') ."?function=feedback&comments=Titel: " .urlencode($title) ." (ID: " .$id ."): Link ist nicht korrekt!" ?>"> <i class="fa fa-chain-broken" aria-hidden="true"></i> <?=$this->transEsc('Report broken link')?></a>
<br />
<? endforeach; ?>
<? if ($openUrlActive): ?>
<?php endforeach; ?>
<?php if ($openUrlActive): ?>
<?=$openUrl->renderTemplate()?><br/>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>

View File

@ -1,35 +1,35 @@
<? foreach ($data as $field): ?>
<?php foreach ($data as $field): ?>
<?/* Depending on the record driver, $field may either be an array with
"name" and "number" keys or a flat string containing only the series
name. We should account for both cases to maximize compatibility. */?>
<? //print_r($field); ?>
<? if (is_array($field)): ?>
<? if (!empty($field['name'])): ?>
<? $link = $field['name'];
<?php //print_r($field); ?>
<?php if (is_array($field)): ?>
<?php if (!empty($field['name'])): ?>
<?php $link = $field['name'];
$l = strrpos($link, ';');
if ($l !== false) $link = trim(substr($link,0,$l));
?>
<a href="<?=$this->record($this->driver)->getLink('series', $link)?>"><?=$this->escapeHtml($link)?></a>
<? if (!empty($field['number'])): ?>
<? echo "; " .$this->escapeHtml($field['number'])?>
<? endif; ?>
<?php if (!empty($field['number'])): ?>
<?php echo "; " .$this->escapeHtml($field['number'])?>
<?php endif; ?>
<br/>
<? endif; ?>
<? if (!empty($field[0])): ?>
<? $link = $field[0] ;
<?php endif; ?>
<?php if (!empty($field[0])): ?>
<?php $link = $field[0] ;
$l = strrpos($link, ';');
if ($l !== false) $link = trim(substr($link,0,$l));
?>
<a href="<?=$this->record($this->driver)->getLink('series', $link)?>"><?=$this->escapeHtml($link)?></a>
<? if (!empty($field['number'])): ?>
<?php if (!empty($field['number'])): ?>
<?=$this->escapeHtml($field['number'])?>
<? endif; ?>
<?php endif; ?>
<br/>
<? endif; ?>
<?php endif; ?>
<? else: ?>
<?php else: ?>
<a href="<?=$this->record($this->driver)->getLink('series', $field)?>"><?=$this->escapeHtml($field)?></a><br/>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
$account = $this->auth()->getManager();
$coverDetails = $this->record($this->driver)->getCoverDetails('result-list', 'medium', $this->recordLink()->getUrl($this->driver));
$cover = $coverDetails['html'];
@ -10,7 +10,7 @@
if ($cover):
ob_start(); ?>
<? // Create links to place a hold or recall an item
<?php // Create links to place a hold or recall an item
$offlineMode = $this->ils()->getOfflineMode();
try {
$holdings = $this->driver->getRealTimeHoldings();
@ -62,35 +62,35 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getUniqueID())?>" class="hiddenId" />
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->driver->getSourceIdentifier())?>" class="hiddenSource" />
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
<div class="media-body">
<div class="result-body">
<div class="title-container">
<a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>">
<?=$this->record($this->driver)->getTitleHtml()?>
<? $subTitle = $this->driver->getTitleSection(); ?>
<? if (!empty($subTitle)): ?>
<?php $subTitle = $this->driver->getTitleSection(); ?>
<?php if (!empty($subTitle)): ?>
<br> <?=$subTitle?>
<? endif; ?>
<?php endif; ?>
</a>
</div>
<div class="author">
<? $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?php $summAuthors = $this->driver->getPrimaryAuthorsWithHighlighting(); if (!empty($summAuthors)): ?>
<?=$this->transEsc('by')?>
<? $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<?php $authorCount = count($summAuthors); foreach ($summAuthors as $i => $summAuthor): ?>
<a href="<?=$this->record($this->driver)->getLink('author', $this->highlight($summAuthor, null, true, false))?>"><?=$this->highlight($summAuthor)?></a><?=$i + 1 < $authorCount ? ';' : ''?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</div>
<table width="99%">
@ -108,72 +108,72 @@
<th><?=$this->transEsc("Availability")?></th>
</tr>
<tr>
<? // $format = $this->driver->getFormats(); print_r($format) ; ?>
<? $eBook = in_array("eBook",$this->driver->getFormats()) ? true : false ?>
<?php // $format = $this->driver->getFormats(); print_r($format) ; ?>
<?php $eBook = in_array("eBook",$this->driver->getFormats()) ? true : false ?>
<td><?=$this->record($this->driver)->getFormatList() ?></td>
<td> <img src="/vufind/themes/bibb/images/BIBB_library_small.png"> </td>
<td>
<? $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?php $summCallNo = $this->driver->getCallNumber(); if (!empty($summCallNo)): ?>
<?=$this->escapeHtml($summCallNo)?>
<? endif; ?>
<?php endif; ?>
</td>
<td>
<? if (!$eBook && !$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus() ): ?>
<?php if (!$eBook && !$openUrlActive && empty($urls) && $this->driver->supportsAjaxStatus() ): ?>
<span class="status ajax-availability hidden">
<span class="label label-default"><?=$this->transEsc('Loading')?>...</span>
</span>
<?endif ; ?>
<? if ($eBook) : ?>
<?php if ($eBook) : ?>
<?=$this->transEsc($itemNote)?>
<? endif; ?>
<?php endif; ?>
</td>
</tr>
</tbody>
</table>
<div class="published">
<? if($this->driver->isCollection()): ?>
<?php if($this->driver->isCollection()): ?>
<?=implode('<br>', array_map(array($this, 'escapeHtml'), $this->driver->getSummary())); ?>
<? else: ?>
<?php else: ?>
<? $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<? if (!empty($journalTitle)): ?>
<?php $journalTitle = $this->driver->getContainerTitle(); $summDate = $this->driver->getPublicationDates(); ?>
<?php if (!empty($journalTitle)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published in')?>
<? $containerSource = $this->driver->getSourceIdentifier(); ?>
<? $containerID = $this->driver->getContainerRecordID(); ?>
<? /* TODO: handle highlighting more elegantly here: */?>
<?php $containerSource = $this->driver->getSourceIdentifier(); ?>
<?php $containerID = $this->driver->getContainerRecordID(); ?>
<?php /* TODO: handle highlighting more elegantly here: */?>
<a href="<?=($containerID ? $this->recordLink()->getUrl("$containerSource|$containerID") : $this->record($this->driver)->getLink('journaltitle', str_replace(array('{{{{START_HILITE}}}}', '{{{{END_HILITE}}}}'), '', $journalTitle)))?>"><?=$this->highlight($journalTitle) ?></a>
<?=!empty($summDate) ? ' (' . $this->escapeHtml($summDate[0]) . ')' : ''?>
<? elseif (!empty($summDate)): ?>
<?php elseif (!empty($summDate)): ?>
<?=!empty($summAuthor) ? '<br />' : ''?>
<?=$this->transEsc('Published') . ' ' . $this->escapeHtml($summDate[0])?>
<? endif; ?>
<? $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<? foreach ($summInCollection as $collId => $collText): ?>
<?php endif; ?>
<?php $summInCollection = $this->driver->getContainingCollections(); if (!empty($summInCollection)): ?>
<?php foreach ($summInCollection as $collId => $collText): ?>
<div>
<b><?=$this->transEsc("in_collection_label")?></b>
<a class="collectionLinkText" href="<?=$this->url('collection', array('id' => $collId))?>?recordID=<?=urlencode($this->driver->getUniqueID())?>">
<?=$this->escapeHtml($collText)?>
</a>
</div>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? if(!$this->driver->isCollection()): ?>
<? if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<? if (!empty($snippet['caption'])): ?>
<?php if(!$this->driver->isCollection()): ?>
<?php if ($snippet = $this->driver->getHighlightedSnippet()): ?>
<?php if (!empty($snippet['caption'])): ?>
<strong><?=$this->transEsc($snippet['caption']) ?>:</strong> ';
<? endif; ?>
<? if (!empty($snippet['snippet'])): ?>
<?php endif; ?>
<?php if (!empty($snippet['snippet'])): ?>
<span class="quotestart">&#8220;</span>...<?=$this->highlight($snippet['snippet']) ?>...<span class="quoteend">&#8221;</span><br/>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?
/* Display information on duplicate records if available */
@ -197,9 +197,9 @@
?>)</span><?
}?>
</div>
<? endif; ?>
<?php endif; ?>
<? /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
<?php /* We need to find out if we're supposed to display an OpenURL link ($openUrlActive),
but even if we don't plan to display the link, we still want to get the $openUrl
value for use in generating a COinS (Z3988) tag -- see bottom of file.
*/
@ -209,41 +209,41 @@
$urls = $this->record($this->driver)->getLinkDetails($openUrlActive);
if ($openUrlActive || !empty($urls)): ?>
<? if ($openUrlActive): ?>
<?php if ($openUrlActive): ?>
<br/>
<?=$openUrl->renderTemplate()?>
<? endif; ?>
<? if (!is_array($urls)) $urls = array();
<?php endif; ?>
<?php if (!is_array($urls)) $urls = array();
if(!$this->driver->isCollection()):
foreach ($urls as $current): ?>
<? if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<?php if (strncmp("https://bibb-dspace.bibb.de/jspui/handle/BIBB", $current['url'], strlen("https://bibb-dspace.bibb.de/jspui/handle/BIBB")) == 0) continue; ?>
<? if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<? $title = $this->driver->getMainTitle();
<?php if (strncmp($current['url'],"http://dispatch.opac.d-nb.de/", strlen("http://dispatch.opac.d-nb.de/")) == 0) : ?>
<?php $title = $this->driver->getMainTitle();
if (strpos($title,':') !== false) {
$title = trim(strstr($title,":", true));
} ?>
<? $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<? $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<? endif; ?>
<?php $current['url'] = "https://zdb-katalog.de/list.xhtml?t=" .urlencode("\"" .$title ."\"") ."&key=tit" ; ?>
<?php $current['desc'] = "\"" .$title ."\" in der ZDB"; ?>
<?php endif; ?>
<? if (($start = strpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<?php if (($start = strpos($this->proxyUrl($current['url']), "(")) !== false) : ?>
<a href="<?=$this->escapeHtmlAttr(trim(substr($this->proxyUrl($current['url']),0, $start-1)))?>" class="fulltext" target="new"><i class="fa fa-external-link" aria-hidden="true"></i> <?=($current['url'] == $current['desc']) ? $this->transEsc(trim(substr($this->proxyUrl($current['url']),$start+1,strlen($this->proxyUrl($current['url']))-($start+2)))) : $this->escapeHtml($current['desc'])?></a><br/>
<? endif; ?>
<?php endif; ?>
<? $LoginRequired = false ; ?>
<? if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com")) !== false || strpos($current['url'],"research.ebsco.com/")) !== false || strlen($accessRestrictions[0]) > 0) : ?>
<? $LoginRequired = true ; ?>
<? endif; ?>
<?php $LoginRequired = false ; ?>
<?php if (((strpos($current['url'],"search.ebscohost.com/login.aspx") !== false) || (strpos($current['url'], "econtent.hogrefe.com")) !== false || strpos($current['url'],"research.ebsco.com/")) !== false || strlen($accessRestrictions[0]) > 0) : ?>
<?php $LoginRequired = true ; ?>
<?php endif; ?>
<? if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?php if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?=$this->escapeHtml($current['desc'])?> &nbsp; &nbsp;
<? else: ?>
<?php else: ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>" target="_blank"><?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp;
<? endif; ?>
<? endforeach; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php endif; ?>
<div class="result-previews">
<?=$this->record($this->driver)->getPreviews()?>
@ -252,20 +252,20 @@
<div class="add-result">
<div class="favorites">
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<? /* Add to favorites */ ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Add to favorites */ ?>
<a href="<?=$this->recordLink()->getActionUrl($this->driver, 'Save')?>" data-lightbox class="save-record result-link-label" data-id="<?=$this->escapeHtmlAttr($this->driver->getUniqueId()) ?>"><?=$this->transEsc('Add to favorites')?></a>
<i class="result-link-icon fa fa-fw fa-star" aria-hidden="true"></i><br/>
<? /* Saved lists */ ?>
<?php /* Saved lists */ ?>
<div class="savedLists">
<strong><?=$this->transEsc("Saved in")?>:</strong>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<div class="result-links hidden-print">
<? /* Display qrcode if appropriate: */ ?>
<? if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?php /* Display qrcode if appropriate: */ ?>
<?php if ($QRCode = $this->record($this->driver)->getQRCode("results")): ?>
<?
// Add JS Variables for QrCode
$this->jsTranslations()->addStrings(array('qrcode_hide' => 'qrcode_hide', 'qrcode_show' => 'qrcode_show'));
@ -278,46 +278,46 @@
</script>
</div><br/>
</span>
<? endif; ?>
<?php endif; ?>
<? if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?php if ($this->cart()->isActiveInSearch() && $this->params->getOptions()->supportsCart() && $this->cart()->isActive()): ?>
<?=$this->render('record/cart-buttons.phtml', ['id' => $this->driver->getUniqueId(), 'source' => $this->driver->getSourceIdentifier()]); ?><br/>
<? endif; ?>
<?php endif; ?>
<? /* Hierarchy tree link */ ?>
<? $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<? foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<?php /* Hierarchy tree link */ ?>
<?php $trees = $this->driver->tryMethod('getHierarchyTrees'); if (!empty($trees)): ?>
<?php foreach ($trees as $hierarchyID => $hierarchyTitle): ?>
<div class="hierarchyTreeLink">
<input type="hidden" value="<?=$this->escapeHtmlAttr($hierarchyID)?>" class="hiddenHierarchyId" />
<a class="hierarchyTreeLinkText result-link-label" data-lightbox href="<?=$this->recordLink()->getTabUrl($this->driver, 'HierarchyTree')?>?hierarchy=<?=urlencode($hierarchyID)?>#tabnav" title="<?=$this->transEsc('hierarchy_tree')?>" data-lightbox-href="<?=$this->recordLink()->getTabUrl($this->driver, 'AjaxTab')?>?hierarchy=<?=urlencode($hierarchyID)?>" data-lightbox-post="tab=hierarchytree">
<?=$this->transEsc('hierarchy_view_context')?><? if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><? endif; ?>
<?=$this->transEsc('hierarchy_view_context')?><?php if (count($trees) > 1): ?>: <?=$this->escapeHtml($hierarchyTitle)?><?php endif; ?>
</a>
<i class="result-link-icon fa fa-fw fa-sitemap" aria-hidden="true"></i>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<? //Display Links to place a hold or to recall an item ?>
<? if (!$eBook) : ?>
<? if (!empty($availableLinks)) : ?>
<?php //Display Links to place a hold or to recall an item ?>
<?php if (!$eBook) : ?>
<?php if (!empty($availableLinks)) : ?>
</br>
<a <?=$availableLinks[0] ?> </a><i class="fa fa-book fa-lg" style="color:#44801e;"></i>
<?endif; ?>
<? if (empty($availableLinks) && !empty($checkedOutLinks)) : ?>
<?php if (empty($availableLinks) && !empty($checkedOutLinks)) : ?>
</br>
<a <?=$checkedOutLinks[0] ?> </a><i class="fa fa-book fa-lg" style="color:#44801e;"></i>
<?endif; ?>
<? endif ; ?>
<?php endif ; ?>
<?=$this->driver->supportsCoinsOpenUrl()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenUrl()).'"></span>':''?>
</div>
</div>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Description') . ': ' . $this->driver->getBreadcrumb());
@ -6,16 +6,16 @@
$mainFields = $formatter->getData($driver, $formatter->getDefaults('description'));
?>
<table class="table table-striped" summary="<?=$this->transEsc('Description')?>">
<? if (!empty($mainFields)): ?>
<? foreach ($mainFields as $key => $current): ?>
<? if (strcmp($key,"Language") == 0): ?>
<?php if (!empty($mainFields)): ?>
<?php foreach ($mainFields as $key => $current): ?>
<?php if (strcmp($key,"Language") == 0): ?>
<?$tr = "Language::" .$current['value'] ; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$this->translate("$tr")?></td></tr>
<? continue; ?>
<? endif; ?>
<?php continue; ?>
<?php endif; ?>
<tr><th><?=$this->transEsc($key)?>:</th><td><?=$current['value']?></td></tr>
<? endforeach; ?>
<? else: ?>
<?php endforeach; ?>
<?php else: ?>
<tr><td><?=$this->transEsc('no_description')?></td></tr>
<? endif; ?>
<?php endif; ?>
</table>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up convenience variables:
$account = $this->auth()->getManager();
$user = $account->isLoggedIn();
@ -102,188 +102,188 @@
<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?>
<? if (!empty($holdings['blocks'])):?>
<?php if (!empty($holdings['blocks'])):?>
<div id="account-block-msg" class="alert alert-danger">
<?=$this->transEsc('account_block_options_missing', ['%%details%%' => implode('; ', $holdings['blocks'])]) ?>
</div>
<? endif; ?>
<?php endif; ?>
<?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_holdings_message']) : ''?>
<? if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings['holdings'])) || $this->ils()->getTitleHoldsMode() == 'driver'): ?>
<? if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?>
<? if (!$user): ?>
<?php if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings['holdings'])) || $this->ils()->getTitleHoldsMode() == 'driver'): ?>
<?php if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?>
<?php if (!$user): ?>
<div class="alert alert-info">
<a href="<?=$this->recordLink()->getTabUrl($this->driver, 'Holdings')?>?login=true&amp;catalogLogin=true" data-lightbox><?=$this->transEsc("hold_login")?></a>
</div>
<? elseif (!$user->cat_username): ?>
<?php elseif (!$user->cat_username): ?>
<div class="alert alert-info">
<?=$this->translate("hold_profile_html", ['%%url%%' => $this->recordLink()->getTabUrl($this->driver, 'Holdings') . '?catalogLogin=true'])?>
</div>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<? $holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); if (!empty($holdingTitleHold)): ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php $holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); if (!empty($holdingTitleHold)): ?>
<a class="placehold" data-lightbox title="<?=$this->transEsc('request_place_text')?>" href="<?=$this->recordLink()->getRequestUrl($holdingTitleHold)?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc('title_hold_place')?></a>
<? endif; ?>
<? if (!empty($urls) || $openUrlActive): ?>
<?php endif; ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<h3><?=$this->transEsc("Internet")?></h3>
<? if (!empty($urls)): ?>
<? foreach ($urls as $current): ?>
<? // RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<? if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?php if (!empty($urls)): ?>
<?php foreach ($urls as $current): ?>
<?php // RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<?php if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp;
<? endif; ?>
<? // ENDE RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<? endforeach; ?>
<? endif; ?>
<? if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><? endif; ?>
<? endif; ?>
<? foreach ($holdings['holdings'] as $holding): ?>
<?php endif; ?>
<?php // ENDE RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><?php endif; ?>
<?php endif; ?>
<?php foreach ($holdings['holdings'] as $holding): ?>
<h3>
<? $locationText = $this->transEsc('location_' . $holding['location'], [], $holding['location']); ?>
<? // RKE: Ergänzung wegen eBooks: Darstellung des Status aus Koha ?>
<? $eBook = false; if (strcmp(strtolower($holding['location']), 'ebook') == 0) $eBook = true ; ?>
<?php $locationText = $this->transEsc('location_' . $holding['location'], [], $holding['location']); ?>
<?php // RKE: Ergänzung wegen eBooks: Darstellung des Status aus Koha ?>
<?php $eBook = false; if (strcmp(strtolower($holding['location']), 'ebook') == 0) $eBook = true ; ?>
<? if (isset($holding['locationhref']) && $holding['locationhref']): ?>
<?php if (isset($holding['locationhref']) && $holding['locationhref']): ?>
<a href="<?=$holding['locationhref']?>" target="_blank"><?=$locationText?></a>
<? else: ?>
<?php else: ?>
<?=$locationText?>
<? endif; ?>
<?php endif; ?>
</h3>
<table class="table table-striped" summary="<?=$this->transEsc('holdings_details_from', ['%%location%%' => $this->transEsc($holding['location'])]) ?>">
<? $callNos = $this->tab->getUniqueCallNumbers($holding['items']); if (!empty($callNos)): ?>
<?php $callNos = $this->tab->getUniqueCallNumbers($holding['items']); if (!empty($callNos)): ?>
<tr>
<th><?=$this->transEsc("Call Number")?>: </th>
<td width="50%">
<? foreach ($callNos as $callNo): ?>
<? if ($this->callnumberHandler): ?>
<?php foreach ($callNos as $callNo): ?>
<?php if ($this->callnumberHandler): ?>
<a href="<?=$this->url('alphabrowse-home') ?>?source=<?=$this->escapeHtmlAttr($this->callnumberHandler) ?>&amp;from=<?=$this->escapeHtmlAttr($callNo) ?>"><?=$this->escapeHtml($callNo)?></a>
<? else: ?>
<?php else: ?>
<?=$this->escapeHtml($callNo)?>
<? endif; ?>
<?php endif; ?>
<br />
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endif; ?>
<? if (isset($holding['textfields'])): foreach ($holding['textfields'] as $textFieldName => $textFields): ?>
<? //RKE: Mantis 187 ?>
<? if (strcmp($textFieldname == "holdings_notes") == 0) continue; ?>
<? //RKE: ENDE Mantis 187 ?>
<?php endif; ?>
<?php if (isset($holding['textfields'])): foreach ($holding['textfields'] as $textFieldName => $textFields): ?>
<?php //RKE: Mantis 187 ?>
<?php if (strcmp($textFieldname == "holdings_notes") == 0) continue; ?>
<?php //RKE: ENDE Mantis 187 ?>
<tr>
<? // Translation for summary is a special case for backwards-compatibility ?>
<?php // Translation for summary is a special case for backwards-compatibility ?>
<th><?=$textFieldName == 'summary' ? $this->transEsc("Volume Holdings") : $this->transEsc(ucfirst($textFieldName))?>:</th>
<td>
<? foreach ($textFields as $current): ?>
<?php foreach ($textFields as $current): ?>
<?=$this->escapeHtml($current)?><br/>
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endforeach; endif; ?>
<? foreach ($holding['items'] as $row): ?>
<? // AJAX Check record?
<?php endforeach; endif; ?>
<?php foreach ($holding['items'] as $row): ?>
<?php // AJAX Check record?
$check = isset($row['check']) && $row['check'];
$checkStorageRetrievalRequest = isset($row['checkStorageRetrievalRequest']) && $row['checkStorageRetrievalRequest'];
$checkILLRequest = isset($row['checkILLRequest']) && $row['checkILLRequest'];
?>
<? if (isset($row['barcode']) && $row['barcode'] != "") : ?>
<?php if (isset($row['barcode']) && $row['barcode'] != "") : ?>
<tr vocab="http://schema.org/" typeof="Offer">
<th><?=$this->transEsc("Copy")?> <?=$this->escapeHtml($row['number'])?></th>
<td>
<? if (!$eBook && $row['reserve'] == "Y"): ?>
<?php if (!$eBook && $row['reserve'] == "Y"): ?>
<link property="availability" href="http://schema.org/InStoreOnly" />
<?=$this->transEsc("On Reserve - Ask at Circulation Desk")?><br />
<? endif; ?>
<? if (isset($row['use_unknown_message']) && $row['use_unknown_message']): ?>
<?php endif; ?>
<?php if (isset($row['use_unknown_message']) && $row['use_unknown_message']): ?>
<span class="text-muted"><?=$this->transEsc("status_unknown_message")?></span>
<? else: ?>
<? if (!$eBook && $row['availability']): ?>
<? /* Begin Available Items (Holds) */ ?>
<?php else: ?>
<?php if (!$eBook && $row['availability']): ?>
<?php /* Begin Available Items (Holds) */ ?>
<? if (!$eBook && isset($row['enumchron']) && $row['enumchron']): ?>
<?php if (!$eBook && isset($row['enumchron']) && $row['enumchron']): ?>
<?=$row['enumchron'] .": "?>
<? endif;?>
<?php endif;?>
<span class="text-success"><?=$this->transEsc("Available")?><link property="availability" href="http://schema.org/InStock" /></span>
<? if (isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest ' : ''?>placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
<? endif; ?>
<? if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?>
<?php if (isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest ' : ''?>placehold" <?php if (!empty($row['linkLightbox'])): ?>data-lightbox <?php endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
<?php endif; ?>
<?php if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?>
<a class="<?=$checkStorageRetrievalRequest ? 'checkStorageRetrievalRequest ' : ''?> placeStorageRetrievalRequest" data-lightbox href="<?=$this->recordLink()->getRequestUrl($row['storageRetrievalRequestLink'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($checkStorageRetrievalRequest ? "storage_retrieval_request_check_text" : "storage_retrieval_request_place_text")?></a>
<? endif; ?>
<? if (isset($row['ILLRequestLink']) && $row['ILLRequestLink']): ?>
<?php endif; ?>
<?php if (isset($row['ILLRequestLink']) && $row['ILLRequestLink']): ?>
<a class="<?=$checkILLRequest ? 'checkILLRequest ' : ''?>placeILLRequest" data-lightbox href="<?=$this->recordLink()->getRequestUrl($row['ILLRequestLink'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($checkILLRequest ? "ill_request_check_text" : "ill_request_place_text")?></a>
<? endif; ?>
<? else: ?>
<? /* Begin Unavailable Items (Recalls) */ ?>
<? // RKE start: check if enmuchron is set ?>
<? if (isset($row['enumchron']) && $row['enumchron']): ?>
<?php endif; ?>
<?php else: ?>
<?php /* Begin Unavailable Items (Recalls) */ ?>
<?php // RKE start: check if enmuchron is set ?>
<?php if (isset($row['enumchron']) && $row['enumchron']): ?>
<?=$row['enumchron'] .": "?>
<? endif;?>
<? // RKE end ?>
<? if (!$eBook) : ?>
<?php endif;?>
<?php // RKE end ?>
<?php if (!$eBook) : ?>
<span class="text-danger"><?=$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<? if (isset($row['returnDate']) && $row['returnDate']): ?>&ndash; <span class="small"><?=$this->escapeHtml($row['returnDate'])?></span><? endif; ?>
<? if (isset($row['duedate']) && $row['duedate']): ?>
<?php if (isset($row['returnDate']) && $row['returnDate']): ?>&ndash; <span class="small"><?=$this->escapeHtml($row['returnDate'])?></span><?php endif; ?>
<?php if (isset($row['duedate']) && $row['duedate']): ?>
&ndash; <span class="small"><?=$this->transEsc("Due")?>: <?=$this->escapeHtml($row['duedate'])?></span>
<? endif; ?>
<? if (isset($row['requests_placed']) && $row['requests_placed'] > 0): ?>
<?php endif; ?>
<?php if (isset($row['requests_placed']) && $row['requests_placed'] > 0): ?>
<span><?=$this->transEsc("Requests")?>: <?=$this->escapeHtml($row['requests_placed'])?></span>
<? endif; ?>
<? if ($row['reserve'] != "X"): ?>
<? if (!$block && isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest' : ''?> placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a>
<? endif; ?>
<? endif ; ?>
<? endif; ?>
<? endif; ?>
<? if (isset($row['item_notes'])): ?>
<?php endif; ?>
<?php if ($row['reserve'] != "X"): ?>
<?php if (!$block && isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest' : ''?> placehold" <?php if (!empty($row['linkLightbox'])): ?>data-lightbox <?php endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a>
<?php endif; ?>
<?php endif ; ?>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($row['item_notes'])): ?>
<div class="item-notes">
<b><?=$this->transEsc("Item Notes")?>:</b>
<ul>
<? foreach ($row['item_notes'] as $item_note): ?>
<?php foreach ($row['item_notes'] as $item_note): ?>
<li><?=$this->escapeHtml($item_note) ?></li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
<? endif; ?>
<? endif; ?>
<? /* Embed item structured data: library, barcode, call number */ ?>
<? if ($row['location']): ?>
<?php endif; ?>
<?php endif; ?>
<?php /* Embed item structured data: library, barcode, call number */ ?>
<?php if ($row['location']): ?>
<meta property="seller" content="<?=$this->escapeHtmlAttr($row['location'])?>" />
<? endif; ?>
<? if ($row['barcode']): ?>
<?php endif; ?>
<?php if ($row['barcode']): ?>
<meta property="serialNumber" content="<?=$this->escapeHtmlAttr($row['barcode'])?>" />
<? endif; ?>
<? if ($row['callnumber']): ?>
<?php endif; ?>
<?php if ($row['callnumber']): ?>
<meta property="sku" content="<?=$this->escapeHtmlAttr($row['callnumber'])?>" />
<? endif; ?>
<? /* Declare that the item is to be borrowed, not for sale */ ?>
<?php endif; ?>
<?php /* Declare that the item is to be borrowed, not for sale */ ?>
<link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut" />
<link property="itemOffered" href="#record" />
</td>
</tr>
<? endif; ?>
<? endforeach; ?>
<? if (!empty($holding['purchase_history'])): ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if (!empty($holding['purchase_history'])): ?>
<tr>
<th><?=$this->transEsc("Most Recent Received Issues")?>:</th>
<td>
<? foreach ($holding['purchase_history'] as $current): ?>
<?php foreach ($holding['purchase_history'] as $current): ?>
<?=$this->escapeHtml($current['issue'])?><br/>
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endif; ?>
<?php endif; ?>
</table>
<? endforeach; ?>
<?php endforeach; ?>
<? $history = $this->driver->getRealTimeHistory(); ?>
<? if (is_array($history) && !empty($history)): ?>
<?php $history = $this->driver->getRealTimeHistory(); ?>
<?php if (is_array($history) && !empty($history)): ?>
<h3><?=$this->transEsc("Most Recent Received Issues")?></h3>
<table class="table table-striped">
<? foreach ($history as $row): ?>
<?php foreach ($history as $row): ?>
<tr><td><?=$this->escapeHtml($row['issue'])?></td></tr>
<? endforeach; ?>
<?php endforeach; ?>
</table>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up convenience variables:
$account = $this->auth()->getManager();
$user = $account->isLoggedIn();
@ -98,191 +98,191 @@
<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?>
<? if (!empty($holdings['blocks'])):?>
<?php if (!empty($holdings['blocks'])):?>
<div id="account-block-msg" class="alert alert-danger">
<?=$this->transEsc('account_block_options_missing', ['%%details%%' => implode('; ', $holdings['blocks'])]) ?>
</div>
<? endif; ?>
<?php endif; ?>
<?=($offlineMode == "ils-offline") ? $this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_holdings_message']) : ''?>
<? if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings['holdings'])) || $this->ils()->getTitleHoldsMode() == 'driver'): ?>
<? if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?>
<? if (!$user): ?>
<?php if (($this->ils()->getHoldsMode() == 'driver' && !empty($holdings['holdings'])) || $this->ils()->getTitleHoldsMode() == 'driver'): ?>
<?php if ($account->loginEnabled() && $offlineMode != 'ils-offline'): ?>
<?php if (!$user): ?>
<div class="alert alert-info">
<a href="<?=$this->recordLink()->getTabUrl($this->driver, 'Holdings')?>?login=true&amp;catalogLogin=true" data-lightbox><?=$this->transEsc("hold_login")?></a>
</div>
<? elseif (!$user->cat_username): ?>
<?php elseif (!$user->cat_username): ?>
<div class="alert alert-info">
<?=$this->translate("hold_profile_html", ['%%url%%' => $this->recordLink()->getTabUrl($this->driver, 'Holdings') . '?catalogLogin=true'])?>
</div>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<? $holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); if (!empty($holdingTitleHold)): ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php $holdingTitleHold = $this->driver->tryMethod('getRealTimeTitleHold'); if (!empty($holdingTitleHold)): ?>
<a class="placehold" data-lightbox title="<?=$this->transEsc('request_place_text')?>" href="<?=$this->recordLink()->getRequestUrl($holdingTitleHold)?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc('title_hold_place')?></a>
<? endif; ?>
<? if (!empty($urls) || $openUrlActive): ?>
<?php endif; ?>
<?php if (!empty($urls) || $openUrlActive): ?>
<h3><?=$this->transEsc("Internet")?></h3>
<? if (!empty($urls)): ?>
<? foreach ($urls as $current): ?>
<? // RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<? if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?php if (!empty($urls)): ?>
<?php foreach ($urls as $current): ?>
<?php // RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<?php if (($LoginRequired == true) && ! $account->isLoggedIn()) : ?>
<?=$this->escapeHtml($current['desc'])?> &nbsp; &nbsp;
<? else: ?>
<?php else: ?>
<a href="<?=$this->escapeHtmlAttr(trim($this->proxyUrl($current['url'])))?>" .' target="_blank"'><?=$this->escapeHtml($current['desc'])?></a> &nbsp; &nbsp;
<? endif; ?>
<? // ENDE RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<? endforeach; ?>
<? endif; ?>
<? if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><? endif; ?>
<? endif; ?>
<? foreach ($holdings['holdings'] as $holding): ?>
<?php endif; ?>
<?php // ENDE RKE: Änderung wegen Datenbankzugang zu EBSCO ?>
<?php endforeach; ?>
<?php endif; ?>
<?php if ($openUrlActive): ?><?=$openUrl->renderTemplate()?><?php endif; ?>
<?php endif; ?>
<?php foreach ($holdings['holdings'] as $holding): ?>
<h3>
<? $locationText = $this->transEsc('location_' . $holding['location'], [], $holding['location']); ?>
<? // RKE: Ergänzung wegen eBooks: Darstellung des Status aus Koha ?>
<? $eBook = strcmp(strtolower($holding['location']), 'ebook') ? true : false ; ?>
<?php $locationText = $this->transEsc('location_' . $holding['location'], [], $holding['location']); ?>
<?php // RKE: Ergänzung wegen eBooks: Darstellung des Status aus Koha ?>
<?php $eBook = strcmp(strtolower($holding['location']), 'ebook') ? true : false ; ?>
<? if (isset($holding['locationhref']) && $holding['locationhref']): ?>
<?php if (isset($holding['locationhref']) && $holding['locationhref']): ?>
<a href="<?=$holding['locationhref']?>" target="_blank"><?=$locationText?></a>
<? else: ?>
<?php else: ?>
<?=$locationText?>
<? endif; ?>
<?php endif; ?>
</h3>
<table class="table table-striped" summary="<?=$this->transEsc('holdings_details_from', ['%%location%%' => $this->transEsc($holding['location'])]) ?>">
<? $callNos = $this->tab->getUniqueCallNumbers($holding['items']); if (!empty($callNos)): ?>
<?php $callNos = $this->tab->getUniqueCallNumbers($holding['items']); if (!empty($callNos)): ?>
<tr>
<th><?=$this->transEsc("Call Number")?>: </th>
<td width="50%">
<? foreach ($callNos as $callNo): ?>
<? if ($this->callnumberHandler): ?>
<?php foreach ($callNos as $callNo): ?>
<?php if ($this->callnumberHandler): ?>
<a href="<?=$this->url('alphabrowse-home') ?>?source=<?=$this->escapeHtmlAttr($this->callnumberHandler) ?>&amp;from=<?=$this->escapeHtmlAttr($callNo) ?>"><?=$this->escapeHtml($callNo)?></a>
<? else: ?>
<?php else: ?>
<?=$this->escapeHtml($callNo)?>
<? endif; ?>
<?php endif; ?>
<br />
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endif; ?>
<? if (isset($holding['textfields'])): foreach ($holding['textfields'] as $textFieldName => $textFields): ?>
<? //RKE: Mantis 187 ?>
<? if (strcmp($textFieldname == "holdings_notes") == 0) continue; ?>
<? //RKE: ENDE Mantis 187 ?>
<?php endif; ?>
<?php if (isset($holding['textfields'])): foreach ($holding['textfields'] as $textFieldName => $textFields): ?>
<?php //RKE: Mantis 187 ?>
<?php if (strcmp($textFieldname == "holdings_notes") == 0) continue; ?>
<?php //RKE: ENDE Mantis 187 ?>
<tr>
<? // Translation for summary is a special case for backwards-compatibility ?>
<?php // Translation for summary is a special case for backwards-compatibility ?>
<th><?=$textFieldName == 'summary' ? $this->transEsc("Volume Holdings") : $this->transEsc(ucfirst($textFieldName))?>:</th>
<td>
<? foreach ($textFields as $current): ?>
<?php foreach ($textFields as $current): ?>
<?=$this->escapeHtml($current)?><br/>
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endforeach; endif; ?>
<? foreach ($holding['items'] as $row): ?>
<?php endforeach; endif; ?>
<?php foreach ($holding['items'] as $row): ?>
<?
// AJAX Check record?
$check = isset($row['check']) && $row['check'];
$checkStorageRetrievalRequest = isset($row['checkStorageRetrievalRequest']) && $row['checkStorageRetrievalRequest'];
$checkILLRequest = isset($row['checkILLRequest']) && $row['checkILLRequest'];
?>
<? if (isset($row['barcode']) && $row['barcode'] != "") : ?>
<?php if (isset($row['barcode']) && $row['barcode'] != "") : ?>
<tr vocab="http://schema.org/" typeof="Offer">
<th><?=$this->transEsc("Copy")?> <?=$this->escapeHtml($row['number'])?></th>
<td>
<? if (!$eBook && $row['reserve'] == "Y"): ?>
<?php if (!$eBook && $row['reserve'] == "Y"): ?>
<link property="availability" href="http://schema.org/InStoreOnly" />
<?=$this->transEsc("On Reserve - Ask at Circulation Desk")?><br />
<? endif; ?>
<? if (isset($row['use_unknown_message']) && $row['use_unknown_message']): ?>
<?php endif; ?>
<?php if (isset($row['use_unknown_message']) && $row['use_unknown_message']): ?>
<span class="text-muted"><?=$this->transEsc("status_unknown_message")?></span>
<? else: ?>
<? if (!$eBook && $row['availability']): ?>
<? /* Begin Available Items (Holds) */ ?>
<?php else: ?>
<?php if (!$eBook && $row['availability']): ?>
<?php /* Begin Available Items (Holds) */ ?>
<? if (!$eBook && isset($row['enumchron']) && $row['enumchron']): ?>
<?php if (!$eBook && isset($row['enumchron']) && $row['enumchron']): ?>
<?=$row['enumchron'] .": "?>
<? endif;?>
<? endif; ?>
<?php endif;?>
<?php endif; ?>
<? if (!$eBook) : ?>
<?php if (!$eBook) : ?>
<span class="text-success"><?=$this->transEsc("Available")?><link property="availability" href="http://schema.org/InStock" /></span>
<? if (isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest ' : ''?>placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
<? endif; ?>
<? if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?>
<?php if (isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest ' : ''?>placehold" <?php if (!empty($row['linkLightbox'])): ?>data-lightbox <?php endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Hold" : "Place a Hold")?></a>
<?php endif; ?>
<?php if (isset($row['storageRetrievalRequestLink']) && $row['storageRetrievalRequestLink']): ?>
<a class="<?=$checkStorageRetrievalRequest ? 'checkStorageRetrievalRequest ' : ''?> placeStorageRetrievalRequest" data-lightbox href="<?=$this->recordLink()->getRequestUrl($row['storageRetrievalRequestLink'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($checkStorageRetrievalRequest ? "storage_retrieval_request_check_text" : "storage_retrieval_request_place_text")?></a>
<? endif; ?>
<? if (isset($row['ILLRequestLink']) && $row['ILLRequestLink']): ?>
<?php endif; ?>
<?php if (isset($row['ILLRequestLink']) && $row['ILLRequestLink']): ?>
<a class="<?=$checkILLRequest ? 'checkILLRequest ' : ''?>placeILLRequest" data-lightbox href="<?=$this->recordLink()->getRequestUrl($row['ILLRequestLink'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($checkILLRequest ? "ill_request_check_text" : "ill_request_place_text")?></a>
<? endif; ?>
<? else: ?>
<? /* Begin Unavailable Items (Recalls) */ ?>
<? // RKE start: check if enmuchron is set ?>
<? if (isset($row['enumchron']) && $row['enumchron']): ?>
<?php endif; ?>
<?php else: ?>
<?php /* Begin Unavailable Items (Recalls) */ ?>
<?php // RKE start: check if enmuchron is set ?>
<?php if (isset($row['enumchron']) && $row['enumchron']): ?>
<?=$row['enumchron'] .": "?>
<? endif;?>
<? // RKE end ?>
<?php endif;?>
<?php // RKE end ?>
<span class="text-danger"><?=$this->transEsc($row['status'])?><link property="availability" href="http://schema.org/OutOfStock" /></span>
<? if (isset($row['returnDate']) && $row['returnDate']): ?>&ndash; <span class="small"><?=$this->escapeHtml($row['returnDate'])?></span><? endif; ?>
<? if (isset($row['duedate']) && $row['duedate']): ?>
<?php if (isset($row['returnDate']) && $row['returnDate']): ?>&ndash; <span class="small"><?=$this->escapeHtml($row['returnDate'])?></span><?php endif; ?>
<?php if (isset($row['duedate']) && $row['duedate']): ?>
&ndash; <span class="small"><?=$this->transEsc("Due")?>: <?=$this->escapeHtml($row['duedate'])?></span>
<? endif; ?>
<? if (isset($row['requests_placed']) && $row['requests_placed'] > 0): ?>
<?php endif; ?>
<?php if (isset($row['requests_placed']) && $row['requests_placed'] > 0): ?>
<span><?=$this->transEsc("Requests")?>: <?=$this->escapeHtml($row['requests_placed'])?></span>
<? endif; ?>
<? if ($row['reserve'] != "X"): ?>
<? if (!$block && isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest' : ''?> placehold" <? if (!empty($row['linkLightbox'])): ?>data-lightbox <? endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<? if (isset($row['item_notes'])): ?>
<?php endif; ?>
<?php if ($row['reserve'] != "X"): ?>
<?php if (!$block && isset($row['link']) && $row['link']): ?>
<a class="<?=$check ? 'checkRequest' : ''?> placehold" <?php if (!empty($row['linkLightbox'])): ?>data-lightbox <?php endif; ?>href="<?=$this->recordLink()->getRequestUrl($row['link'])?>"><i class="fa fa-flag" aria-hidden="true"></i>&nbsp;<?=$this->transEsc($check ? "Check Recall" : "Recall This")?></a>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($row['item_notes'])): ?>
<div class="item-notes">
<b><?=$this->transEsc("Item Notes")?>:</b>
<ul>
<? foreach ($row['item_notes'] as $item_note): ?>
<?php foreach ($row['item_notes'] as $item_note): ?>
<li><?=$this->escapeHtml($item_note) ?></li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
</div>
<? endif; ?>
<? endif; ?>
<? /* Embed item structured data: library, barcode, call number */ ?>
<? if ($row['location']): ?>
<?php endif; ?>
<?php endif; ?>
<?php /* Embed item structured data: library, barcode, call number */ ?>
<?php if ($row['location']): ?>
<meta property="seller" content="<?=$this->escapeHtmlAttr($row['location'])?>" />
<? endif; ?>
<? if ($row['barcode']): ?>
<?php endif; ?>
<?php if ($row['barcode']): ?>
<meta property="serialNumber" content="<?=$this->escapeHtmlAttr($row['barcode'])?>" />
<? endif; ?>
<? if ($row['callnumber']): ?>
<?php endif; ?>
<?php if ($row['callnumber']): ?>
<meta property="sku" content="<?=$this->escapeHtmlAttr($row['callnumber'])?>" />
<? endif; ?>
<? /* Declare that the item is to be borrowed, not for sale */ ?>
<?php endif; ?>
<?php /* Declare that the item is to be borrowed, not for sale */ ?>
<link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut" />
<link property="itemOffered" href="#record" />
</td>
</tr>
<? endif; ?>
<? endforeach; ?>
<? if (!empty($holding['purchase_history'])): ?>
<?php endif; ?>
<?php endforeach; ?>
<?php if (!empty($holding['purchase_history'])): ?>
<tr>
<th><?=$this->transEsc("Most Recent Received Issues")?>:</th>
<td>
<? foreach ($holding['purchase_history'] as $current): ?>
<?php foreach ($holding['purchase_history'] as $current): ?>
<?=$this->escapeHtml($current['issue'])?><br/>
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endif; ?>
<?php endif; ?>
</table>
<? endforeach; ?>
<?php endforeach; ?>
<? $history = $this->driver->getRealTimeHistory(); ?>
<? if (is_array($history) && !empty($history)): ?>
<?php $history = $this->driver->getRealTimeHistory(); ?>
<?php if (is_array($history) && !empty($history)): ?>
<h3><?=$this->transEsc("Most Recent Received Issues")?></h3>
<table class="table table-striped">
<? foreach ($history as $row): ?>
<?php foreach ($history as $row): ?>
<tr><td><?=$this->escapeHtml($row['issue'])?></td></tr>
<? endforeach; ?>
<?php endforeach; ?>
</table>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Staff View') . ': ' . $this->driver->getBreadcrumb());
?>
@ -10,18 +10,18 @@
<td width="5%"></td>
<td width="*"></td>
</tr>
<? $displayFields = array('id','recordtype','citation','citationdr','collection', 'participation','researchfocus','license','rightslicense', 'rightsuri','rightsholder', 'embargoterms', 'embargoliftdate','url'); ?>
<? foreach ($this->driver->getRawData() as $field => $values): ?>
<? if (in_array($field,$displayFields)) : ?>
<?php $displayFields = array('id','recordtype','citation','citationdr','collection', 'participation','researchfocus','license','rightslicense', 'rightsuri','rightsholder', 'embargoterms', 'embargoliftdate','url'); ?>
<?php foreach ($this->driver->getRawData() as $field => $values): ?>
<?php if (in_array($field,$displayFields)) : ?>
<tr>
<th><?=$this->escapeHtml($this->translate("BIBBFields::" .$field)) ?>:</th>
<td colspan="3">
<? if (!is_array($values)) { $values = [$values]; } ?>
<? foreach ($values as $value): ?>
<?php if (!is_array($values)) { $values = [$values]; } ?>
<?php foreach ($values as $value): ?>
<?=$this->escapeHtml(is_array($value) ? print_r($value, true) : $value)?><br />
<? endforeach; ?>
<?php endforeach; ?>
</td>
</tr>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</table>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Search Home'));
@ -34,10 +34,10 @@ $(document).ready(function() {
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $ilsStatusScript, 'SET'); ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $ilsStatusScript, 'SET'); ?>
<?=$this->context($this)->renderInContext("search/searchboxAuthorities.phtml", ['ignoreHiddenFilterMemory' => true])?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$("#searchForm_lookfor").focus();', 'SET'); ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, '$("#searchForm_lookfor").focus();', 'SET'); ?>
</div>
<div class="mainbody left">

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up standard record scripts:
$this->headScript()->appendFile("record.js");
$this->headScript()->appendFile("check_save_statuses.js");
@ -45,44 +45,44 @@
<div class="record source<?=$this->escapeHtmlAttr($this->driver->getSourceIdentifier())?>">
<div class="<?=$this->layoutClass('mainbody')?>">
<? if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?>
<?php if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?>
<ul class="pager hidden-print">
<? if ($this->scrollData['previousRecord']): ?>
<? if ($this->scrollData['firstRecord']): ?>
<?php if ($this->scrollData['previousRecord']): ?>
<?php if ($this->scrollData['firstRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['firstRecord'])?>" title="<?=$this->transEsc('First Search Result')?>" rel="nofollow">&laquo; <?=$this->transEsc('First')?></a>
</li>
<? endif; ?>
<?php endif; ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['previousRecord'])?>" title="<?=$this->transEsc('Previous Search Result')?>" rel="nofollow">&laquo; <?=$this->transEsc('Prev')?></a>
</li>
<? else: ?>
<? if ($this->scrollData['firstRecord']): ?>
<?php else: ?>
<?php if ($this->scrollData['firstRecord']): ?>
<li class="disabled"><a href="#">&laquo; <?=$this->transEsc('First')?></a></li>
<? endif; ?>
<?php endif; ?>
<li class="disabled"><a href="#">&laquo; <?=$this->transEsc('Prev')?></a></li>
<? endif; ?>
<?php endif; ?>
<?=$this->transEsc('of_num_results', [
'%%position%%' => $this->localizedNumber($this->scrollData['currentPosition']),
'%%total%%' => $this->localizedNumber($this->scrollData['resultTotal'])
]) ?>
<? if ($this->scrollData['nextRecord']): ?>
<?php if ($this->scrollData['nextRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['nextRecord'])?>" title="<?=$this->transEsc('Next Search Result')?>" rel="nofollow"><?=$this->transEsc('Next')?> &raquo;</a>
</li>
<? if ($this->scrollData['lastRecord']): ?>
<?php if ($this->scrollData['lastRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['lastRecord'])?>" title="<?=$this->transEsc('Last Search Result')?>" rel="nofollow"><?=$this->transEsc('Last')?> &raquo;</a>
</li>
<? endif; ?>
<? else: ?>
<?php endif; ?>
<?php else: ?>
<li class="disabled"><a href="#"><?=$this->transEsc('Next')?> &raquo;</a></li>
<? if ($this->scrollData['lastRecord']): ?>
<?php if ($this->scrollData['lastRecord']): ?>
<li class="disabled"><a href="#"><?=$this->transEsc('Last')?> &raquo;</a></li>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
</ul>
<? endif; ?>
<?php endif; ?>
<div class="clear"></div>
@ -98,18 +98,18 @@
<!-- https://lit.bibb.de/vufind/Search/Results?lookfor=keck&type=Subject&limit=20&sort=year -->
<a href="https://lit.bibb.de/vufind/Search/Results?lookfor=<?=urlencode('"' .$heading .'"') ?>&type=<?=$searchFields[$authorityType]?>&limit=20&sort=year" class="title"><?=$this->escapeHtml($heading)?></a>
<span style="font-size:17px">(<?= $this->transEsc($authorityType) ?>)</span>
<? //if($authorityType == "Subject") : ?>
<!-- <span style="font-size:17px">(<? // = $occurance ?>)</span> -->
<? //endif ; ?>
<? if (!empty($coreFields['Scopenote'])) : ?>
<?php //if($authorityType == "Subject") : ?>
<!-- <span style="font-size:17px">(<?php // = $occurance ?>)</span> -->
<?php //endif ; ?>
<?php if (!empty($coreFields['Scopenote'])) : ?>
<p>
<span style="font-size:17px;font-weight:normal"><?=$this->escapeHtml($coreFields['Scopenote'])?></span>
<p>
<? endif ; ?>
<? if (!empty($useForText)) : ?>
<?php endif ; ?>
<?php if (!empty($useForText)) : ?>
<p><span style="font-size:17px;font-weight:bold"><?= $this->transEsc('Use for') ?>: </span>
<span style="font-size:17px;"> <?= $useForText ?> </span>
<? endif ; ?>
<?php endif ; ?>
</div>
<table class="table table-striped">
@ -119,22 +119,22 @@
<td width="*"></td>
</tr>
<? foreach ($coreFields as $key => $current): ?>
<? $displayed = false ?>
<? if ($key != "Scopenote" && $key != "Use for" && $key != "Authority type") : ?>
<? if ($displayed === false) : ?>
<? if (!empty ($coreFields[$key] )) : ?>
<?php foreach ($coreFields as $key => $current): ?>
<?php $displayed = false ?>
<?php if ($key != "Scopenote" && $key != "Use for" && $key != "Authority type") : ?>
<?php if ($displayed === false) : ?>
<?php if (!empty ($coreFields[$key] )) : ?>
<tr><td><?=$this->transEsc($key)?>:</td><td></td><td>
<? $displayed = true; ?>
<? endif; ?>
<? endif ; ?>
<? foreach($current as $entry) : ?>
<? $tmp = explode("|", $entry) ; list($id, $text) = $tmp; ?>
<?php $displayed = true; ?>
<?php endif; ?>
<?php endif ; ?>
<?php foreach($current as $entry) : ?>
<?php $tmp = explode("|", $entry) ; list($id, $text) = $tmp; ?>
<a href="<?=$id?>"><?=($text)?></a><p>
<? endforeach; ?>
<?php endforeach; ?>
</td></tr>
<? endif ; ?>
<? endforeach ;?>
<?php endif ; ?>
<?php endforeach ;?>
</table>
<?/* End Main Details */?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Load standard settings from the default search results screen:
echo $this->render('search/resultsAuthorities.phtml');
?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Book Bag'));
@ -12,7 +12,7 @@
<form class="form-inline" action="<?=$this->url('cart-processor')?>" method="post" name="cartForm" data-lightbox-onsubmit="cartFormHandler">
<input type="hidden" id="dropdown_value"/>
<? if (!$this->cart()->isEmpty()): ?>
<?php if (!$this->cart()->isEmpty()): ?>
<div class="cart-controls clearfix">
<div class="checkbox pull-left flip">
<label>
@ -24,22 +24,22 @@
<i class="fa fa-envelope-o" aria-hidden="true"></i>
<?=$this->transEsc('Email')?>
</button>
<? $exportOptions = $this->export()->getActiveFormats('bulk'); if (count($exportOptions) > 0): ?>
<?php $exportOptions = $this->export()->getActiveFormats('bulk'); if (count($exportOptions) > 0): ?>
<button type="submit" class="btn btn-default" name="export" title="<?=$this->transEsc('bookbag_export')?>" value="1">
<i class="fa fa-list-alt" aria-hidden="true"></i>
<?=$this->transEsc('Export')?>
</button>
<? endif; ?>
<?php endif; ?>
<button type="submit" class="btn btn-default dropdown-toggle" name="print" title="<?=$this->transEsc('print_selected')?>" value="1">
<i class="fa fa-printer" aria-hidden="true"></i>
<?=$this->transEsc('Print')?>
</button>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<button type="submit" class="btn btn-default" name="saveCart" title="<?=$this->transEsc('bookbag_save')?>" value="1">
<i class="fa fa-save" aria-hidden="true"></i>
<?=$this->transEsc('Save')?>
</button>
<? endif; ?>
<?php endif; ?>
<div class="btn-group" id="cartDelete">
<button type="submit" name="delete" class="btn btn-default dropdown-toggle" data-toggle="dropdown" id="cart-delete-label" value="1">
<i class="fa fa-trash" aria-hidden="true"></i>
@ -61,7 +61,7 @@
</ul>
</div>
</div>
<? endif; ?>
<?php endif; ?>
<?=$this->render('cart/contents.phtml')?>
</form>
@ -73,4 +73,4 @@
}
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET') ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET') ?>

View File

@ -1,7 +1,7 @@
<? $records = $this->cart()->getRecordDetails(); if (!empty($records)): ?>
<?php $records = $this->cart()->getRecordDetails(); if (!empty($records)): ?>
<hr/>
<ul class="list-unstyled">
<? foreach ($records as $i => $record): ?>
<?php foreach ($records as $i => $record): ?>
<li>
<div class="checkbox">
<label>
@ -10,8 +10,8 @@
</label>
</div>
</li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
<? else: ?>
<?php else: ?>
<p class="alert alert-info"><?=$this->transEsc('bookbag_is_empty')?>.</p>
<? endif; ?>
<?php endif; ?>

View File

@ -16,5 +16,5 @@
}
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET') ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET') ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title
$function = $_GET['function'];
@ -8,16 +8,16 @@ if ($function == "feedback") {
$this->layout()->feedbacktab = false;
?>
<?=$this->render('feedback/form.phtml');?>
<? } ?>
<?php } ?>
<?
<?php
if($function == "requestArticle") {
$this->headTitle($this->translate('Request article'));
// Get rid of the feedback tab since this uses the same variables
$this->layout()->feedbacktab = false;
?>
<?=$this->render('requestarticle/form.phtml');?>
<? } ?>
<?php } ?>
<?
if($function == "requestPaper") {
@ -26,5 +26,5 @@ if($function == "requestPaper") {
$this->layout()->feedbacktab = false;
?>
<?=$this->render('requestpaper/form.phtml');?>
<? } ?>
<?php } ?>
<?=$this->flashmessages() ?>

View File

@ -1,17 +1,17 @@
<? $account = $this->auth()->getManager() ?>
<? $user = $account->isLoggedIn() ?>
<? if (!$user) : ?>
<?php $account = $this->auth()->getManager() ?>
<?php $user = $account->isLoggedIn() ?>
<?php if (!$user) : ?>
<p>Leider wurde diese Funktion sehr häufig missbraucht, um Spammails an die Bibliothek zu senden. Daher steht dieser Service nur BIBB-Mitarbeitenden zur Verfügung.<br><br> Um unseren Service als BIBB-Mitarbeitender zu nutzen, melden Sie sich bitte zuerst an.</p> </br>
<a href="<?=$this->url('myresearch-userlogin')?>" data-lightbox><i class="fa">&#xf090;</i> <?=$this->transEsc("Login")?></a>
<? endif; ?>
<?php endif; ?>
<? //$account = $this->auth()->getManager() ?>
<? //$user = $account->isLoggedIn() ?>
<?php //$account = $this->auth()->getManager() ?>
<?php //$user = $account->isLoggedIn() ?>
<? if ($user) : ?>
<? $name = $user['firstname'] ." " .$user['lastname'] ?>
<? $email = $user['email'] ?>
<? $comments = $_GET['comments']; ?>
<?php if ($user) : ?>
<?php $name = $user['firstname'] ." " .$user['lastname'] ?>
<?php $email = $user['email'] ?>
<?php $comments = $_GET['comments']; ?>
<h4><?=$this->transEsc("Report broken link")?></h4>
<p>Vielen Dank für Ihre Unterstützung. Wir werden den Link baldmöglich prüfen und ggf. korrigieren.</p></br>
@ -34,4 +34,4 @@
<input type="submit" name="submit" class="btn btn-primary" value="<?=$this->transEsc("Send")?>" />
</div>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<? $account = $this->auth()->getManager(); ?>
<?php $account = $this->auth()->getManager(); ?>
<div class="navigation-header">
<div class="inside">
@ -11,19 +11,19 @@
<li class="storage"><a href="https://www.bibb.de/repository"><?=$this->transEsc("About the VET Repository")?></a></li>
<li class="library"><a href="https://www.bibb.de/bibliothek/"><?=$this->transEsc("About the Library")?></a></li>
<? if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?>
<?php if (isset($this->layout()->allLangs) && count($this->layout()->allLangs) > 1): ?>
<li class="language dropdown">
<form method="post" name="langForm" id="langForm">
<input type="hidden" name="mylang"/>
</form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Language")?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<? foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<?php foreach ($this->layout()->allLangs as $langCode => $langName): ?>
<li<?=$this->layout()->userLang == $langCode ? ' class="active"' : ''?>><a href="#" onClick="document.langForm.mylang.value='<?=$langCode?>';document.langForm.submit()"><?=$this->displayLanguageOption($langName)?></a></li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
</li>
<? endif; ?>
<?php endif; ?>
</ul>
</div>
@ -87,15 +87,15 @@
</ul>
</div>
<? if (!isset($this->layout()->renderingError)): ?>
<?php if (!isset($this->layout()->renderingError)): ?>
<div class="collapse navbar-collapse" id="header-collapse">
<nav>
<ul role="navigation" class="nav navbar-nav navbar-right flip">
<? $cart = $this->cart(); if ($cart->isActive()): ?>
<?php $cart = $this->cart(); if ($cart->isActive()): ?>
<? endif; ?>
<? if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?>
<li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>">
<?php endif; ?>
<?php if (is_object($account) && $account->loginEnabled()): // hide login/logout if unavailable ?>
<li class="logoutOptions<?php if(!$account->isLoggedIn()): ?> hidden<?php endif ?>">
<a href="<?=$this->url('myresearch-home', array(), array('query' => array('redirect' => 0)))?>"><?=$this->transEsc("Your Account")?></a>
</li>
@ -106,40 +106,40 @@
</a>
</li>
<li class="logoutOptions<? if(!$account->isLoggedIn()): ?> hidden<? endif ?>">
<li class="logoutOptions<?php if(!$account->isLoggedIn()): ?> hidden<?php endif ?>">
<a href="<?=$this->url('myresearch-logout')?>" class="logout"> <?=$this->transEsc("Log Out")?></a>
</li>
<li id="loginOptions"<? if($account->isLoggedIn()): ?> class="hidden"<? endif ?>>
<? if ($account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?>
<li id="loginOptions"<?php if($account->isLoggedIn()): ?> class="hidden"<?php endif ?>>
<?php if ($account->getSessionInitiator($this->serverUrl($this->url('myresearch-home')))): ?>
<a href="<?=$this->url('myresearch-userlogin')?>"><i class="fa fa-sign-in" aria-hidden="true"></i> <?=$this->transEsc("Institutional Login")?></a>
<? else: ?>
<?php else: ?>
<a href="<?=$this->url('myresearch-userlogin')?>" data-lightbox><?=$this->transEsc("Login")?></a>
<? endif; ?>
<?php endif; ?>
</li>
<? endif; ?>
<?php endif; ?>
<? if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?>
<?php if (isset($this->layout()->themeOptions) && count($this->layout()->themeOptions) > 1): ?>
<li class="theme dropdown">
<form method="post" name="themeForm" id="themeForm">
<input type="hidden" name="ui"/>
</form>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?=$this->transEsc("Theme")?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<? foreach ($this->layout()->themeOptions as $current): ?>
<?php foreach ($this->layout()->themeOptions as $current): ?>
<li<?=$current['selected'] ? ' class="active"' : ''?>><a href="#" onClick="document.themeForm.ui.value='<?=$this->escapeHtmlAttr($current['name'])?>';document.themeForm.submit()"><?=$this->transEsc($current['desc'])?></a></li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
</li>
<? endif; ?>
<?php endif; ?>
</ul>
</nav>
</div>
<? endif; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
<? if ($this->layout()->searchbox !== false): ?>
<?php if ($this->layout()->searchbox !== false): ?>
<div class="blue-container">
<div class="container">
@ -161,4 +161,4 @@
<?=$this->layout()->searchbox ?>
</nav>
</div>
<? endif; ?>
<?php endif; ?>

View File

@ -1,9 +1,9 @@
<? $this->headTitle($this->translate('Help')); ?>
<? if ($help = $this->helpText()->render($topic)): ?>
<? foreach ($this->helpText()->getWarnings() as $warning): ?>
<?php $this->headTitle($this->translate('Help')); ?>
<?php if ($help = $this->helpText()->render($topic)): ?>
<?php foreach ($this->helpText()->getWarnings() as $warning): ?>
<p class="alert alert-warning"><?=$this->transEsc($warning)?></p>
<? endforeach; ?>
<?php endforeach; ?>
<?=$help?>
<? else: ?>
<?php else: ?>
<p class="alert alert-danger"><?=$this->transEsc('help_page_missing')?></p>
<? endif; ?>
<?php endif; ?>

View File

@ -1,7 +1,7 @@
<?=$this->doctype('HTML5')?>
<html lang="<?=$this->layout()->userLang?>">
<head>
<?$this->headThemeResources()?>
<?=$this->headThemeResources()?>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
@ -9,7 +9,7 @@
<?=$this->headMeta()?>
<?=$this->headTitle()?>
<link rel="shortcut icon" href="https://www.bibb.de/system/library/favicon.ico"/>
<?
<?php
// Set up OpenSearch link:
$this->headLink(
[
@ -21,12 +21,12 @@
);
?>
<!-- RTL styling -->
<? if ($this->layout()->rtl) {
<?php if ($this->layout()->rtl) {
$this->headLink()->appendStylesheet('vendor/bootstrap-rtl.min.css');
} ?>
<?=$this->headLink()?>
<?=$this->headStyle()?>
<?
<?php
if (!isset($this->renderingError)) {
// Add translation strings
$this->jsTranslations()->addStrings(
@ -104,13 +104,13 @@
}
// Session keep-alive
if ($this->KeepAlive()) {
if ($this->keepAlive()) {
$this->headScript()->appendScript('var keepAliveInterval = '
. $this->KeepAlive());
. $this->keepAlive());
$this->headScript()->appendFile("keep_alive.js");
}
?>
<?
<?php
$root = rtrim($this->url('home'), '/');
$translations = $this->jsTranslations()->getJSON();
$dsb = DEFAULT_SEARCH_BACKEND;
@ -145,8 +145,8 @@ JS;
<!-- End Matomo Code -->
</head>
<body class="template-dir-<?=$this->templateDir?> template-name-<?=$this->templateName?> <?=$this->layoutClass('offcanvas-row')?><? if ($this->layout()->rtl): ?> rtl<? endif; ?>">
<? // Set up the search box -- there are three possible cases:
<body class="template-dir-<?=$this->templateDir?> template-name-<?=$this->templateName?> <?=$this->layoutClass('offcanvas-row')?><?php if ($this->layout()->rtl): ?> rtl<?php endif; ?>">
<?php // Set up the search box -- there are three possible cases:
// 1. No search box was set; we should default to the normal box
// 2. It was set to false; we should display nothing
// 3. It is set to a custom string; we should display the provided version
@ -157,37 +157,37 @@ JS;
}
?>
<header class="hidden-print">
<? if (isset($this->layout()->srmessage)): // message for benefit of screen-reader users ?>
<?php if (isset($this->layout()->srmessage)): // message for benefit of screen-reader users ?>
<span class="sr-only"><?=$this->layout()->srmessage ?></span>
<? endif; ?>
<?php endif; ?>
<a class="sr-only" href="#content"><?=$this->transEsc('Skip to content') ?></a>
<?=$this->render('header.phtml')?>
</header>
<nav class="breadcrumbs">
<div class="container">
<? if((!isset($this->layout()->showBreadcrumbs) || $this->layout()->showBreadcrumbs == true)
<?php if((!isset($this->layout()->showBreadcrumbs) || $this->layout()->showBreadcrumbs == true)
&& !empty($this->layout()->breadcrumbs)
&& $this->layout()->breadcrumbs !== false
): ?>
<ul class="breadcrumb hidden-print">
<? if(is_array($this->layout()->breadcrumbs)): ?>
<? if(count($this->layout()->breadcrumbs) > 1): ?>
<?php if(is_array($this->layout()->breadcrumbs)): ?>
<?php if(count($this->layout()->breadcrumbs) > 1): ?>
<?=$this->render('breadcrumbs/multi.phtml', [
'parents' => $this->layout()->breadcrumbs,
'title' => $this->layout()->title,
'from' => $this->layout()->from
]) ?>
<? else: ?>
<?php else: ?>
<?=$this->render('breadcrumbs/default.phtml', [
'parents' => $this->layout()->breadcrumbs,
'title' => $this->layout()->title
]) ?>
<? endif; ?>
<? else: ?>
<?php endif; ?>
<?php else: ?>
<?=$this->layout()->breadcrumbs ?>
<? endif; ?>
<?php endif; ?>
</ul>
<? endif; ?>
<?php endif; ?>
</div>
</nav>
<div role="main" class="main">
@ -209,8 +209,5 @@ JS;
<div class="offcanvas-overlay" data-toggle="offcanvas"></div>
<?=$this->googleanalytics()?>
<?=$this->piwik()?>
<? if ($this->recaptcha()->active()): ?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::FILE, "https://www.google.com/recaptcha/api.js?onload=recaptchaOnLoad&render=explicit&hl=" . $this->layout()->userLang, 'SET')?>
<? endif; ?>
</body>
</html>

View File

@ -1,8 +1,8 @@
<? if (isset($list)): ?>
<?php if (isset($list)): ?>
<input type="hidden" name="listID" value="<?=$this->escapeHtmlAttr($list->id)?>" />
<input type="hidden" name="listName" value="<?=$this->escapeHtmlAttr($list->title)?>" />
<? endif; ?>
<? $user = $this->auth()->isLoggedIn(); ?>
<?php endif; ?>
<?php $user = $this->auth()->isLoggedIn(); ?>
<div class="bulkActionButtons">
<div class="bulk-checkbox">
<input type="checkbox" name="selectAll" class="checkbox-select-all" id="myresearchCheckAll"/>
@ -10,15 +10,15 @@
</div>
<div class="btn-group">
<input class="btn btn-default" type="submit" name="email" value="<?=$this->transEsc('Email')?>" title="<?=$this->transEsc('email_selected')?>"/>
<? if ((!is_null($this->list) && $this->list->editAllowed($user)) || is_null($this->list) && $user): ?>
<?php if ((!is_null($this->list) && $this->list->editAllowed($user)) || is_null($this->list) && $user): ?>
<input class="btn btn-default" id="<?=$this->idPrefix?>delete_list_items_<?=!is_null($this->list) ? $this->escapeHtmlAttr($this->list->id) : ''?>" type="submit" name="delete" value="<?=$this->transEsc('Delete')?>" title="<?=$this->transEsc('delete_selected')?>"/>
<? endif; ?>
<? $exportOptions = $this->export()->getActiveFormats('bulk'); if (count($exportOptions) > 0): ?>
<?php endif; ?>
<?php $exportOptions = $this->export()->getActiveFormats('bulk'); if (count($exportOptions) > 0): ?>
<input class="btn btn-default" type="submit" name="export" value="<?=$this->transEsc('Export')?>" title="<?=$this->transEsc('export_selected')?>"/>
<? endif; ?>
<?php endif; ?>
<input class="btn btn-default" type="submit" name="print" value="<?=$this->transEsc('Print')?>" title="<?=$this->transEsc('print_selected')?>" data-lightbox-ignore/>
<? if ($this->cart()->isActive()): ?>
<?php if ($this->cart()->isActive()): ?>
<input class="btn btn-default" id="<?=$this->idPrefix?>updateCart" type="submit" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"/>
<? endif; ?>
<?php endif; ?>
</div>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$this->headTitle($this->translate('Checked Out Items'));
@ -8,20 +8,20 @@
<div class="<?=$this->layoutClass('mainbody')?>">
<h2><?=$this->transEsc('Your Checked Out Items')?></h2>
<? if ($paginator): ?>
<?php if ($paginator): ?>
<?
$anz = $paginator->getTotalItemCount();
if ($anz >= 100) : ?>
<!-- <h3 style="color:red">Konto wird nicht vollständig angezeigt!</h3> -->
<? endif; ?>
<?php endif; ?>
<?endif; ?>
<?=$this->flashmessages()?>
<?=$this->context($this)->renderInContext('librarycards/selectcard.phtml', ['user' => $this->auth()->isLoggedIn()]); ?>
<? if (!empty($this->transactions)): ?>
<? if ($this->renewForm): ?>
<?php if (!empty($this->transactions)): ?>
<?php if ($this->renewForm): ?>
<form name="renewals" method="post" id="renewals">
<div class="toolbar">
<div class="checkbox">
@ -33,9 +33,9 @@
<input type="submit" class="btn btn-default" id="renewAll" name="renewAll" value="<?=$this->transEsc('renew_all')?>" />
</div>
</div>
<? endif; ?>
<?php endif; ?>
<? if ($paginator): ?>
<?php if ($paginator): ?>
<?
$end = min(
$paginator->getAbsoluteItemNumber($paginator->getItemCountPerPage()),
@ -48,30 +48,30 @@
];
?>
<?=$this->translate('showing_items_of_html', $transParams); ?>
<? endif; ?>
<?php endif; ?>
<? foreach ($hiddenTransactions as $ilsDetails): ?>
<? if (isset($this->renewResult[$ilsDetails['item_id']])): ?>
<? $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?>
<? $prefix = isset($ilsDetails['title']) ? $ilsDetails['title'] : $ilsDetails['item_id']; ?>
<? if (isset($renewDetails['success']) && $renewDetails['success']): ?>
<?php foreach ($hiddenTransactions as $ilsDetails): ?>
<?php if (isset($this->renewResult[$ilsDetails['item_id']])): ?>
<?php $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?>
<?php $prefix = isset($ilsDetails['title']) ? $ilsDetails['title'] : $ilsDetails['item_id']; ?>
<?php if (isset($renewDetails['success']) && $renewDetails['success']): ?>
<div class="alert alert-success"><?=$this->escapeHtml($prefix . ': ') . $this->transEsc('renew_success')?></div>
<? else: ?>
<div class="alert alert-danger"><?=$this->escapeHtml($prefix . ': ') . $this->transEsc('renew_fail')?><? if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><? endif; ?></div>
<? endif; ?>
<? endif; ?>
<? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?>
<? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?>
<?php else: ?>
<div class="alert alert-danger"><?=$this->escapeHtml($prefix . ': ') . $this->transEsc('renew_fail')?><?php if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><?php endif; ?></div>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?>
<?php $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?>
<input class="pull-left flip" type="hidden" name="renewAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" />
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<? $i = 0; foreach ($this->transactions as $resource): ?>
<? $ilsDetails = $resource->getExtraDetail('ils_details'); ?>
<?php $i = 0; foreach ($this->transactions as $resource): ?>
<?php $ilsDetails = $resource->getExtraDetail('ils_details'); ?>
<div id="record<?=$this->escapeHtmlAttr($resource->getUniqueId())?>" class="result">
<? if ($this->renewForm): ?>
<? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?>
<? $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?>
<?php if ($this->renewForm): ?>
<?php if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_details'])): ?>
<?php $safeId = preg_replace('/[^a-zA-Z0-9]/', '', $ilsDetails['renew_details']); ?>
<div class="checkbox">
<label>
<input class="checkbox-select-item" type="checkbox" name="renewSelectedIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" id="checkbox_<?=$safeId?>" />
@ -79,8 +79,8 @@
<input type="hidden" name="selectAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" />
<input type="hidden" name="renewAllIDS[]" value="<?=$this->escapeHtmlAttr($ilsDetails['renew_details'])?>" />
</div>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?
$coverDetails = $this->record($resource)->getCoverDetails('checkedout', 'small', $this->recordLink()->getUrl($resource));
@ -92,13 +92,13 @@
<div class="media-<?=$thumbnailAlignment ?> <?=$this->escapeHtmlAttr($coverDetails['size'])?>">
<?=$cover ?>
</div>
<? $thumbnail = ob_get_contents(); ?>
<? ob_end_clean(); ?>
<? endif; ?>
<?php $thumbnail = ob_get_contents(); ?>
<?php ob_end_clean(); ?>
<?php endif; ?>
<div class="media">
<? if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'left'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
<div class="media-body">
<?
// If this is a non-missing Solr record, we should display a link:
@ -115,95 +115,95 @@
echo $this->transEsc('Title not available');
}
?><br/>
<? $listAuthors = $resource->getPrimaryAuthors(); if (!empty($listAuthors)): ?>
<?php $listAuthors = $resource->getPrimaryAuthors(); if (!empty($listAuthors)): ?>
<?=$this->transEsc('by')?>:
<a href="<?=$this->record($resource)->getLink('author', $listAuthors[0])?>"><?=$this->escapeHtml($listAuthors[0])?></a><? if (count($listAuthors) > 1): ?>, <?=$this->transEsc('more_authors_abbrev')?><? endif; ?><br/>
<? endif; ?>
<? if (!empty($ilsDetails['callnumber'])): ?>
<a href="<?=$this->record($resource)->getLink('author', $listAuthors[0])?>"><?=$this->escapeHtml($listAuthors[0])?></a><?php if (count($listAuthors) > 1): ?>, <?=$this->transEsc('more_authors_abbrev')?><?php endif; ?><br/>
<?php endif; ?>
<?php if (!empty($ilsDetails['callnumber'])): ?>
<strong><?=$this->transEsc('Call number')?>:</strong> <?=$this->escapeHtml($ilsDetails['callnumber'])?>
<br />
<? endif; ?>
<? if (count($resource->getFormats()) > 0): ?>
<?php endif; ?>
<?php if (count($resource->getFormats()) > 0): ?>
<?=$this->record($resource)->getFormatList() ?>
<br/>
<? endif; ?>
<? if (!empty($ilsDetails['volume'])): ?>
<?php endif; ?>
<?php if (!empty($ilsDetails['volume'])): ?>
<strong><?=$this->transEsc('Volume')?>:</strong> <?=$this->escapeHtml($ilsDetails['volume'])?>
<br />
<? endif; ?>
<?php endif; ?>
<? if (!empty($ilsDetails['publication_year'])): ?>
<?php if (!empty($ilsDetails['publication_year'])): ?>
<strong><?=$this->transEsc('Year of Publication')?>:</strong> <?=$this->escapeHtml($ilsDetails['publication_year'])?>
<br />
<? endif; ?>
<?php endif; ?>
<? if (!empty($ilsDetails['institution_name']) && (empty($ilsDetails['borrowingLocation']) || $ilsDetails['institution_name'] != $ilsDetails['borrowingLocation'])): ?>
<?php if (!empty($ilsDetails['institution_name']) && (empty($ilsDetails['borrowingLocation']) || $ilsDetails['institution_name'] != $ilsDetails['borrowingLocation'])): ?>
<strong><?=$this->transEsc('location_' . $ilsDetails['institution_name'], [], $ilsDetails['institution_name'])?></strong>
<br />
<? endif; ?>
<?php endif; ?>
<? if (!empty($ilsDetails['borrowingLocation'])): ?>
<?php if (!empty($ilsDetails['borrowingLocation'])): ?>
<strong><?=$this->transEsc('Borrowing Location')?>:</strong> <?=$this->transEsc('location_' . $ilsDetails['borrowingLocation'], [], $ilsDetails['borrowingLocation'])?>
<br />
<? endif; ?>
<?php endif; ?>
<? if (isset($ilsDetails['renew'])): ?>
<?php if (isset($ilsDetails['renew'])): ?>
<?if(isset($ilsDetails['renewlimit'])) : ?>
<? if($ilsDetails['renewLimit'] > 0) : ?>
<?php if($ilsDetails['renewLimit'] > 0) : ?>
<strong><?=$this->transEsc('Renewed')?>:</strong> <?=$this->transEsc($ilsDetails['renew'])?>
<strong>(<?=$this->transEsc('Last renewal')?>: </strong> <?=$this->transEsc($ilsDetails['lastreneweddate'])?>)
<? if (isset($ilsDetails['renewLimit'])): ?>
<?php if (isset($ilsDetails['renewLimit'])): ?>
/ <?=$this->transEsc($ilsDetails['renewLimit'])?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<br />
<? endif ; ?>
<? endif; ?>
<?php endif ; ?>
<?php endif; ?>
<? $showStatus = true; ?>
<?php $showStatus = true; ?>
<? if (isset($this->renewResult[$ilsDetails['item_id']])): ?>
<? $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?>
<? if (isset($renewDetails['success']) && $renewDetails['success']): ?>
<? $showStatus = false; ?>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($renewDetails['new_date'])?> <? if (isset($renewDetails['new_time'])): ?><?=$this->escapeHtml($renewDetails['new_time'])?><? endif; ?></strong>
<?php if (isset($this->renewResult[$ilsDetails['item_id']])): ?>
<?php $renewDetails = $this->renewResult[$ilsDetails['item_id']]; ?>
<?php if (isset($renewDetails['success']) && $renewDetails['success']): ?>
<?php $showStatus = false; ?>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($renewDetails['new_date'])?> <?php if (isset($renewDetails['new_time'])): ?><?=$this->escapeHtml($renewDetails['new_time'])?><?php endif; ?></strong>
<div class="alert alert-success"><?=$this->transEsc('renew_success')?></div>
<? else: ?>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><? if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><? endif; ?></strong>
<div class="alert alert-danger"><?=$this->transEsc('renew_fail')?><? if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><? endif; ?></div>
<? endif; ?>
<? else: ?>
<?php else: ?>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><?php if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><?php endif; ?></strong>
<div class="alert alert-danger"><?=$this->transEsc('renew_fail')?><?php if (isset($renewDetails['sysMessage'])): ?>: <?=$this->escapeHtml($renewDetails['sysMessage'])?><?php endif; ?></div>
<?php endif; ?>
<?php else: ?>
<strong><?=$this->transEsc('Issue Date')?>: <?=$this->escapeHtml($ilsDetails['issuedate'])?></strong>
<br>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><? if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><? endif; ?></strong>
<? if ($showStatus): ?>
<? if (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "overdue"): ?>
<strong><?=$this->transEsc('Due Date')?>: <?=$this->escapeHtml($ilsDetails['duedate'])?><?php if (isset($ilsDetails['dueTime'])): ?> <?=$this->escapeHtml($ilsDetails['dueTime'])?><?php endif; ?></strong>
<?php if ($showStatus): ?>
<?php if (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "overdue"): ?>
<div class="alert alert-danger"><?=$this->transEsc("renew_item_overdue")?></div>
<? elseif (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "due"): ?>
<?php elseif (isset($ilsDetails['dueStatus']) && $ilsDetails['dueStatus'] == "due"): ?>
<div class="alert alert-info"><?=$this->transEsc("renew_item_due")?></div>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
<? if ($showStatus && isset($ilsDetails['message']) && !empty($ilsDetails['message'])): ?>
<?php if ($showStatus && isset($ilsDetails['message']) && !empty($ilsDetails['message'])): ?>
<div class="alert alert-info"><?=$this->transEsc($ilsDetails['message'])?></div>
<? endif; ?>
<? if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_link'])): ?>
<?php endif; ?>
<?php if (isset($ilsDetails['renewable']) && $ilsDetails['renewable'] && isset($ilsDetails['renew_link'])): ?>
<a href="<?=$this->escapeHtmlAttr($ilsDetails['renew_link'])?>"><?=$this->transEsc('renew_item')?></a>
<? endif; ?>
<?php endif; ?>
</div>
<? if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?php if ($thumbnail && $thumbnailAlignment == 'right'): ?>
<?=$thumbnail ?>
<? endif ?>
<?php endif ?>
</div>
<?=$resource->tryMethod('supportsCoinsOpenUrl')?'<span class="Z3988" title="'.$this->escapeHtmlAttr($resource->getCoinsOpenUrl()).'"></span>':''?>
</div>
<? endforeach; ?>
<? if ($this->renewForm): ?></form><? endif; ?>
<?php endforeach; ?>
<?php if ($this->renewForm): ?></form><?php endif; ?>
<?=$paginator ? $this->paginationControl($paginator, 'Sliding', 'Helpers/pagination.phtml') : ''?>
<? else: ?>
<?php else: ?>
<?=$this->transEsc('You do not have any items checked out')?>.
<? endif; ?>
<?php endif; ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$pageTitle = empty($this->list->id) ? 'Create a List' : "edit_list";
$this->headTitle($this->translate($pageTitle));
@ -22,11 +22,11 @@
<label class="control-label" for="list_desc"><?=$this->transEsc('Description') ?></label>
<textarea id="list_desc" class="form-control" name="desc" rows="3"><?=isset($this->list['description']) ? $this->escapeHtml($this->list['description']) : ''?></textarea>
</div>
<? if ($this->userlist()->getMode() === 'public_only'): ?>
<?php if ($this->userlist()->getMode() === 'public_only'): ?>
<input type="hidden" name="public" value="1" />
<? elseif ($this->userlist()->getMode() === 'private_only'): ?>
<?php elseif ($this->userlist()->getMode() === 'private_only'): ?>
<input type="hidden" name="public" value="0" />
<? else: ?>
<?php else: ?>
<!-- <div class="form-group">
<label class="control-label">?=$this->transEsc('Access') ?></label>
<div class="radio inline">
@ -41,7 +41,7 @@
</div>
</div> -->
<input type="hidden" id="list_public_0" name="public" value="0">
<? endif; ?>
<?php endif; ?>
<div class="form-group">
<input class="btn btn-primary" type="submit" name="submit" value="<?=$this->transEsc('Save') ?>"/>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$this->headTitle($this->translate('Login'));
@ -11,9 +11,9 @@
$offlineMode = $this->ils()->getOfflineMode();
?>
<? if ($offlineMode == "ils-offline"): ?>
<?php if ($offlineMode == "ils-offline"): ?>
<?=$this->render('Helpers/ils-offline.phtml', ['offlineModeMsg' => 'ils_offline_login_message'])?>
<? endif; ?>
<?php endif; ?>
<h2 class="lightbox-header"><?=$this->transEsc('Login')?></h2>
<!-- <p style="color:red">Bestellen/Vormerken von Büchern: über den Bibliothekskatalog der Literatursuche eingehende Bestellungen und Vormerkungen werden wieder bearbeitet. Die Bereitstellung kann jedoch aufgrund der stark eingeschränkten Öffnungszeiten länger als in den Vor-Corona-Zeiten dauern. Sobald Medien für Sie zur Abholung bereitstehen, erhalten Sie wie gewohnt eine automatische Nachricht. </p>
@ -26,13 +26,13 @@
<p><?=$this->transEsc('LibraryAccountSection2') ?>
</p>
<p><?=$this->transEsc('LibraryAccountSection3') ?>
<? $ButtonLang = $this->transEsc("PublishButton"); ?>
<?php $ButtonLang = $this->transEsc("PublishButton"); ?>
<? if($ButtonLang == "Publizieren") : ?>
<?php if($ButtonLang == "Publizieren") : ?>
'https://www.bibb.de/bibliothek'.
<? else : ?>
<?php else : ?>
'https://www.bibb.de/en/206216.php'.
<? endif; ?>
<?php endif; ?>
</p>
<p><?=$this->transEsc('LibraryAccountSection4') ?>
</p>
@ -40,8 +40,8 @@
<?=$this->flashmessages()?>
<? if ($hideLogin): ?>
<?php if ($hideLogin): ?>
<div class="alert alert-danger"><?=$this->transEsc('login_disabled')?></div>
<? else: ?>
<?php else: ?>
<?=$this->auth()->getLogin()?>
<? endif; ?>
<?php endif; ?>

View File

@ -1,77 +1,77 @@
<h4><?=$this->transEsc('Your Account')?></h4>
<div class="myresearch-menu">
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Favorites')?>
</a>
<? endif; ?>
<? if ('ils-none' !== $this->ils()->getOfflineMode()): ?>
<? if ($this->ils()->checkCapability('getMyTransactions')): ?>
<?php endif; ?>
<?php if ('ils-none' !== $this->ils()->getOfflineMode()): ?>
<?php if ($this->ils()->checkCapability('getMyTransactions')): ?>
<a href="<?=$this->url('myresearch-checkedout')?>"<?=$this->active == 'checkedout' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-book" aria-hidden="true"></i> <?=$this->transEsc('Checked Out Items')?>
</a>
<? endif; ?>
<? if ($this->ils()->checkCapability('getMyHolds')): ?>
<?php endif; ?>
<?php if ($this->ils()->checkCapability('getMyHolds')): ?>
<a href="<?=$this->url('myresearch-holds')?>"<?=$this->active == 'holds' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-flag" aria-hidden="true"></i> <?=$this->transEsc('Holds and Recalls')?>
</a>
<? endif; ?>
<? if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?>
<?php endif; ?>
<?php if ($this->ils()->checkFunction('StorageRetrievalRequests')): ?>
<a href="<?=$this->url('myresearch-storageretrievalrequests')?>"<?=$this->active == 'storageRetrievalRequests' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-archive" aria-hidden="true"></i> <?=$this->transEsc('Storage Retrieval Requests')?>
</a>
<? endif; ?>
<? if ($this->ils()->checkFunction('ILLRequests')): ?>
<?php endif; ?>
<?php if ($this->ils()->checkFunction('ILLRequests')): ?>
<a href="<?=$this->url('myresearch-illrequests')?>"<?=$this->active == 'ILLRequests' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-exchange" aria-hidden="true"></i> <?=$this->transEsc('Interlibrary Loan Requests')?>
</a>
<? endif; ?>
<? // Lines for fines deleted ?>
<? if ($this->ils()->checkCapability('getMyProfile')): ?>
<?php endif; ?>
<?php // Lines for fines deleted ?>
<?php if ($this->ils()->checkCapability('getMyProfile')): ?>
<a href="<?=$this->url('myresearch-profile')?>"<?=$this->active == 'profile' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-user" aria-hidden="true"></i> <?=$this->transEsc('Profile')?>
</a>
<? endif; ?>
<? $user = $this->auth()->isLoggedIn(); if ($user && $user->libraryCardsEnabled()): ?>
<?php endif; ?>
<?php $user = $this->auth()->isLoggedIn(); if ($user && $user->libraryCardsEnabled()): ?>
<a href="<?=$this->url('librarycards-home')?>"<?=$this->active == 'librarycards' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-barcode" aria-hidden="true"></i> <?=$this->transEsc('Library Cards')?>
</a>
<? endif; ?>
<? endif; ?>
<? if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<a href="<?=$this->url('search-history')?>?require_login"<?=$this->active == 'history' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-search" aria-hidden="true"></i> <?=$this->transEsc('history_saved_searches')?>
</a>
<? endif; ?>
<? if ($user = $this->auth()->isLoggedIn()): ?>
<?php endif; ?>
<?php if ($user = $this->auth()->isLoggedIn()): ?>
<a href="<?=$this->url('myresearch-logout')?>">
<i class="fa fa-fw fa-sign-out" aria-hidden="true"></i> <?=$this->transEsc("Log Out")?>
</a>
<? endif; ?>
<?php endif; ?>
</div>
<? if ($this->auth()->isLoggedIn() && $this->auth()->getManager()->supportsPasswordChange()): ?>
<?php if ($this->auth()->isLoggedIn() && $this->auth()->getManager()->supportsPasswordChange()): ?>
<h4><?=$this->transEsc('Preferences')?></h4>
<div class="myresearch-menu">
<a href="<?=$this->url('myresearch-changepassword') ?>"<?=$this->active == 'newpassword' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-lock" aria-hidden="true"></i> <?=$this->transEsc('Change Password') ?>
</a>
</div>
<? endif; ?>
<? if ($this->userlist()->getMode() !== 'disabled' && $user = $this->auth()->isLoggedIn()): ?>
<?php endif; ?>
<?php if ($this->userlist()->getMode() !== 'disabled' && $user = $this->auth()->isLoggedIn()): ?>
<h4><?=$this->transEsc('Your Lists')?></h4>
<div class="myresearch-menu">
<a href="<?=$this->url('myresearch-favorites')?>"<?=$this->active == 'favorites' ? ' class="active"' : ''?>>
<i class="fa fa-fw fa-star" aria-hidden="true"></i> <?=$this->transEsc('Your Favorites')?>
</a>
<? $lists = $user->getLists() ?>
<? foreach ($lists as $list): ?>
<?php $lists = $user->getLists() ?>
<?php foreach ($lists as $list): ?>
<a href="<?=$this->url('userList', ['id' => $list['id']])?>"<?=$this->active == 'list' . $list['id'] ? ' class="active"' : ''?>>
<?=$this->escapeHtml($list['title'])?>
<span class="badge"><?=$list->cnt ?></span>
</a>
<? endforeach; ?>
<?php endforeach; ?>
<a href="<?=$this->url('editList', ['id'=>'NEW'])?>">
<i class="fa fa-fw fa-plus" aria-hidden="true"></i> <?=$this->transEsc('Create a List') ?>
</a>
</div>
<? endif ?>
<?php endif ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Grab list object from search results (if applicable):
$list = $this->results->getListObject();
@ -32,7 +32,7 @@ $this->headScript()->appendFile("accordion.js");
<h2><?=$list ? $this->escapeHtml($list->title) : $this->transEsc("Your Favorites")?></h2>
<nav class="search-header hidden-print">
<div class="search-stats">
<? if ($recordTotal > 0): ?>
<?php if ($recordTotal > 0): ?>
<?
$transParams = [
'%%start%%' => $this->localizedNumber($this->results->getStartRecord()),
@ -41,12 +41,12 @@ $this->headScript()->appendFile("accordion.js");
];
?>
<?=$this->translate('showing_items_of_html', $transParams); ?>
<? endif; ?>
<?php endif; ?>
</div>
<div class="sortierung">
<div class="search-controls">
<? if (isset($list)): ?>
<? if ($list->editAllowed($account->isLoggedIn())): ?>
<?php if (isset($list)): ?>
<?php if ($list->editAllowed($account->isLoggedIn())): ?>
<a href="<?=$this->url('editList', ['id' => $list->id]) ?>" class="btn btn-link"><i class="fa fa-edit" aria-hidden="true"></i> <?=$this->transEsc("edit_list")?></a>
<div class="btn-group">
<a class="btn btn-link dropdown-toggle" data-toggle="dropdown" href="<?=$this->url('myresearch-deletelist') ?>?listID=<?=urlencode($list->id)?>">
@ -57,19 +57,19 @@ $this->headScript()->appendFile("accordion.js");
<li><a href="#"><?=$this->transEsc('confirm_dialog_no')?></a></li>
</ul>
</div>
<? endif; ?>
<? endif; ?>
<? if ($recordTotal > 0): ?>
<?php endif; ?>
<?php endif; ?>
<?php if ($recordTotal > 0): ?>
<?=$this->render('search/controls/limit.phtml')?>
<?=$this->render('search/controls/sort.phtml')?>
<? endif; ?>
<?php endif; ?>
</div>
</div>
</nav>
<? if ($list && !empty($list->description)): ?>
<?php if ($list && !empty($list->description)): ?>
<p><?=$this->escapeHtml($list->description)?></p>
<? endif; ?>
<? if ($recordTotal > 0): ?>
<?php endif; ?>
<?php if ($recordTotal > 0): ?>
<div id="ergebnisfunktion" class="ergebnisfunktion">
<span><?=$this->transEsc("Result Selection")?></span>
</div>
@ -79,21 +79,21 @@ $this->headScript()->appendFile("accordion.js");
<!-- </form> -->
<!-- </div> -->
<div class="myresultlist">
<? foreach ($this->results->getResults() as $i=>$current): ?>
<?php foreach ($this->results->getResults() as $i=>$current): ?>
<?=$this->record($current)->getListEntry($list, $user)?>
<? endforeach; ?>
<?php endforeach; ?>
</div>
</form>
</div>
<?=$this->paginationControl($this->results->getPaginator(), 'Sliding', 'search/pagination.phtml', ['results' => $this->results])?>
<? else: ?>
<?php else: ?>
<p><?=$this->transEsc('You do not have any saved resources')?></p>
<? endif; ?>
<?php endif; ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => isset($list) ? 'list' . $list['id'] : 'favorites'])?>
<? foreach ($this->results->getRecommendations('side') as $current): ?>
<?php foreach ($this->results->getRecommendations('side') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<?php endforeach; ?>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$this->headTitle($this->translate('Create New Password'));
@ -6,18 +6,18 @@
$this->layout()->breadcrumbs = '<li><a href="' . $this->url('myresearch-home') . '">' . $this->transEsc('Your Account') . '</a></li>'
. '<li class="active">' . $this->transEsc('Create New Password') . '</li>';
?>
<? if ($this->auth()->isLoggedIn()): ?>
<?php if ($this->auth()->isLoggedIn()): ?>
<div class="<?=$this->layoutClass('mainbody')?>">
<? endif; ?>
<?php endif; ?>
<h2><?=$this->transEsc('Create New Password') ?></h2>
<?=$this->flashmessages() ?>
<? if (!$this->auth()->getManager()->supportsPasswordChange($this->auth_method)): ?>
<?php if (!$this->auth()->getManager()->supportsPasswordChange($this->auth_method)): ?>
<div class="error"><?=$this->transEsc('recovery_new_disabled') ?></div>
<? elseif (!isset($this->hash)): ?>
<?php elseif (!isset($this->hash)): ?>
<div class="error"><?=$this->transEsc('recovery_user_not_found') ?></div>
<? else: ?>
<?php else: ?>
<form id="newpassword" class="form-new-password" action="<?=$this->url('myresearch-newpassword') ?>" method="post" data-toggle="validator" role="form">
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->auth()->getManager()->getCsrfHash(true))?>" name="csrf"/>
<input type="hidden" value="<?=$this->escapeHtmlAttr($this->hash) ?>" name="hash"/>
@ -29,11 +29,11 @@
<input class="btn btn-primary" name="submit" type="submit" value="<?=$this->transEsc('Submit')?>" />
</div>
</form>
<? endif; ?>
<?php endif; ?>
<? if ($this->auth()->isLoggedIn()): ?>
<?php if ($this->auth()->isLoggedIn()): ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<?=$this->context($this)->renderInContext("myresearch/menu.phtml", ['active' => 'newpassword'])?>
</div>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$this->headTitle($this->translate('My Profile'));
@ -27,7 +27,7 @@
]
);
?>
<? if ($showHomeLibForm): ?>
<?php if ($showHomeLibForm): ?>
<tr><th><?=$this->transEsc('Preferred Library')?>:</th>
<?
$selected = (isset($this->profile['home_library']) && $this->profile['home_library'] != "")
@ -36,14 +36,14 @@
<td>
<form id="profile_form" class="form-inline" method="post">
<select id="home_library" name="home_library" class="form-control">
<? foreach ($this->pickup as $lib): ?>
<?php foreach ($this->pickup as $lib): ?>
<option value="<?=$this->escapeHtmlAttr($lib['locationID'])?>"<?=($selected == $lib['locationID'])?' selected="selected"':''?>><?=$this->transEsc('location_' . $lib['locationDisplay'], null, $lib['locationDisplay'])?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<input class="btn btn-default" type="submit" value="<?=$this->transEsc('Save')?>" />
</form>
</td>
<? endif; ?>
<?php endif; ?>
<?
$profile = $this->profile;

View File

@ -1,9 +1,9 @@
<h2><?=$this->transEsc('recovery_title') ?></h2>
<?=$this->flashmessages()?>
<? if (!$this->auth()->getManager()->supportsRecovery()): ?>
<?php if (!$this->auth()->getManager()->supportsRecovery()): ?>
<div class="error"><?=$this->transEsc('recovery_disabled') ?></div>
<? else: ?>
<?php else: ?>
<form class="form-password-recovery" method="post">
<?=$this->auth()->getPasswordRecoveryForm() ?>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,22 +1,22 @@
<? $cart = $this->cart(); ?>
<? if ($cart->isActive()): ?>
<? $cartId = $this->source . '|' . $this->id; ?>
<?php $cart = $this->cart(); ?>
<?php if ($cart->isActive()): ?>
<?php $cartId = $this->source . '|' . $this->id; ?>
<span class="btn-bookbag-toggle" data-cart-id="<?=$this->escapeHtmlAttr($this->id)?>" data-cart-source="<?=$this->escapeHtmlAttr($this->source)?>">
<a class="cart-add hidden<? if(!$cart->contains($cartId)): ?> correct<? endif ?>"><!--
<a class="cart-add hidden<?php if(!$cart->contains($cartId)): ?> correct<?php endif ?>"><!--
--><span class="cart-link-label"><?=$this->transEsc('Add to Book Bag') ?><i class="cart-link-icon fa fa-plus" title="<?=$this->transEsc('Add to Book Bag') ?>"></i></span><!--
--></a>
<a class="cart-remove hidden<? if($cart->contains($cartId)): ?> correct<? endif ?>"><!--
<a class="cart-remove hidden<?php if($cart->contains($cartId)): ?> correct<?php endif ?>"><!--
--><span class="cart-link-label"><?=$this->transEsc('Remove from Book Bag') ?> <i class="cart-link-icon fa fa-minus-circle" title="<?=$this->transEsc('Remove from Book Bag') ?>"></i></span>
</a>
<noscript>
<form method="post" name="addForm" action="<?=$this->url('cart-processor')?>">
<input type="hidden" name="ids[]" value="<?=$this->escapeHtmlAttr($cartId)?>" />
<? if ($cart->contains($cartId)): ?>
<?php if ($cart->contains($cartId)): ?>
<input class="btn btn-default" type="submit" name="delete" value="<?=$this->transEsc('Remove from Book Bag')?>"/>
<? else: ?>
<?php else: ?>
<input class="btn btn-default" type="submit" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"/>
<? endif; ?>
<?php endif; ?>
</form>
</noscript>
</span>
<? endif; ?>
<?php endif; ?>

View File

@ -1,5 +1,5 @@
<label class="record-checkbox hidden-print">
<input class="checkbox-select-item" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<? if(isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<? endif; ?>/>
<input class="checkbox-select-item" type="checkbox" name="ids[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<?php if(isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<?php endif; ?>/>
<span class="checkbox-icon"></span>
</label>
<input type="hidden" name="idsAll[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<? if(isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<? endif; ?>/>
<input type="hidden" name="idsAll[]" value="<?=$this->escapeHtmlAttr($this->id) ?>"<?php if(isset($this->formAttr)): ?> form="<?=$this->formAttr ?>"<?php endif; ?>/>

View File

@ -1,6 +1,6 @@
<? /* Display thumbnail if appropriate: */ ?>
<? if ($cover): ?>
<img alt="<?=$this->transEsc('Cover Image')?>" <? if ($linkPreview): ?>data-linkpreview="true" <? endif; ?>class="recordcover" src="<?=$this->escapeHtmlAttr($cover); ?>"/>
<? else: ?>
<img src="<?=$this->url('cover-unavailable')?>" <? if ($linkPreview): ?>data-linkpreview="true" <? endif; ?>class="recordcover" alt="<?=$this->transEsc('No Cover Image')?>"/>
<? endif; ?>
<?php /* Display thumbnail if appropriate: */ ?>
<?php if ($cover): ?>
<img alt="<?=$this->transEsc('Cover Image')?>" <?php if ($linkPreview): ?>data-linkpreview="true" <?php endif; ?>class="recordcover" src="<?=$this->escapeHtmlAttr($cover); ?>"/>
<?php else: ?>
<img src="<?=$this->url('cover-unavailable')?>" <?php if ($linkPreview): ?>data-linkpreview="true" <?php endif; ?>class="recordcover" alt="<?=$this->transEsc('No Cover Image')?>"/>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Email Record'));

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('request_place_text') . ': ' . $this->driver->getBreadcrumb());
@ -10,30 +10,30 @@
<h2><?=$this->transEsc('request_place_text')?></h2>
<p class="helptext" style="color:red">Bestellen/Vormerken von Büchern: über den Bibliothekskatalog der Literatursuche eingehende Bestellungen und Vormerkungen werden wieder bearbeitet. Die Bereitstellung kann jedoch aufgrund der stark eingeschränkten Öffnungszeiten länger als in den Vor-Corona-Zeiten dauern. Sobald Medien für Sie zur Abholung bereitstehen, erhalten Sie wie gewohnt eine automatische Nachricht.</p>
<p style="color:red"> Sollte es Ihnen nicht möglich sein, diese Medien innerhalb von 5 Öffnungstagen im Lesesaal abzuholen, nehmen Sie bitte Kontakt mit der Bibliothek auf. </p><p>&nbsp;</p>
<? if ($this->helpText): ?>
<?php if ($this->helpText): ?>
<p class="helptext"><?=$this->helpText?></p>
<? endif; ?>
<?php endif; ?>
<form class="form-record-hold" method="post" name="placeHold">
<?=$this->flashmessages()?>
<label class="control-label"><?=$this->transEsc('Title')?></label>
<p class="form-control-static"><?=$this->driver->getBreadcrumb() ?></p>
<? if (in_array("comments", $this->extraHoldFields)): ?>
<?php if (in_array("comments", $this->extraHoldFields)): ?>
<div class="form-group hold-comment">
<label class="control-label"><?=$this->transEsc("Comments")?>:</label>
<textarea rows="3" cols="20" name="gatheredDetails[comment]" class="form-control"><?=isset($this->gatheredDetails['comment']) ? $this->escapeHtml($this->gatheredDetails['comment']) : ''?></textarea>
</div>
<? endif; ?>
<?php endif; ?>
<? if (in_array("requiredByDate", $this->extraHoldFields)): ?>
<?php if (in_array("requiredByDate", $this->extraHoldFields)): ?>
<div class="form-group hold-required-by">
<label class="control-label"><?=$this->transEsc("hold_required_by")?>:</label>
<input id="requiredByDate" type="text" name="gatheredDetails[requiredBy]" value="<?=(isset($this->gatheredDetails['requiredBy']) && !empty($this->gatheredDetails['requiredBy'])) ? $this->escapeHtmlAttr($this->gatheredDetails['requiredBy']) : $this->escapeHtmlAttr($this->defaultRequiredDate)?>" size="8" class="form-control"/>
(<?=$this->dateTime()->getDisplayDateFormat()?>)
</div>
<? endif; ?>
<?php endif; ?>
<? if ($this->requestGroupNeeded): ?>
<?php if ($this->requestGroupNeeded): ?>
<div class="form-group hold-request-group">
<?
if (isset($this->gatheredDetails['requestGroupId']) && $this->gatheredDetails['requestGroupId'] !== "") {
@ -44,21 +44,21 @@
?>
<label class="control-label"><?=$this->transEsc("hold_request_group")?>:</label>
<select id="requestGroupId" name="gatheredDetails[requestGroupId]" class="form-control">
<? if ($selected === false): ?>
<?php if ($selected === false): ?>
<option value="" selected="selected">
<?=$this->transEsc('select_request_group')?>
</option>
<? endif; ?>
<? foreach ($this->requestGroups as $group): ?>
<?php endif; ?>
<?php foreach ($this->requestGroups as $group): ?>
<option value="<?=$this->escapeHtmlAttr($group['id'])?>"<?=($selected == $group['id']) ? ' selected="selected"' : ''?>>
<?=$this->transEsc('request_group_' . $group['name'], null, $group['name'])?>
</option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
</div>
<? endif; ?>
<?php endif; ?>
<? if (in_array("pickUpLocation", $this->extraHoldFields)): ?>
<?php if (in_array("pickUpLocation", $this->extraHoldFields)): ?>
<?
if (isset($this->gatheredDetails['pickUpLocation']) && $this->gatheredDetails['pickUpLocation'] !== "") {
$selected = $this->gatheredDetails['pickUpLocation'];
@ -68,41 +68,41 @@
$selected = $this->defaultPickup;
}
?>
<? if ($this->requestGroupNeeded): ?>
<?php if ($this->requestGroupNeeded): ?>
<div class="form-group hold-pickup-location">
<label id="pickUpLocationLabel" class="control-label"><i></i> <?=$this->transEsc("pick_up_location")?>:
<? if (in_array("requestGroup", $this->extraHoldFields)): ?>
<?php if (in_array("requestGroup", $this->extraHoldFields)): ?>
<noscript> (<?=$this->transEsc("Please enable JavaScript.")?>)</noscript>
<? endif; ?>
<?php endif; ?>
</label>
<select id="pickUpLocation" name="gatheredDetails[pickUpLocation]" data-default="<?=$this->escapeHtmlAttr($selected)?>" class="form-control">
<? if ($selected === false): ?>
<?php if ($selected === false): ?>
<option value="" selected="selected">
<?=$this->transEsc('select_pickup_location')?>
</option>
<? endif; ?>
<?php endif; ?>
</select>
</div>
<? elseif ($this->pickup): ?>
<?php elseif ($this->pickup): ?>
<div class="form-group hold-pickup-location">
<label class="control-label"><?=$this->transEsc("pick_up_location")?>:</label>
<select id="pickUpLocation" name="gatheredDetails[pickUpLocation]" class="form-control">
<? if ($selected === false && count($this->pickup) > 1): ?>
<?php if ($selected === false && count($this->pickup) > 1): ?>
<option value="" selected="selected">
<?=$this->transEsc('select_pickup_location')?>
</option>
<? endif; ?>
<? foreach ($this->pickup as $lib): ?>
<?php endif; ?>
<?php foreach ($this->pickup as $lib): ?>
<option value="<?=$this->escapeHtmlAttr($lib['locationID'])?>"<?=($selected == $lib['locationID']) ? ' selected="selected"' : ''?>>
<?=$this->transEsc('location_' . $lib['locationDisplay'], null, $lib['locationDisplay'])?>
</option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
</div>
<? else: ?>
<?php else: ?>
<input type="hidden" name="gatheredDetails[pickUpLocation]" value="<?=$this->escapeHtmlAttr($this->defaultPickup)?>" />
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<div class="form-group">
<input class="btn btn-primary" type="submit" name="placeHold" value="<?=$this->transEsc('request_submit_text')?>"/>
</div>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up standard record scripts:
$this->headScript()->appendFile("record.js");
$this->headScript()->appendFile("check_save_statuses.js");
@ -23,44 +23,44 @@
<div class="<?=$this->layoutClass('mainbody')?>">
<? if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?>
<?php if (isset($this->scrollData) && ($this->scrollData['previousRecord'] || $this->scrollData['nextRecord'])): ?>
<ul class="pager hidden-print">
<? if ($this->scrollData['previousRecord']): ?>
<? if ($this->scrollData['firstRecord']): ?>
<?php if ($this->scrollData['previousRecord']): ?>
<?php if ($this->scrollData['firstRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['firstRecord'])?>" title="<?=$this->transEsc('First Search Result')?>" rel="nofollow">&laquo; <?=$this->transEsc('First')?></a>
</li>
<? endif; ?>
<?php endif; ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['previousRecord'])?>" title="<?=$this->transEsc('Previous Search Result')?>" rel="nofollow">&laquo; <?=$this->transEsc('Prev')?></a>
</li>
<? else: ?>
<? if ($this->scrollData['firstRecord']): ?>
<?php else: ?>
<?php if ($this->scrollData['firstRecord']): ?>
<li class="disabled"><a href="#">&laquo; <?=$this->transEsc('First')?></a></li>
<? endif; ?>
<?php endif; ?>
<li class="disabled"><a href="#">&laquo; <?=$this->transEsc('Prev')?></a></li>
<? endif; ?>
<?php endif; ?>
<?=$this->transEsc('of_num_results', [
'%%position%%' => $this->localizedNumber($this->scrollData['currentPosition']),
'%%total%%' => $this->localizedNumber($this->scrollData['resultTotal'])
]) ?>
<? if ($this->scrollData['nextRecord']): ?>
<?php if ($this->scrollData['nextRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['nextRecord'])?>" title="<?=$this->transEsc('Next Search Result')?>" rel="nofollow"><?=$this->transEsc('Next')?> &raquo;</a>
</li>
<? if ($this->scrollData['lastRecord']): ?>
<?php if ($this->scrollData['lastRecord']): ?>
<li>
<a href="<?=$this->recordLink()->getUrl($this->scrollData['lastRecord'])?>" title="<?=$this->transEsc('Last Search Result')?>" rel="nofollow"><?=$this->transEsc('Last')?> &raquo;</a>
</li>
<? endif; ?>
<? else: ?>
<?php endif; ?>
<?php else: ?>
<li class="disabled"><a href="#"><?=$this->transEsc('Next')?> &raquo;</a></li>
<? if ($this->scrollData['lastRecord']): ?>
<?php if ($this->scrollData['lastRecord']): ?>
<li class="disabled"><a href="#"><?=$this->transEsc('Last')?> &raquo;</a></li>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
</ul>
<? endif; ?>
<?php endif; ?>
<div class="clear"></div>
<?=$this->record($this->driver)->getToolbar()?>
@ -70,12 +70,12 @@
<?=$this->flashmessages()?>
<?=$this->record($this->driver)->getCoreMetadata()?>
<? if (count($this->tabs) > 0): ?>
<?php if (count($this->tabs) > 0): ?>
<a name="tabnav"></a>
<div class="record-tabs">
<ul class="nav nav-tabs">
<? foreach ($this->tabs as $tab => $obj): ?>
<? // add current tab to breadcrumbs if applicable:
<?php foreach ($this->tabs as $tab => $obj): ?>
<?php // add current tab to breadcrumbs if applicable:
$desc = $obj->getDescription();
$tab_classes = [];
if (0 === strcasecmp($this->activeTab, $tab)) {
@ -90,28 +90,28 @@
if (!$obj->supportsAjax()) { $tab_classes[] = 'noajax'; }
?>
<li<?=count($tab_classes) > 0 ? ' class="' . implode(' ', $tab_classes) . '"' : ''?>>
<a class="<?=strtolower($tab) ?>" href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>#tabnav"<? if ($obj->supportsAjax() && in_array($tab, $this->backgroundTabs)):?> data-background<? endif ?>><?=$this->transEsc($desc)?></a>
<a class="<?=strtolower($tab) ?>" href="<?=$this->recordLink()->getTabUrl($this->driver, $tab)?>#tabnav"<?php if ($obj->supportsAjax() && in_array($tab, $this->backgroundTabs)):?> data-background<?php endif ?>><?=$this->transEsc($desc)?></a>
</li>
<? endforeach; ?>
<?php endforeach; ?>
</ul>
<div class="tab-content">
<? if (!$this->loadInitialTabWithAjax || !isset($activeTabObj) || !$activeTabObj->supportsAjax()): ?>
<?php if (!$this->loadInitialTabWithAjax || !isset($activeTabObj) || !$activeTabObj->supportsAjax()): ?>
<div class="tab-pane active <?=$this->activeTab ?>-tab">
<?=isset($activeTabObj) ? $this->record($this->driver)->getTab($activeTabObj) : '' ?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
</div>
<? endif; ?>
<?php endif; ?>
<?=$this->driver->supportsCoinsOpenURL()?'<span class="Z3988" title="'.$this->escapeHtmlAttr($this->driver->getCoinsOpenURL()).'"></span>':''?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<? foreach ($this->related()->getList($this->driver) as $current): ?>
<?php foreach ($this->related()->getList($this->driver) as $current): ?>
<?=$this->related()->render($current)?>
<? endforeach; ?>
<?php endforeach; ?>
</div>
</div>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$(document).ready(recordDocReady);', 'SET'); ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, '$(document).ready(recordDocReady);', 'SET'); ?>

View File

@ -1,14 +1,14 @@
<? $account = $this->auth()->getManager() ?>
<? $user = $account->isLoggedIn() ?>
<? if (!$user) : ?>
<?php $account = $this->auth()->getManager() ?>
<?php $user = $account->isLoggedIn() ?>
<?php if (!$user) : ?>
<p>Um unseren Service als BIBB-Mitarbeiter zu nutzen, melden Sie sich bitte zuerst an.</p> </br>
<a href="<?=$this->url('myresearch-userlogin')?>" data-lightbox><i class="fa">&#xf090;</i> <?=$this->transEsc("Login")?></a>
<? endif; ?>
<? if ($user) : ?>
<? $name = $user['firstname'] ." " .$user['lastname'] ?>
<? $email = $user['email'] ?>
<?php endif; ?>
<?php if ($user) : ?>
<?php $name = $user['firstname'] ." " .$user['lastname'] ?>
<?php $email = $user['email'] ?>
<?// $title = $this->driver->getMainTitle(); ?>
<? //$formatter = $this->recordDataFormatter();
<?php //$formatter = $this->recordDataFormatter();
//print_r($formatter);
// $coreFields = $formatter->getData($driver, $formatter->getDefaults('core'));
//print_r($coreFields);
@ -41,4 +41,4 @@
<input type="submit" name="submit" class="btn btn-primary" value="<?=$this->transEsc("Send")?>" />
</div>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,14 +1,14 @@
<? $account = $this->auth()->getManager() ?>
<? $user = $account->isLoggedIn() ?>
<? if (!$user) : ?>
<?php $account = $this->auth()->getManager() ?>
<?php $user = $account->isLoggedIn() ?>
<?php if (!$user) : ?>
<p>Um unseren Service als BIBB-Mitarbeiter zu nutzen, melden Sie sich bitte zuerst an.</p> </br>
<a href="<?=$this->url('myresearch-userlogin')?>" data-lightbox><i class="fa">&#xf090;</i> <?=$this->transEsc("Login")?></a>
<? endif; ?>
<? if ($user) : ?>
<? $name = $user['firstname'] ." " .$user['lastname'] ?>
<? $email = $user['email'] ?>
<?php endif; ?>
<?php if ($user) : ?>
<?php $name = $user['firstname'] ." " .$user['lastname'] ?>
<?php $email = $user['email'] ?>
<?// $title = $this->driver->getMainTitle(); ?>
<? //$formatter = $this->recordDataFormatter();
<?php //$formatter = $this->recordDataFormatter();
//print_r($formatter);
// $coreFields = $formatter->getData($driver, $formatter->getDefaults('core'));
//print_r($coreFields);
@ -38,4 +38,4 @@
<input type="submit" name="submit" class="btn btn-primary" value="<?=$this->transEsc("Send")?>" />
</div>
</form>
<? endif; ?>
<?php endif; ?>

Binary file not shown.

View File

@ -1,13 +0,0 @@
<? if (count($searchTabs) > 0): ?>
<ul class="nav nav-tabs">
<? foreach ($searchTabs as $tab): ?>
<? if ($this->permission()->allowDisplay($tab['permission'])): ?>
<li<?=$tab['selected'] ? ' class="active"' : ''?>>
<a <?=$tab['selected'] ? '' : 'href="' . $this->escapeHtmlAttr($tab['url']) . '"' ?>><?=$this->transEsc($tab['label']); ?></a>
</li>
<? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?=$block?>
<? endif; ?>
<? endforeach; ?>
</ul>
<? endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Advanced Search'));
@ -64,23 +64,23 @@
<?=$this->flashmessages()?>
<div role="search">
<form name="searchForm" id="advSearchForm" method="get" action="<?=$this->url($this->options->getSearchAction())?>">
<? foreach ($hiddenFilters as $key => $filter): ?>
<? foreach ($filter as $value): ?>
<?php foreach ($hiddenFilters as $key => $filter): ?>
<?php foreach ($filter as $value): ?>
<input type="hidden" name="hiddenFilters[]" value="<?=$this->escapeHtmlAttr($key) . ':' . $this->escapeHtmlAttr($value)?>" />
<? endforeach; ?>
<? endforeach; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<div class="<?=$this->layoutClass('mainbody')?>">
<? $lastSort = $this->searchMemory()->getLastSort($this->searchClassId); ?>
<? if (!empty($lastSort)): ?>
<?php $lastSort = $this->searchMemory()->getLastSort($this->searchClassId); ?>
<?php if (!empty($lastSort)): ?>
<input type="hidden" name="sort" value="<?=$this->escapeHtmlAttr($lastSort)?>" />
<? endif; ?>
<?php endif; ?>
<div class="clearfix">
<h2 class="pull-left flip"><?=$this->transEsc('Advanced Search')?></h2>
<div id="groupJoin" class="form-inline pull-right flip">
<label for="groupJoinOptions"><?=$this->transEsc("search_match")?>:</label>
<select id="groupJoinOptions" name="join" class="form-control">
<option value="AND"<? if($searchDetails && $searchDetails->getOperator()=='ALL'):?> selected<?endif?>><?= $this->transEsc('group_AND') ?></option>
<option value="OR"<? if($searchDetails && $searchDetails->getOperator()=='OR'):?> selected<?endif?>><?= $this->transEsc('group_OR') ?></option>
<option value="AND"<?php if($searchDetails && $searchDetails->getOperator()=='ALL'):?> selected<?endif?>><?= $this->transEsc('group_AND') ?></option>
<option value="OR"<?php if($searchDetails && $searchDetails->getOperator()=='OR'):?> selected<?endif?>><?= $this->transEsc('group_OR') ?></option>
</select>
</div>
</div>
@ -89,55 +89,55 @@
<i class="fa fa-plus-circle" aria-hidden="true"></i>
<a href="#" onClick="addGroup();return false"><?= $this->transEsc('add_search_group') ?></a>
</span>
<? /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?>
<?php /* fallback to a fixed set of search groups/fields if JavaScript is turned off */ ?>
<div class="no-js">
<? if(!empty($this->formOverride)): ?>
<?php if(!empty($this->formOverride)): ?>
<?=$this->formOverride ?>
<? else: ?>
<? for($group=0 ; $group<3 || $group<=$setGroupCount ; $group++): ?>
<? if($group == 0): ?>
<?php else: ?>
<?php for($group=0 ; $group<3 || $group<=$setGroupCount ; $group++): ?>
<?php if($group == 0): ?>
<div id="new_group_template">
<? endif; ?>
<?php endif; ?>
<div id="group<?=$group ?>" class="adv-group">
<div class="adv-group-terms">
<label class="adv-group-label"><?=$this->transEsc("adv_search_label")?>:</label>
<? for($search=0 ; $search<3 || (isset($setQueries[$group]) && $search<count($setQueries[$group])) ; $search++): ?>
<? if($group == 0 && $search == 0): ?>
<?php for($search=0 ; $search<3 || (isset($setQueries[$group]) && $search<count($setQueries[$group])) ; $search++): ?>
<?php if($group == 0 && $search == 0): ?>
<div id="new_search_template">
<? endif; ?>
<?php endif; ?>
<div id="search<?=$group.'_'.$search ?>" class="adv-search">
<input name="lookfor<?=$group ?>[]" id="search_lookfor<?=$group.'_'.$search ?>" class="adv-term-input form-control" type="text"<?if(isset($setQueries[$group][$search])):?> value="<?=$this->escapeHtml($setQueries[$group][$search]->getString())?>"<?endif;?>>
<select class="adv-term-type form-control" name="type<?=$group ?>[]">
<? foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?>
<?php foreach ($this->options->getAdvancedHandlers() as $searchVal => $searchDesc): ?>
<option value="<?=$this->escapeHtml($searchVal)?>"<?if(isset($setQueries[$group][$search]) && $searchVal == $setQueries[$group][$search]->getHandler()):?> selected<?endif;?>><?=$this->transEsc($searchDesc)?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<a href="#" class="adv-term-remove hidden"></a>
</div>
<? if($group == 0 && $search == 0): ?>
<?php if($group == 0 && $search == 0): ?>
</div>
<span class="float-left">
<i class="fa fa-plus-circle search_place_holder hidden" aria-hidden="true"></i>
<a href="#" class="add_search_link hidden"><?=$this->transEsc("add_search")?></a>
</span>
<? endif; ?>
<? endfor; ?>
<?php endif; ?>
<?php endfor; ?>
</div>
<div class="adv-group-match">
<label class="search_bool"><?=$this->transEsc("search_match")?>:&nbsp;</label>
<select name="bool<?=$group ?>[]" id="search_bool<?=$group ?>" class="form-control">
<option value="AND"<? if(isset($setSearchGroups[$group]) && 'AND' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_AND")?></option>
<option value="OR"<? if(isset($setSearchGroups[$group]) && 'OR' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_OR")?></option>
<option value="NOT"<? if(isset($setSearchGroups[$group]) && 'NOT' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_NOT")?></option>
<option value="AND"<?php if(isset($setSearchGroups[$group]) && 'AND' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_AND")?></option>
<option value="OR"<?php if(isset($setSearchGroups[$group]) && 'OR' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_OR")?></option>
<option value="NOT"<?php if(isset($setSearchGroups[$group]) && 'NOT' == $setSearchGroups[$group]):?> selected<?endif;?>><?=$this->transEsc("search_NOT")?></option>
</select>
</div>
<a href="#" class="adv-group-close hidden"><i class="fa fa-close"></i> <?=$this->transEsc("del_search")?></a>
</div>
<? if($group == 0): ?>
<?php if($group == 0): ?>
</div>
<? endif; ?>
<? endfor; ?>
<? endif; ?>
<?php endif; ?>
<?php endfor; ?>
<?php endif; ?>
</div>
<div class="adv-submit">
<input class="clear-btn btn btn-default" type="button" value="<?= $this->transEsc('Clear')?>">
@ -146,7 +146,7 @@
<input class="btn btn-primary" type="submit" value="<?= $this->transEsc('Find')?>">
</div>
</div>
<? if (isset($this->extraAdvancedControls)): ?>
<?php if (isset($this->extraAdvancedControls)): ?>
<div class="clearfix">
<?=$this->extraAdvancedControls ?>
</div>
@ -154,14 +154,14 @@
<input class="clear-btn btn btn-default" type="button" value="<?= $this->transEsc('Clear')?>">
<input class="btn btn-primary" type="submit" value="<?= $this->transEsc('Find')?>">
</div>
<? endif; ?>
<?php endif; ?>
</div>
<div class="<?=$this->layoutClass('sidebar')?>">
<? if ($hasDefaultsApplied): ?>
<?php if ($hasDefaultsApplied): ?>
<input type="hidden" name="dfApplied" value="1" />
<? endif ?>
<? if (!empty($searchFilters)): ?>
<?php endif ?>
<?php if (!empty($searchFilters)): ?>
<h4><?=$this->transEsc("adv_search_filters")?></h4>
<div class="facet-group">
<label class="checkbox">
@ -169,15 +169,15 @@
<?=$this->transEsc("adv_search_select_all")?>
</label>
</div>
<? foreach ($searchFilters as $field => $data): ?>
<?php foreach ($searchFilters as $field => $data): ?>
<div class="facet-group">
<div class="title"><?=$this->transEsc($field)?></div>
<? foreach ($data as $value): ?>
<?php foreach ($data as $value): ?>
<label class="facet checkbox"><input class="checkbox-select-item" type="checkbox" checked="checked" name="filter[]" value='<?=$this->escapeHtmlAttr($value['field'])?>:"<?=$this->escapeHtmlAttr($value['value'])?>"' /> <?=$this->escapeHtml($value['displayText'])?></label>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<h4><?=$this->transEsc("Help")?></h4>
<div class="facet-group">
<a class="facet help-link" data-lightbox href="<?=$this->url('help-home')?>?topic=advsearch&amp;_=<?=time() ?>"><?=$this->transEsc("Help with Advanced Search")?></a>

View File

@ -1,7 +1,7 @@
<? if (isset($this->ranges) && !empty($this->ranges)): ?>
<? $params = $this->searchParams($this->searchClassId); $params->activateAllFacets(); ?>
<? foreach ($this->ranges as $current): $escField = $this->escapeHtmlAttr($current['field']); ?>
<? $extraInputAttribs = ($current['type'] == 'date') ? 'maxlength="4" ' : ''; ?>
<?php if (isset($this->ranges) && !empty($this->ranges)): ?>
<?php $params = $this->searchParams($this->searchClassId); $params->activateAllFacets(); ?>
<?php foreach ($this->ranges as $current): $escField = $this->escapeHtmlAttr($current['field']); ?>
<?php $extraInputAttribs = ($current['type'] == 'date') ? 'maxlength="4" ' : ''; ?>
<fieldset class="range">
<legend><?=$this->transEsc($params->getFacetLabel($current['field']))?></legend>
<input type="hidden" name="<?=$this->escapeHtmlAttr($current['type'])?>range[]" value="<?=$escField?>"/>
@ -13,7 +13,7 @@
<input type="text" name="<?=$escField?>to" id="<?=$escField?>to" value="<?=$this->transEsc('date_to')?>" class="form-control" <?=$extraInputAttribs?>/>
</div>
</div>
<? if ($current['type'] == 'date'): ?>
<?php if ($current['type'] == 'date'): ?>
<div class="slider-container">
<input type="text" id="<?=$escField?><?=$this->escapeHtmlAttr($current['type'])?>Slider">
</div>
@ -64,8 +64,8 @@ $('#{$escField}from, #{$escField}to').change(function () {
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<? endif; ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $script, 'SET'); ?>
<?php endif; ?>
</fieldset>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>

View File

@ -1,20 +1,20 @@
<? if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?>
<?php if (!empty($this->facetList) || !empty($this->checkboxFacets)): ?>
<fieldset class="solr-facets">
<legend><?=$this->transEsc('Limit To')?></legend>
<? if (!empty($this->checkboxFacets)): ?>
<?php if (!empty($this->checkboxFacets)): ?>
<?=$this->render('search/advanced/checkbox-filters.phtml')?>
<? endif; ?>
<?php endif; ?>
<div class="solr-facet-container">
<? foreach ($this->facetList as $field => $list): ?>
<?php foreach ($this->facetList as $field => $list): ?>
<div class="solr-adv-facet">
<label for="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>"><?=$this->transEsc($list['label'])?>:</label>
<select class="form-control" id="limit_<?=$this->escapeHtmlAttr(str_replace(' ', '', $field))?>" name="filter[]" multiple="multiple" size="10">
<? if (is_array($this->hierarchicalFacets) && in_array($field, $this->hierarchicalFacets)): ?>
<? foreach ($list['list'] as $value): ?>
<? $display = str_pad('', 4 * $value['level'] * 6, '&nbsp;', STR_PAD_LEFT) . $this->transEsc($value['displayText']); ?>
<?php if (is_array($this->hierarchicalFacets) && in_array($field, $this->hierarchicalFacets)): ?>
<?php foreach ($list['list'] as $value): ?>
<?php $display = str_pad('', 4 * $value['level'] * 6, '&nbsp;', STR_PAD_LEFT) . $this->transEsc($value['displayText']); ?>
<option value="<?=$this->escapeHtmlAttr(($value['operator'] == 'OR' ? '~' : '') . $field . ':"' . $value['value'] . '"')?>"<?=(isset($value['selected']) && $value['selected'])?' selected="selected"':''?>><?=$display?></option>
<? endforeach; ?>
<? else: ?>
<?php endforeach; ?>
<?php else: ?>
<?
// Sort the current facet list alphabetically; we'll use this data
// along with the foreach below to display facet options in the
@ -28,27 +28,27 @@
}
natcasesort($sorted);
?>
<? foreach ($sorted as $i => $display): ?>
<? $value = $list['list'][$i]; ?>
<?php foreach ($sorted as $i => $display): ?>
<?php $value = $list['list'][$i]; ?>
<option value="<?=$this->escapeHtmlAttr(($value['operator'] == 'OR' ? '~' : '') . $field . ':"' . $value['value'] . '"')?>"<?=(isset($value['selected']) && $value['selected'])?' selected="selected"':''?>><?=$this->escapeHtml($display)?></option>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
</select>
</div>
<? endforeach; ?>
<?php endforeach; ?>
</div>
</fieldset>
<? endif; ?>
<?php endif; ?>
<div class="advanced-search-image-range">
<? if (isset($this->illustratedLimit)): ?>
<?php if (isset($this->illustratedLimit)): ?>
<fieldset class="solr">
<legend><?=$this->transEsc("Illustrated")?>:</legend>
<? foreach ($this->illustratedLimit as $current): ?>
<?php foreach ($this->illustratedLimit as $current): ?>
<input id="illustrated_<?=$this->escapeHtmlAttr($current['value'])?>" type="radio" name="illustration" value="<?=$this->escapeHtmlAttr($current['value'])?>"<?=$current['selected']?' checked="checked"':''?>/>
<label for="illustrated_<?=$this->escapeHtmlAttr($current['value'])?>"><?=$this->transEsc($current['text'])?></label><br/>
<? endforeach; ?>
<?php endforeach; ?>
</fieldset>
<? endif; ?>
<?php endif; ?>
<?=$this->render('search/advanced/limit.phtml')?>
<?=$this->render('search/advanced/ranges.phtml')?>
</div>

View File

@ -1,26 +1,26 @@
<? if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?php if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<div class="bulkActionButtons hidden-print">
<div class="bulk-checkbox">
<input type="checkbox" class="checkbox-select-all" name="selectAll" id="<?=$this->idPrefix?>addFormCheckboxSelectAll"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<input type="checkbox" class="checkbox-select-all" name="selectAll" id="<?=$this->idPrefix?>addFormCheckboxSelectAll"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<label for="<?=$this->idPrefix?>addFormCheckboxSelectAll">
<?=$this->transEsc('select_page')?>
&#124; <?=$this->transEsc('with_selected')?>:
</label>
</div>
<div class="btn-group">
<? if (isset($this->showBulkOptions) && $this->showBulkOptions): ?>
<input id="ribbon-email" class="btn btn-default" type="submit" name="email" title="<?=$this->transEsc('bookbag_email_selected')?>" value="<?=$this->transEsc('Email')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<? $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?>
<input id="ribbon-export" class="btn btn-default" type="submit" name="export" title="<?=$this->transEsc('bookbag_export_selected')?>" value="<?=$this->transEsc('Export')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<? endif; ?>
<input id="ribbon-print" class="btn btn-default" type="submit" name="print" title="<?=$this->transEsc('bookbag_print_selected')?>" value="<?=$this->transEsc('Print')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<? if ($this->userlist()->getMode() !== 'disabled'): ?>
<input id="ribbon-save" class="btn btn-default" type="submit" name="saveCart" title="<?=$this->transEsc('bookbag_save_selected')?>" value="<?=$this->transEsc('Save')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<? endif; ?>
<? endif; ?>
<? if (isset($this->showCartControls) && $this->showCartControls): ?>
<input id="<?=$this->idPrefix?>updateCart" type="submit" class="btn btn-default" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<? endif; ?>/>
<? endif; ?>
<?php if (isset($this->showBulkOptions) && $this->showBulkOptions): ?>
<input id="ribbon-email" class="btn btn-default" type="submit" name="email" title="<?=$this->transEsc('bookbag_email_selected')?>" value="<?=$this->transEsc('Email')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<?php $exportOptions = $this->export()->getBulkOptions(); if (count($exportOptions) > 0): ?>
<input id="ribbon-export" class="btn btn-default" type="submit" name="export" title="<?=$this->transEsc('bookbag_export_selected')?>" value="<?=$this->transEsc('Export')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<?php endif; ?>
<input id="ribbon-print" class="btn btn-default" type="submit" name="print" title="<?=$this->transEsc('bookbag_print_selected')?>" value="<?=$this->transEsc('Print')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<input id="ribbon-save" class="btn btn-default" type="submit" name="saveCart" title="<?=$this->transEsc('bookbag_save_selected')?>" value="<?=$this->transEsc('Save')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<?php endif; ?>
<?php endif; ?>
<?php if (isset($this->showCartControls) && $this->showCartControls): ?>
<input id="<?=$this->idPrefix?>updateCart" type="submit" class="btn btn-default" name="add" value="<?=$this->transEsc('Add to Book Bag')?>"<?if($this->formAttr):?> form="<?=$this->escapeHtmlAttr($this->formAttr) ?>"<?php endif; ?>/>
<?php endif; ?>
</div>
</div>
<? endif; ?>
<?php endif; ?>

View File

@ -1,12 +1,12 @@
<? $limitList = $this->params->getLimitList(); ?>
<? if (count($limitList) > 1): ?>
<?php $limitList = $this->params->getLimitList(); ?>
<?php if (count($limitList) > 1): ?>
<form class="form-inline" action="<?=$this->currentPath() . $this->results->getUrlQuery()->setLimit(null)?>" method="post">
<label for="limit"><?=$this->transEsc('Results per page')?></label>
<select id="limit" dir="rtl" name="limit" class="jumpMenu form-control">
<? foreach ($limitList as $limitVal => $limitData): ?>
<?php foreach ($limitList as $limitVal => $limitData): ?>
<option value="<?=$this->escapeHtmlAttr($limitVal)?>"<?=$limitData['selected']?' selected="selected"':''?>><?=$this->escapeHtml($limitData['desc'])?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<noscript><input type="submit" value="<?=$this->transEsc("Set")?>" /></noscript>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,14 +1,14 @@
<? $list = $this->params->getSortList(); if (!empty($list)): ?>
<?php $list = $this->params->getSortList(); if (!empty($list)): ?>
<form class="search-sort" action="<?=$this->currentPath()?>" method="get" name="sort">
<?=$this->results->getUrlQuery()->asHiddenFields(array('sort' => '/.*/'));?>
<select id="sort_options_1" name="sort" class="jumpMenu form-control">
<? foreach ($list as $sortType => $sortData): ?>
<?php foreach ($list as $sortType => $sortData): ?>
<option value="<?=$this->escapeHtmlAttr($sortType)?>"<?=$sortData['selected']?' selected="selected"':''?>><?=$this->transEsc($sortData['desc'])?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<label for="sort_options_1"><?=$this->transEsc('Sort')?></label>
<noscript><input type="submit" class="btn btn-default" value="<?=$this->transEsc("Set")?>" /></noscript>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,13 +1,13 @@
<? $saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled'; ?>
<?php $saveSupported = $this->accountCapabilities()->getSavedSearchSetting() === 'enabled'; ?>
<table class="table table-striped">
<tr>
<th width="20%"><?=$this->transEsc("history_time")?></th>
<th><?=$this->transEsc("history_search")?></th>
<th><?=$this->transEsc("history_limits")?></th>
<th><?=$this->transEsc("history_results")?></th>
<? if ($saveSupported): ?><th><?=$this->transEsc($this->showSaved ? "history_delete" : "history_save")?></th><? endif; ?>
<?php if ($saveSupported): ?><th><?=$this->transEsc($this->showSaved ? "history_delete" : "history_save")?></th><?php endif; ?>
</tr>
<? foreach (($this->showSaved ? array_reverse($this->saved) : array_reverse($this->unsaved)) as $iteration => $info): ?>
<?php foreach (($this->showSaved ? array_reverse($this->saved) : array_reverse($this->unsaved)) as $iteration => $info): ?>
<tr class="<?=$iteration % 2 == 1 ? 'even' : 'odd'?>row">
<td><?=$this->escapeHtml(date('d.m.y H:m', $info->getStartTime()))?></td>
<td>
@ -18,28 +18,28 @@
?></a>
</td>
<td>
<? $info->getParams()->activateAllFacets(); foreach ($info->getParams()->getFilterList(true) as $field => $filters): ?>
<? foreach ($filters as $i => $filter): ?>
<? if ($filter['operator'] == 'NOT') echo $this->transEsc('NOT') . ' '; if ($filter['operator'] == 'OR' && $i > 0) echo $this->transEsc('OR') . ' '; ?>
<?php $info->getParams()->activateAllFacets(); foreach ($info->getParams()->getFilterList(true) as $field => $filters): ?>
<?php foreach ($filters as $i => $filter): ?>
<?php if ($filter['operator'] == 'NOT') echo $this->transEsc('NOT') . ' '; if ($filter['operator'] == 'OR' && $i > 0) echo $this->transEsc('OR') . ' '; ?>
<strong><?=$this->transEsc($field)?></strong>: <?=$this->escapeHtml($filter['displayText'])?><br/>
<? endforeach; ?>
<? endforeach; ?>
<? foreach($info->getParams()->getCheckboxFacets() as $facet): ?>
<? if ($facet['selected']): ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?php foreach($info->getParams()->getCheckboxFacets() as $facet): ?>
<?php if ($facet['selected']): ?>
<strong><?=$this->transEsc($facet['desc'])?></strong><br/>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</td>
<td><?=$this->escapeHtml($this->localizedNumber($info->getResultTotal()))?></td>
<? if ($saveSupported): ?>
<?php if ($saveSupported): ?>
<td>
<? if ($this->showSaved): ?>
<?php if ($this->showSaved): ?>
<a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($info->getSearchId())?>&amp;mode=history"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc("history_delete_link")?></a>
<? else: ?>
<?php else: ?>
<a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($info->getSearchId())?>&amp;mode=history"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc("history_save_link")?></a>
<? endif; ?>
<?php endif; ?>
</td>
<? endif; ?>
<?php endif; ?>
</tr>
<? endforeach; ?>
<?php endforeach; ?>
</table>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set page title.
$this->headTitle($this->translate('Search Home'));
@ -37,7 +37,7 @@
<div class="searchHomeContent">
<?
<?php
$ilsStatusScript = <<<JS
$(document).ready(function() {
$.ajax({
@ -52,10 +52,10 @@ $(document).ready(function() {
});
JS;
?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, $ilsStatusScript, 'SET'); ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, $ilsStatusScript, 'SET'); ?>
<?=$this->context($this)->renderInContext("search/searchbox.phtml", ['ignoreHiddenFilterMemory' => true])?>
<?=$this->inlineScript(\Zend\View\Helper\HeadScript::SCRIPT, '$("#searchForm_lookfor").focus();', 'SET'); ?>
<?=$this->inlineScript(\Laminas\View\Helper\HeadScript::SCRIPT, '$("#searchForm_lookfor").focus();', 'SET'); ?>
</div>
<div class="mainbody left">
@ -73,13 +73,13 @@ JS;
<li style="list-style-type:disc; margin-left:20px;">
<span style="font-weight:bold"><?=$this->transEsc("DescriptionPublishHeadline")?></span>
<?=$this->transEsc("DescriptionPublish")?>
<? $ButtonLang = $this->transEsc("PublishButton"); ?>
<?php $ButtonLang = $this->transEsc("PublishButton"); ?>
<? if($ButtonLang == "Publizieren") : ?>
<?php if($ButtonLang == "Publizieren") : ?>
<a href='https://www.bibb.de/repository' target='_blank' rel='noopener noreferrer'><span style="font-weight:bold;">„Publizieren im VET Repository“</span></a>.
<? else : ?>
<?php else : ?>
<a href='https://www.bibb.de/en/206230.php' target='_blank' rel='noopener noreferrer'><span style="font-weight:bold;">„Publishing in the VET Repository“</span></a>.
<? endif; ?>
<?php endif; ?>
<?=$this->transEsc("DescriptionPublish2")?>
</li><br>

View File

@ -1,14 +1,14 @@
<? if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<? $i = $this->indexStart; ?>
<? foreach ($this->results->getResults() as $current): ?>
<? $recordNumber = $this->results->getStartRecord() + $i-$this->indexStart; ?>
<?php if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<?php $i = $this->indexStart; ?>
<?php foreach ($this->results->getResults() as $current): ?>
<?php $recordNumber = $this->results->getStartRecord() + $i-$this->indexStart; ?>
<div id="result<?=$i++ ?>" class="result<?=$current->supportsAjaxStatus()?' ajaxItem':''?>">
<? if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?php if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?=$this->record($current)->getCheckbox('', 'search-cart-form')?>
<? endif; ?>
<?php endif; ?>
<div> <? // class="record-number"> ?>
<div> <?php // class="record-number"> ?>
&nbsp;
<span class="badge" style="background-color:#14416b;">
<?=$recordNumber ?>
@ -17,4 +17,4 @@
<?=$this->record($current)->getSearchResult('list')?>
</div>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,15 +1,15 @@
<? if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<? $i = $this->indexStart; ?>
<? foreach ($this->results->getResults() as $current): ?>
<? $recordNumber = $this->results->getStartRecord() + $i-$this->indexStart; ?>
<?php if (!isset($this->indexStart)) $this->indexStart = 0; ?>
<?php $i = $this->indexStart; ?>
<?php foreach ($this->results->getResults() as $current): ?>
<?php $recordNumber = $this->results->getStartRecord() + $i-$this->indexStart; ?>
<div id="result<?=$i++ ?>" class="result<?=$current->supportsAjaxStatus()?' ajaxItem':''?>">
<? if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?php if (isset($this->showCheckboxes) && $this->showCheckboxes): ?>
<?//=$this->record($current)->getCheckbox('', 'search-cart-form')?>
<? endif; ?>
<?php endif; ?>
<!-- <div> <? // class="record-number"> ?>
<!-- <div> <?php // class="record-number"> ?>
&nbsp;
<span class="badge" style="background-color:#14416b;">
<?//=$recordNumber ?>
@ -18,4 +18,4 @@
-->
<?=$this->record($current)->getSearchResult('list')?>
</div>
<? endforeach; ?>
<?php endforeach; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery();
if (isset($this->overrideTitle)) {
@ -60,56 +60,56 @@
<span id="ergebnisliste"><?=$this->transEsc("Resultlist")?></span>
</div>
<? if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?>
<?php if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?>
<nav class="search-header hidden-print">
<div class="search-stats">
<? if ($recordTotal > 0): ?>
<?php if ($recordTotal > 0): ?>
<?=$this->context()->renderInContext('search/controls/showing.phtml', ['lookfor' => $lookfor, 'recordTotal' => $recordTotal]) ?>
<? else: ?>
<?php else: ?>
<h2><?=$this->transEsc('nohit_heading')?></h2>
<? endif; ?>
<?php endif; ?>
</div>
</nav>
<div class="sortierung clear">
<? if ($recordTotal > 0): ?>
<?php if ($recordTotal > 0): ?>
<div class="search-controls clear">
<?=$this->render('search/controls/limit.phtml')?>
<?=$this->render('search/controls/sort.phtml')?>
<?=$this->render('search/controls/view.phtml')?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
<?=$this->flashmessages()?>
<? /* End Listing Options */ ?>
<?php /* End Listing Options */ ?>
<? if ($recordTotal < 1): ?>
<?php if ($recordTotal < 1): ?>
<p>
<? if (isset($this->overrideEmptyMessage)): ?>
<?php if (isset($this->overrideEmptyMessage)): ?>
<?=$this->overrideEmptyMessage?>
<? else: ?>
<? $this->layout()->srmessage = $this->translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)]); ?>
<?php else: ?>
<?php $this->layout()->srmessage = $this->translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)]); ?>
<?=$this->layout()->srmessage ?>
<? endif; ?>
<?php endif; ?>
</p>
<? if (isset($this->parseError)): ?>
<?php if (isset($this->parseError)): ?>
<p class="alert alert-danger"><?=$this->transEsc('nohit_parse_error')?></p>
<? endif; ?>
<? foreach (($top = $this->results->getRecommendations('top')) as $current): ?>
<?php endif; ?>
<?php foreach (($top = $this->results->getRecommendations('top')) as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<? foreach ($this->results->getRecommendations('noresults') as $current): ?>
<? if (!in_array($current, $top)): ?>
<?php endforeach; ?>
<?php foreach ($this->results->getRecommendations('noresults') as $current): ?>
<?php if (!in_array($current, $top)): ?>
<?=$this->recommend($current)?>
<? endif; ?>
<? endforeach; ?>
<? else: ?>
<?php endif; ?>
<?php endforeach; ?>
<?php else: ?>
<div id="ergebnisfunktion" class="ergebnisfunktion">
<span><?=$this->transEsc("Result Selection")?></span>
@ -138,25 +138,25 @@
<a href="<?=$this->url('search-email')?>" class="mailSearch" data-lightbox id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>">
<i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this Search')?>
</a>
<? if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
|
<? if (is_numeric($this->results->getSearchId())): ?>
<? if ($this->results->isSavedSearch()): ?>
<?php if (is_numeric($this->results->getSearchId())): ?>
<?php if ($this->results->isSavedSearch()): ?>
<a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a>
<? else: ?>
<?php else: ?>
<a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc('save_search')?></a>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? /* End Main Listing */ ?>
<?php /* End Main Listing */ ?>
<? /* Narrow Search Options */ ?>
<?php /* Narrow Search Options */ ?>
<div class="<?=$this->layoutClass('sidebar')?>">
<? foreach ($this->results->getRecommendations('side') as $current): ?>
<?php foreach ($this->results->getRecommendations('side') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<? /* End Narrow Search Options */ ?>
<?php /* End Narrow Search Options */ ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set up page title:
$lookfor = $this->results->getUrlQuery()->isQuerySuppressed() ? '' : $this->params->getDisplayQuery();
if (isset($this->overrideTitle)) {
@ -59,54 +59,54 @@
<span id="ergebnisliste"><?=$this->transEsc("Resultlist")?></span>
</div>
<? if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?>
<?php if (($recordTotal = $this->results->getResultTotal()) > 0): // only display these at very top if we have results ?>
<nav class="search-header hidden-print">
<div class="search-stats">
<? if ($recordTotal > 0): ?>
<?php if ($recordTotal > 0): ?>
<?=$this->context()->renderInContext('search/controls/showing.phtml', ['lookfor' => $lookfor, 'recordTotal' => $recordTotal]) ?>
<? else: ?>
<?php else: ?>
<h2><?=$this->transEsc('nohit_heading')?></h2>
<? endif; ?>
<?php endif; ?>
</div>
</nav>
<div class="sortierung clear">
<? if ($recordTotal > 0): ?>
<?php if ($recordTotal > 0): ?>
<div class="search-controls clear">
<?=$this->render('search/controls/limit.phtml')?>
<?=$this->render('search/controls/sort.phtml')?>
<?=$this->render('search/controls/view.phtml')?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
<?=$this->flashmessages()?>
<? /* End Listing Options */ ?>
<?php /* End Listing Options */ ?>
<? if ($recordTotal < 1): ?>
<?php if ($recordTotal < 1): ?>
<p>
<? if (isset($this->overrideEmptyMessage)): ?>
<?php if (isset($this->overrideEmptyMessage)): ?>
<?=$this->overrideEmptyMessage?>
<? else: ?>
<? $this->layout()->srmessage = $this->translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)]); ?>
<?php else: ?>
<?php $this->layout()->srmessage = $this->translate('nohit_lookfor_html', ['%%lookfor%%' => $this->escapeHtml($lookfor)]); ?>
<?=$this->layout()->srmessage ?>
<? endif; ?>
<?php endif; ?>
</p>
<? if (isset($this->parseError)): ?>
<?php if (isset($this->parseError)): ?>
<p class="alert alert-danger"><?=$this->transEsc('nohit_parse_error')?></p>
<? endif; ?>
<? foreach (($top = $this->results->getRecommendations('top')) as $current): ?>
<?php endif; ?>
<?php foreach (($top = $this->results->getRecommendations('top')) as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<? foreach ($this->results->getRecommendations('noresults') as $current): ?>
<? if (!in_array($current, $top)): ?>
<?php endforeach; ?>
<?php foreach ($this->results->getRecommendations('noresults') as $current): ?>
<?php if (!in_array($current, $top)): ?>
<?=$this->recommend($current)?>
<? endif; ?>
<? endforeach; ?>
<? else: ?>
<?php endif; ?>
<?php endforeach; ?>
<?php else: ?>
<?=$this->render('search/list-' . $this->params->getView() . 'Authorities.phtml')?>
@ -121,25 +121,25 @@
<a href="<?=$this->url('search-email')?>" class="mailSearch" data-lightbox id="mailSearch<?=$this->escapeHtmlAttr($this->results->getSearchId())?>">
<i class="fa fa-envelope" aria-hidden="true"></i> <?=$this->transEsc('Email this Search')?>
</a>
<? if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
<?php if ($this->accountCapabilities()->getSavedSearchSetting() === 'enabled'): ?>
|
<? if (is_numeric($this->results->getSearchId())): ?>
<? if ($this->results->isSavedSearch()): ?>
<?php if (is_numeric($this->results->getSearchId())): ?>
<?php if ($this->results->isSavedSearch()): ?>
<a href="<?=$this->url('myresearch-savesearch')?>?delete=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-remove" aria-hidden="true"></i> <?=$this->transEsc('save_search_remove')?></a>
<? else: ?>
<?php else: ?>
<a href="<?=$this->url('myresearch-savesearch')?>?save=<?=urlencode($this->results->getSearchId())?>"><i class="fa fa-save" aria-hidden="true"></i> <?=$this->transEsc('save_search')?></a>
<? endif; ?>
<? endif; ?>
<? endif; ?>
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<?php endif; ?>
</div>
<? /* End Main Listing */ ?>
<?php /* End Main Listing */ ?>
<? /* Narrow Search Options */ ?>
<?php /* Narrow Search Options */ ?>
<div class="<?=$this->layoutClass('sidebar')?>">
<? foreach ($this->results->getRecommendations('side') as $current): ?>
<?php foreach ($this->results->getRecommendations('side') as $current): ?>
<?=$this->recommend($current)?>
<? endforeach; ?>
<?php endforeach; ?>
</div>
<? /* End Narrow Search Options */ ?>
<?php /* End Narrow Search Options */ ?>

View File

@ -1,16 +1,16 @@
<? if (count($searchTabs) > 0): ?>
<?php if (count($searchTabs) > 0): ?>
<ul class="nav nav-tabs">
<? foreach ($searchTabs as $tab): ?>
<? if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php foreach ($searchTabs as $tab): ?>
<?php if ($this->permission()->allowDisplay($tab['permission'])): ?>
<li<?=$tab['selected'] ? ' option selected="selected" ' : ''?>>
<a <?=$tab['selected'] ? ' style="color:#448001; font-weight:bold"' : 'href="' . $this->escapeHtmlAttr($tab['url']) . '"' ?>><?=$this->transEsc($tab['label']); ?></a>
</li>
<? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?php elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?=$block?>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<li>
<a href="/vufind/Authority/Home"><?=$this->transEsc("Search Authority File"); ?></a>
</li>
</ul>
<? endif; ?>
<?php endif; ?>

View File

@ -1,21 +1,21 @@
<? //echo "URL : " .$this->url($basicSearch) ."\n"; ?>
<?php //echo "URL : " .$this->url($basicSearch) ."\n"; ?>
<? if (count($searchTabs) > 0): ?>
<?php if (count($searchTabs) > 0): ?>
<div="row">
<? foreach ($searchTabs as $Tabs) : ?>
<? if ($pos = strpos($Tabs['url'], $this->url($basicSearch))!== false) $Tabs['url'] = substr($Tabs['url'], strlen($this->url($basicSearch))+1) ; ?>
<? echo $Tabs['url']; ?>
<? endforeach; ?>
<?php foreach ($searchTabs as $Tabs) : ?>
<?php if ($pos = strpos($Tabs['url'], $this->url($basicSearch))!== false) $Tabs['url'] = substr($Tabs['url'], strlen($this->url($basicSearch))+1) ; ?>
<?php echo $Tabs['url']; ?>
<?php endforeach; ?>
<? foreach ($searchTabs as $tab): ?>
<? if ($this->permission()->allowDisplay($tab['permission'])): ?>
<? $tab['selected'] ? ' class="active"' : ''?>
<? //print_r($tab) ; ?>
<?php foreach ($searchTabs as $tab): ?>
<?php if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php $tab['selected'] ? ' class="active"' : ''?>
<?php //print_r($tab) ; ?>
<input type="checkbox" <?=$isSelected ? 'checked="checked" ' : ''?>name='hiddenFilters' value='<?=($tab['url'])?>' /> <?=$this->transEsc($tab['label'])?>
<? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?php elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?=$block?>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</div>
<? endif ?>
<?php endif ?>

View File

@ -1,17 +1,17 @@
<? if (count($searchTabs) > 0): ?>
<?php if (count($searchTabs) > 0): ?>
<ul class="nav nav-tabs">
<? foreach ($searchTabs as $tab): ?>
<? if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php foreach ($searchTabs as $tab): ?>
<?php if ($this->permission()->allowDisplay($tab['permission'])): ?>
<li<?=$tab['selected'] ? ' option selected="selected" ' : ''?>>
<a <?=$tab['selected'] ? ' style="color:#448001; font-weight:bold"' : 'href="' . $this->escapeHtmlAttr($tab['url']) . '"' ?>><?=$this->transEsc($tab['label']); ?></a>
</li>
<? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?php elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?=$block?>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
<li option value="" selected="selected">
<a href="/vufind/Authority/Home" style="color:#448001; font-weight:bold"><?=$this->transEsc("Search Authority File");?></a>
</option>
</li>
</ul>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<? if (count($searchTabs) > 0): ?>
<?php if (count($searchTabs) > 0): ?>
<div class="row">
<div class="col-md-5 col-sm-1">
<table class="table table-bordered">
@ -16,7 +16,7 @@
</div>
</div>
<? endif; ?>
<?php endif; ?>
@ -24,17 +24,17 @@
<div class="pull-left">
<ul class="nav navbar-left nav-pills">
<? foreach ($searchTabs as $tab): ?>
<? if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php foreach ($searchTabs as $tab): ?>
<?php if ($this->permission()->allowDisplay($tab['permission'])): ?>
<li<?=$tab['selected'] ? ' class="active"' : ' class="active"'?>>
<a <?=$tab['selected'] ? ' ' : 'href="' . $this->escapeHtmlAttr($tab['url']) . '"' ?>><?=$this->transEsc($tab['label']); ?></a>
</li>
<? elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?php elseif ($block = $this->permission()->getAlternateContent($tab['permission'])): ?>
<?=$block?>
<? endif; ?>
<? endforeach; ?>
<?php endif; ?>
<?php endforeach; ?>
</ul>
</div>
</div>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set default value if necessary:
if (!isset($this->searchClassId)) {
$this->searchClassId = 'Solr';
@ -18,90 +18,90 @@
$lastLimit = $this->searchMemory()->getLastLimit($this->searchClassId);
$ignoreHiddenFilterMemory = isset($this->ignoreHiddenFilterMemory) && $this->ignoreHiddenFilterMemory;
$ignoreHiddenFiltersInRequest = isset($this->ignoreHiddenFiltersInRequest) && $this->ignoreHiddenFiltersInRequest;
$hiddenFilters = $this->searchtabs()->getHiddenFilters($this->searchClassId, $ignoreHiddenFilterMemory, $ignoreHiddenFiltersInRequest);
$hiddenFilters = $this->searchTabs()->getHiddenFilters($this->searchClassId, $ignoreHiddenFilterMemory, $ignoreHiddenFiltersInRequest);
if (empty($hiddenFilters) && !$ignoreHiddenFilterMemory) {
$hiddenFilters = $this->searchMemory()->getLastHiddenFilters($this->searchClassId);
if (empty($hiddenFilters)) {
$hiddenFilters = $this->searchtabs()->getHiddenFilters($this->searchClassId);
$hiddenFilters = $this->searchTabs()->getHiddenFilters($this->searchClassId);
}
}
$hiddenFilterParams = $this->searchtabs()->getCurrentHiddenFilterParams($this->searchClassId, $ignoreHiddenFilterMemory, '?');
$hiddenFilterParams = $this->searchTabs()->getCurrentHiddenFilterParams($this->searchClassId, $ignoreHiddenFilterMemory, '?');
?>
<? $searchTabs = $this->searchtabs()->getTabConfig($this->searchClassId, $this->lookfor, $this->searchIndex, $this->searchType, $hiddenFilters); ?>
<? if ($this->searchType == 'advanced'): ?>
<?php $searchTabs = $this->searchTabs()->getTabConfig($this->searchClassId, $this->lookfor, $this->searchIndex, $this->searchType, $hiddenFilters); ?>
<?php if ($this->searchType == 'advanced'): ?>
<div class="navbar-form navbar-left flip">
<? $tabs = $this->context($this)->renderInContext('search/searchTabs', ['searchTabs' => $searchTabs['tabs']]); ?>
<? if (!empty($tabs)): ?><?=$tabs ?><div class="tab-content clearfix"><? endif; ?>
<?php $tabs = $this->context($this)->renderInContext('search/searchTabs', ['searchTabs' => $searchTabs['tabs']]); ?>
<?php if (!empty($tabs)): ?><?=$tabs ?><div class="tab-content clearfix"><?php endif; ?>
<p class="adv_search_terms"><?=$this->transEsc("Your search terms")?> : "<strong><?=$this->escapeHtml($this->lookfor)?></strong>"</p>
<p class="adv_search_links">
<a href="<?=$this->url($advSearch)?>?edit=<?=$this->escapeHtmlAttr($this->searchId)?>"><?=$this->transEsc("Edit this Advanced Search")?></a> |
<a href="<?=$this->url($advSearch) . $hiddenFilterParams?>"><?=$this->transEsc("Start a new Advanced Search")?></a> |
<a href="<?=$this->url($searchHome) . $hiddenFilterParams?>"><?=$this->transEsc("Start a new Basic Search")?></a>
</p>
<? if (!empty($tabs)): ?></div><? endif; ?>
<?php if (!empty($tabs)): ?></div><?php endif; ?>
</div>
<? else: ?>
<?php else: ?>
<form id="searchForm" class="searchForm navbar-form navbar-left flip" style="padding-top:0px;" method="get" action="<?=$this->url($basicSearch)?>" name="searchForm" autocomplete="off">
<? $placeholder = $this->searchbox()->getPlaceholderText(isset($searchTabs['selected']['id']) ? $searchTabs['selected']['id'] : null); ?>
<input id="searchForm_lookfor" class="searchForm_lookfor form-control search-query<? if($this->searchbox()->autocompleteEnabled($this->searchClassId)):?> autocomplete searcher:<?=$this->escapeHtmlAttr($this->searchClassId) ?><? endif ?>" type="text" name="lookfor" value="<?=$this->escapeHtmlAttr($this->lookfor)?>"<? if ($placeholder): ?> placeholder="<?=$this->transEsc($placeholder) ?>"<? endif ?> />
<? if ($handlerCount > 1): ?>
<?php $placeholder = $this->searchbox()->getPlaceholderText(isset($searchTabs['selected']['id']) ? $searchTabs['selected']['id'] : null); ?>
<input id="searchForm_lookfor" class="searchForm_lookfor form-control search-query<?php if($this->searchbox()->autocompleteEnabled($this->searchClassId)):?> autocomplete searcher:<?=$this->escapeHtmlAttr($this->searchClassId) ?><?php endif ?>" type="text" name="lookfor" value="<?=$this->escapeHtmlAttr($this->lookfor)?>"<?php if ($placeholder): ?> placeholder="<?=$this->transEsc($placeholder) ?>"<?php endif ?> />
<?php if ($handlerCount > 1): ?>
<select id="searchForm_type" class="searchForm_type form-control" name="type" data-native-menu="false">
<? foreach ($handlers as $handler): ?>
<?php foreach ($handlers as $handler): ?>
<option value="<?=$this->escapeHtmlAttr($handler['value'])?>"<?=$handler['selected'] ? ' selected="selected"' : ''?>><?=$handler['indent'] ? '-- ' : ''?><?=$this->transEsc($handler['label'])?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<? elseif ($handlerCount == 1): ?>
<?php elseif ($handlerCount == 1): ?>
<input type="hidden" name="type" value="<?=$this->escapeHtmlAttr($handlers[0]['value'])?>" />
<? endif; ?>
<?php endif; ?>
<? // RKE: search Field "Fulltext only ?>
<? if (count($searchTabs) > 0): ?>
<? foreach ($searchTabs as $tab): ?>
<? // if ($this->permission()->allowDisplay($tab['permission'])): ?>
<? if (isset($tab['label'])) : ?>
<? if (strcmp($tab['label'],"Gesamtbestand") == 0 || strcmp($tab['label'],"VET Repository") == 0) : ?>
<?php // RKE: search Field "Fulltext only ?>
<?php if (count($searchTabs) > 0): ?>
<?php foreach ($searchTabs as $tab): ?>
<?php // if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php if (isset($tab['label'])) : ?>
<?php if (strcmp($tab['label'],"Gesamtbestand") == 0 || strcmp($tab['label'],"VET Repository") == 0) : ?>
<input type="checkbox" name='filter' value='(format:"Electronic resource" OR format:"eBook")' /> <?=$this->transEsc('Filter_electronic_resource')?>
<!-- <input type="checkbox" name='filter' value='format:"Electronic resource"' /> <?=$this->transEsc('Filter_electronic_resource')?> -->
<? endif; ?>
<? endif; ?>
<? // endif; ?>
<? endforeach; ?>
<? endif; ?>
<? //END RKE: search Field "Fulltext only ?>
<?php endif; ?>
<?php endif; ?>
<?php // endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php //END RKE: search Field "Fulltext only ?>
<button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i></button>
<? if ($advSearch): ?>
<?php if ($advSearch): ?>
<a href="<?=$this->url($advSearch) . ((isset($this->searchId) && $this->searchId) ? '?edit=' . $this->escapeHtmlAttr($this->searchId) : $hiddenFilterParams) ?>" class="btn btn-link advancedSearch" rel="nofollow"><?=$this->transEsc("Advanced Search")?></a>
<? endif; ?>
<?php endif; ?>
<?= $this->context($this)->renderInContext('search/searchTabs', ['searchTabs' => $searchTabs['tabs']]); ?>
<? if ($geoUrl = $this->geocoords()->getSearchUrl($options)) : ?>
<?php if ($geoUrl = $this->geocoords()->getSearchUrl($options)) : ?>
<a href="<?=$geoUrl ?>" class="btn btn-link"><?=$this->transEsc('Geographic Search')?></a>
<? endif; ?>
<?php endif; ?>
<? $shards = $options->getShards(); if ($options->showShardCheckboxes() && !empty($shards)): ?>
<?
<?php $shards = $options->getShards(); if ($options->showShardCheckboxes() && !empty($shards)): ?>
<?php
$selectedShards = isset($this->selectedShards)
? $this->selectedShards : $options->getDefaultSelectedShards();
?>
<br />
<? foreach ($shards as $shard => $val): ?>
<? $isSelected = empty($selectedShards) || in_array($shard, $selectedShards); ?>
<?php foreach ($shards as $shard => $val): ?>
<?php $isSelected = empty($selectedShards) || in_array($shard, $selectedShards); ?>
<input type="checkbox" <?=$isSelected ? 'checked="checked" ' : ''?>name="shard[]" value='<?=$this->escapeHtmlAttr($shard)?>' /> <?=$this->transEsc($shard)?>
<? endforeach; ?>
<? endif; ?>
<?
<?php endforeach; ?>
<?php endif; ?>
<?php
$filterDetails = $this->searchbox()->getFilterDetails(
isset($this->filterList) && is_array($this->filterList) ? $this->filterList : [],
isset($this->checkboxFilters) && is_array($this->checkboxFilters) ? $this->checkboxFilters : []
);
?>
<? if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?>
<? $defaultFilterState = $options->getRetainFilterSetting() ? ' checked="checked"' : ''; ?>
<?php if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?>
<?php $defaultFilterState = $options->getRetainFilterSetting() ? ' checked="checked"' : ''; ?>
<div class="checkbox">
<label>
<input onChange="$('.applied-filter').click()" type="checkbox"<?=$defaultFilterState?> class="searchFormKeepFilters"/>
@ -109,23 +109,23 @@
</label>
</div>
<div class="hidden">
<? foreach ($filterDetails as $current): ?>
<?php foreach ($filterDetails as $current): ?>
<input class="applied-filter" id="<?=$this->escapeHtmlAttr($current['id'])?>" type="checkbox"<?=$defaultFilterState?> name="filter[]" value="<?=$this->escapeHtmlAttr($current['value'])?>" />
<label for="<?=$this->escapeHtmlAttr($current['id'])?>"><?=$this->escapeHtml($current['value'])?></label>
<? endforeach; ?>
<? if (isset($hasDefaultsApplied) && $hasDefaultsApplied): ?>
<?php endforeach; ?>
<?php if (isset($hasDefaultsApplied) && $hasDefaultsApplied): ?>
<!-- this is a hidden element that flags whether or not default filters have been applied;
it is intentionally unlabeled, as users are not meant to manipulate it directly. -->
<input class="applied-filter" id="dfApplied" type="checkbox" name="dfApplied" value="1"<?=$defaultFilterState?> />
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<? foreach ($hiddenFilters as $key => $filter): ?>
<? foreach ($filter as $value): ?>
<?php endif; ?>
<?php foreach ($hiddenFilters as $key => $filter): ?>
<?php foreach ($filter as $value): ?>
<input type="hidden" name="hiddenFilters[]" value="<?=$this->escapeHtmlAttr($key) . ':' . $this->escapeHtmlAttr($value)?>" />
<? endforeach; ?>
<? endforeach; ?>
<?
<?php endforeach; ?>
<?php endforeach; ?>
<?php
/* Show hidden field for active search class when in combined handler mode. */
if ($this->searchbox()->combinedHandlersActive()) {
echo '<input type="hidden" name="activeSearchClassId" value="' . $this->escapeHtmlAttr($this->searchClassId) . '" />';
@ -139,4 +139,4 @@
}
?>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,4 +1,4 @@
<?
<?php
// Set default value if necessary:
if (!isset($this->searchClassId)) {
$this->searchClassId = 'SolrAuth';
@ -27,80 +27,80 @@
}
$hiddenFilterParams = $this->searchtabs()->getCurrentHiddenFilterParams($this->searchClassId, $ignoreHiddenFilterMemory, '?');
?>
<? $searchTabs = $this->searchtabs()->getTabConfig($this->searchClassId, $this->lookfor, $this->searchIndex, $this->searchType, $hiddenFilters); ?>
<? if ($this->searchType == 'advanced'): ?>
<?php $searchTabs = $this->searchtabs()->getTabConfig($this->searchClassId, $this->lookfor, $this->searchIndex, $this->searchType, $hiddenFilters); ?>
<?php if ($this->searchType == 'advanced'): ?>
<div class="navbar-form navbar-left flip">
<? $tabs = $this->context($this)->renderInContext('search/searchTabsAuthorities', ['searchTabs' => $searchTabs['tabs']]); ?>
<? if (!empty($tabs)): ?><?=$tabs ?><div class="tab-content clearfix"><? endif; ?>
<?php $tabs = $this->context($this)->renderInContext('search/searchTabsAuthorities', ['searchTabs' => $searchTabs['tabs']]); ?>
<?php if (!empty($tabs)): ?><?=$tabs ?><div class="tab-content clearfix"><?php endif; ?>
<p class="adv_search_terms"><?=$this->transEsc("Your search terms")?> : "<strong><?=$this->escapeHtml($this->lookfor)?></strong>"</p>
<p class="adv_search_links">
<a href="<?=$this->url($advSearch)?>?edit=<?=$this->escapeHtmlAttr($this->searchId)?>"><?=$this->transEsc("Edit this Advanced Search")?></a> |
<a href="<?=$this->url($advSearch) . $hiddenFilterParams?>"><?=$this->transEsc("Start a new Advanced Search")?></a> |
<a href="<?=$this->url($searchHome) . $hiddenFilterParams?>"><?=$this->transEsc("Start a new Basic Search")?></a>
</p>
<? if (!empty($tabs)): ?></div><? endif; ?>
<?php if (!empty($tabs)): ?></div><?php endif; ?>
</div>
<? else: ?>
<?php else: ?>
<form id="searchForm" class="searchForm navbar-form navbar-left flip" style="padding-top:0px;" method="get" action="<?=$this->url($basicSearch)?>" name="searchForm" autocomplete="off">
<? $placeholder = $this->searchbox()->getPlaceholderText(isset($searchTabs['selected']['id']) ? $searchTabs['selected']['id'] : null); ?>
<input id="searchForm_lookfor" class="searchForm_lookfor form-control search-query<? if($this->searchbox()->autocompleteEnabled($this->searchClassId)):?> autocomplete searcher:<?=$this->escapeHtmlAttr($this->searchClassId) ?><? endif ?>" type="text" name="lookfor" value="<?=$this->escapeHtmlAttr($this->lookfor)?>"<? if ($placeholder): ?> placeholder="<?=$this->transEsc($placeholder) ?>"<? endif ?> />
<? if ($handlerCount > 1): ?>
<?php $placeholder = $this->searchbox()->getPlaceholderText(isset($searchTabs['selected']['id']) ? $searchTabs['selected']['id'] : null); ?>
<input id="searchForm_lookfor" class="searchForm_lookfor form-control search-query<?php if($this->searchbox()->autocompleteEnabled($this->searchClassId)):?> autocomplete searcher:<?=$this->escapeHtmlAttr($this->searchClassId) ?><?php endif ?>" type="text" name="lookfor" value="<?=$this->escapeHtmlAttr($this->lookfor)?>"<?php if ($placeholder): ?> placeholder="<?=$this->transEsc($placeholder) ?>"<?php endif ?> />
<?php if ($handlerCount > 1): ?>
<select id="searchForm_type" class="searchForm_type form-control" name="type" data-native-menu="false">
<? foreach ($handlers as $handler): ?>
<?php foreach ($handlers as $handler): ?>
<option value="<?=$this->escapeHtmlAttr($handler['value'])?>"<?=$handler['selected'] ? ' selected="selected"' : ''?>><?=$handler['indent'] ? '-- ' : ''?><?=$this->transEsc($handler['label'])?></option>
<? endforeach; ?>
<?php endforeach; ?>
</select>
<? elseif ($handlerCount == 1): ?>
<?php elseif ($handlerCount == 1): ?>
<input type="hidden" name="type" value="<?=$this->escapeHtmlAttr($handlers[0]['value'])?>" />
<? endif; ?>
<?php endif; ?>
<? if (count($searchTabs) > 0): ?>
<? foreach ($searchTabs as $tab): ?>
<? // if ($this->permission()->allowDisplay($tab['permission'])): ?>
<? if (isset($tab['label'])) : ?>
<? if (strcmp($tab['label'],"Gesamtbestand") == 0 || strcmp($tab['label'],"VET Repository") == 0) : ?>
<?php if (count($searchTabs) > 0): ?>
<?php foreach ($searchTabs as $tab): ?>
<?php // if ($this->permission()->allowDisplay($tab['permission'])): ?>
<?php if (isset($tab['label'])) : ?>
<?php if (strcmp($tab['label'],"Gesamtbestand") == 0 || strcmp($tab['label'],"VET Repository") == 0) : ?>
<input type="checkbox" name='filter' value='(format:"Electronic resource" OR format:"eBook")' /> <?=$this->transEsc('Filter_electronic_resource')?>
<!-- <input type="checkbox" name='filter' value='format:"Electronic resource"' /> <?=$this->transEsc('Filter_electronic_resource')?> -->
<? endif; ?>
<? endif; ?>
<? // endif; ?>
<? endforeach; ?>
<? endif; ?>
<? //END RKE: search Field "Fulltext only ?>
<?php endif; ?>
<?php endif; ?>
<?php // endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?php //END RKE: search Field "Fulltext only ?>
<button type="submit" class="btn btn-primary"><i class="fa fa-search" aria-hidden="true"></i></button>
<? if ($advSearch): ?>
<?php if ($advSearch): ?>
<a href="<?=$this->url($advSearch) . ((isset($this->searchId) && $this->searchId) ? '?edit=' . $this->escapeHtmlAttr($this->searchId) : $hiddenFilterParams) ?>" class="btn btn-link advancedSearch" rel="nofollow"><?=$this->transEsc("Advanced Search")?></a>
<? endif; ?>
<?php endif; ?>
<?= $this->context($this)->renderInContext('search/searchTabsAuthorities', ['searchTabs' => $searchTabs['tabs']]); ?>
<? if ($geoUrl = $this->geocoords()->getSearchUrl($options)) : ?>
<?php if ($geoUrl = $this->geocoords()->getSearchUrl($options)) : ?>
<a href="<?=$geoUrl ?>" class="btn btn-link"><?=$this->transEsc('Geographic Search')?></a>
<? endif; ?>
<?php endif; ?>
<? $shards = $options->getShards(); if ($options->showShardCheckboxes() && !empty($shards)): ?>
<?php $shards = $options->getShards(); if ($options->showShardCheckboxes() && !empty($shards)): ?>
<?
$selectedShards = isset($this->selectedShards)
? $this->selectedShards : $options->getDefaultSelectedShards();
?>
<br />
<? foreach ($shards as $shard => $val): ?>
<? $isSelected = empty($selectedShards) || in_array($shard, $selectedShards); ?>
<?php foreach ($shards as $shard => $val): ?>
<?php $isSelected = empty($selectedShards) || in_array($shard, $selectedShards); ?>
<input type="checkbox" <?=$isSelected ? 'checked="checked" ' : ''?>name="shard[]" value='<?=$this->escapeHtmlAttr($shard)?>' /> <?=$this->transEsc($shard)?>
<? endforeach; ?>
<? endif; ?>
<?php endforeach; ?>
<?php endif; ?>
<?
$filterDetails = $this->searchbox()->getFilterDetails(
isset($this->filterList) && is_array($this->filterList) ? $this->filterList : [],
isset($this->checkboxFilters) && is_array($this->checkboxFilters) ? $this->checkboxFilters : []
);
?>
<? if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?>
<? $defaultFilterState = $options->getRetainFilterSetting() ? ' checked="checked"' : ''; ?>
<?php if ((isset($hasDefaultsApplied) && $hasDefaultsApplied) || !empty($filterDetails)): ?>
<?php $defaultFilterState = $options->getRetainFilterSetting() ? ' checked="checked"' : ''; ?>
<div class="checkbox">
<label>
<input onChange="$('.applied-filter').click()" type="checkbox"<?=$defaultFilterState?> class="searchFormKeepFilters"/>
@ -108,22 +108,22 @@
</label>
</div>
<div class="hidden">
<? foreach ($filterDetails as $current): ?>
<?php foreach ($filterDetails as $current): ?>
<input class="applied-filter" id="<?=$this->escapeHtmlAttr($current['id'])?>" type="checkbox"<?=$defaultFilterState?> name="filter[]" value="<?=$this->escapeHtmlAttr($current['value'])?>" />
<label for="<?=$this->escapeHtmlAttr($current['id'])?>"><?=$this->escapeHtml($current['value'])?></label>
<? endforeach; ?>
<? if (isset($hasDefaultsApplied) && $hasDefaultsApplied): ?>
<?php endforeach; ?>
<?php if (isset($hasDefaultsApplied) && $hasDefaultsApplied): ?>
<!-- this is a hidden element that flags whether or not default filters have been applied;
it is intentionally unlabeled, as users are not meant to manipulate it directly. -->
<input class="applied-filter" id="dfApplied" type="checkbox" name="dfApplied" value="1"<?=$defaultFilterState?> />
<? endif; ?>
<?php endif; ?>
</div>
<? endif; ?>
<? foreach ($hiddenFilters as $key => $filter): ?>
<? foreach ($filter as $value): ?>
<?php endif; ?>
<?php foreach ($hiddenFilters as $key => $filter): ?>
<?php foreach ($filter as $value): ?>
<input type="hidden" name="hiddenFilters[]" value="<?=$this->escapeHtmlAttr($key) . ':' . $this->escapeHtmlAttr($value)?>" />
<? endforeach; ?>
<? endforeach; ?>
<?php endforeach; ?>
<?php endforeach; ?>
<?
/* Show hidden field for active search class when in combined handler mode. */
if ($this->searchbox()->combinedHandlersActive()) {
@ -138,4 +138,4 @@
}
?>
</form>
<? endif; ?>
<?php endif; ?>

View File

@ -1,9 +1,5 @@
<?php
return array(
'extends' => 'bootprint3',
'extends' => 'bootstrap5',
'favicon' => 'images/favicon.ico',
"less" => array(
"active" => true,
"compiled.less"
),
);