Skip to content
Snippets Groups Projects
Commit 1560cf29 authored by Robert Lange's avatar Robert Lange Committed by André Lahmann
Browse files

refs #17752 [finc v5] handle cover and style based icons

* reset to original operating mode: first cover, then style based icons
** Default core
** SolrAI core
** SolrMarc core
* but if cover cannot be loaded, then use style based icon as fallback
** by using object tag with inner icon
** by setting content of fallback icon noCover2 to empty => interpreted as no content in browser

* add new fallback icon instead of changing existing

** keep noCover2.gif unchanged, but add new empty file noCoverEmpty.gif
** use noCoverEmpty.gif in finc as default noCoverAvailableImage set in config.ini
** after merging this branch, instances won't have a noCoverAvailableImage anymore:
*** either set noCoverAvailableImage = images/noCover2.gif in instance config.ini
*** or use object tag in core templates as in master core templates

co-authored by: "ckaz <kazzer@uni-leipzig.de>"
refs #17752 [finc vf5] fixes record view icon placement

* fixes record view icon placement for left-aligned facets in
** DefaultRecord/core
** SolrAi/core
** SolrMarc/core

* fixes style-based icon display with left-aligned facets
* corrects switchable ini-settings for displaying either stylebasedicons
or other icons/covers

* adds definition for right-floating record view icons when sidebar is
left-aligned
parent 57f4cb44
Branches
Tags
No related merge requests found
...@@ -635,7 +635,7 @@ coverimagesCache = true ...@@ -635,7 +635,7 @@ coverimagesCache = true
; Otherwise, you can use noCoverAvailableImage to specify a ; Otherwise, you can use noCoverAvailableImage to specify a
; path relative to the base of your theme directory for a static image to display. ; path relative to the base of your theme directory for a static image to display.
noCoverAvailableImage = images/noCover2.gif noCoverAvailableImage = images/noCoverEmpty.gif
; You can select from Syndetics, SyndeticsPlus, Amazon Editorial, Amazon, Booksite ; You can select from Syndetics, SyndeticsPlus, Amazon Editorial, Amazon, Booksite
; and/or the Guardian ; and/or the Guardian
......
...@@ -1682,6 +1682,12 @@ footer { ...@@ -1682,6 +1682,12 @@ footer {
width: 100%; width: 100%;
} }
// push record view icon to right (Desktop) on left-aligned sidebars -- pls NOTE: required offcanvas = true
.offcanvas-left .media-left {
@media (min-width: $screen-sm-min) {
float: right;
}
}
//// Off-Canvas - END //// Off-Canvas - END
// SEARCH CONTROLS - END // SEARCH CONTROLS - END
......
<!-- finc: RecordDriver - DefaultRecord - core --> <!-- finc: RecordDriver - DefaultRecord - core -->
<div class="media" vocab="http://schema.org/" resource="#record" typeof="<?=$this->driver->getSchemaOrgFormats()?> Product"> <div class="media" vocab="http://schema.org/" resource="#record" typeof="<?= $this->driver->getSchemaOrgFormats() ?> Product">
<?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?> <?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?>
<?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?> <?= $this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?>
<?php <?php
$QRCode = $this->record($this->driver)->getQRCode("core"); $QRCode = $this->record($this->driver)->getQRCode("core");
$coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('large')); $coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('large'));
...@@ -9,35 +9,38 @@ ...@@ -9,35 +9,38 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<?php if ($QRCode || $cover || $preview): ?> <?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"> <div class="media-left <?= $this->escapeHtmlAttr($coverDetails['size']) ?> img-col">
<?php /* Display thumbnail if appropriate: */ ?> <?php /* Display thumbnail if appropriate: */ ?>
<?php if ($cover): ?> <?php if ($cover): ?>
<?=$cover?> <object type="image/jpeg" data="<?=$coverDetails['link']?>">
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, false position - GG */ ?> <?= $this->record($this->driver)->getRecordIcon() ?>
</object>
<?php endif; ?> <?php endif; ?>
<?php /* Display qrcode if appropriate: */ ?> <?php /* Display qrcode if appropriate: */ ?>
<?php if ($QRCode): ?> <?php if ($QRCode): ?>
<span class="hidden-xs"> <span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?= $this->transEsc('QR Code') ?>" class="qrcode" src="<?= $this->escapeHtmlAttr($QRCode); ?>"/>
</span> </span>
<?php endif; ?> <?php endif; ?>
<?php // 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 // from this area of the record view, this can be split into
// getPreviewData() (should stay here) and // getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?> // getPreviewLink() (can go in your desired tab)?>
<?php if ($preview): ?> <?php if ($preview): ?>
<div class="record-previews"> <div class="record-previews">
<?=$preview?> <?= $preview ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?> <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
<?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?> <?php /* BOF - finc-specific StyleBasedIcons */ ?>
<?=$this->record($this->driver)->getRecordIcon()?> <div class="media-left <?= $this->escapeHtmlAttr($coverDetails['size']) ?> img-col">
<?php /* EOF - finc-specific StyleBasedIcons */ ?> <?= $this->record($this->driver)->getRecordIcon() ?>
<?php endif; ?> </div>
<?php endif; ?>
<div class="media-body"> <div class="media-body">
<?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars; <?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars;
...@@ -45,22 +48,23 @@ ...@@ -45,22 +48,23 @@
*/ */
?> ?>
<?php /* finc: add schema tags for title #13850 - VE */ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1> <h1
property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<?php $summary = $this->driver->getSummary(); <?php $summary = $this->driver->getSummary();
$summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?> $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?> <?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p> <p><?= $this->truncate($summary, 300) ?></p>
<?php if (strlen($summary) > 300): ?> <?php if (strlen($summary) > 300): ?>
<p class="hidden-print"><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p> <p class="hidden-print"><a href='<?= $this->recordLink()->getTabUrl($this->driver, 'Description') ?>#tabnav'><?= $this->transEsc('Full description') ?></a></p>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?> <?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?> <?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists hidden alert alert-info"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?= $this->transEsc("Saved in") ?>:</strong>
</div> </div>
<?php endif; ?> <?php endif; ?>
...@@ -72,11 +76,11 @@ ...@@ -72,11 +76,11 @@
<?php if (!empty($coreFields)): ?> <?php if (!empty($coreFields)): ?>
<?php /* include responsive data table - CK */ ?> <?php /* include responsive data table - CK */ ?>
<table class="table table-striped table-resp-data"> <table class="table table-striped table-resp-data">
<caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption> <caption class="sr-only"><?= $this->transEsc('Bibliographic Details') ?></caption>
<?php foreach ($coreFields as $current): ?> <?php foreach ($coreFields as $current): ?>
<tr> <tr>
<th><?=$this->transEsc($current['label'])?>:</th> <th><?= $this->transEsc($current['label']) ?>:</th>
<td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td> <td data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
</tr> </tr>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
......
<!-- finc: recordDriver - SolrAI - core --> <!-- finc: recordDriver - SolrAI - core -->
<?php /* Created in 4826, based on DefaultRecord/core, compare with DefaultRecord/core during updates! */ ?> <?php /* Created in 4826, based on DefaultRecord/core, compare with DefaultRecord/core during updates! */ ?>
<div class="media" vocab="http://schema.org/" resource="#record" typeof="<?=$this->driver->getSchemaOrgFormats()?> Product"> <div class="media" vocab="http://schema.org/" resource="#record" typeof="<?= $this->driver->getSchemaOrgFormats() ?> Product">
<?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?> <?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?>
<?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?> <?= $this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?>
<?php <?php
$QRCode = $this->record($this->driver)->getQRCode("core"); $QRCode = $this->record($this->driver)->getQRCode("core");
$coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('large')); $coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('large'));
...@@ -10,34 +10,36 @@ ...@@ -10,34 +10,36 @@
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<?php if ($QRCode || $cover || $preview): ?> <?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"> <div class="media-left <?= $this->escapeHtmlAttr($coverDetails['size']) ?> img-col">
<?php /* Display thumbnail if appropriate: */ ?> <?php /* Display thumbnail if appropriate: */ ?>
<?php if($cover): ?> <?php if ($cover): ?>
<?=$cover?> <object type="image/jpeg" data="<?=$coverDetails['link']?>">
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, false position - GG */ ?> <?= $this->record($this->driver)->getRecordIcon() ?>
</object>
<?php endif; ?> <?php endif; ?>
<?php /* Display qrcode if appropriate: */ ?> <?php /* Display qrcode if appropriate: */ ?>
<?php if($QRCode): ?> <?php if ($QRCode): ?>
<span class="hidden-xs"> <span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?= $this->transEsc('QR Code') ?>" class="qrcode" src="<?= $this->escapeHtmlAttr($QRCode); ?>"/>
</span> </span>
<?php endif; ?> <?php endif; ?>
<?php // 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 // from this area of the record view, this can be split into
// getPreviewData() (should stay here) and // getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?> // getPreviewLink() (can go in your desired tab)?>
<?php if ($preview): ?> <?php if ($preview): ?>
<div class="record-previews"> <div class="record-previews">
<?=$preview?> <?= $preview ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?>
<?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?> <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
<?=$this->record($this->driver)->getRecordIcon()?> <?php /* BOF - finc-specific StyleBasedIcons */ ?>
<?php /* EOF - finc-specific StyleBasedIcons */ ?> <div class="media-left <?= $this->escapeHtmlAttr($coverDetails['size']) ?> img-col">
<?= $this->record($this->driver)->getRecordIcon() ?>
</div>
<?php endif; ?> <?php endif; ?>
<div class="media-body"> <div class="media-body">
...@@ -46,25 +48,27 @@ ...@@ -46,25 +48,27 @@
*/ */
?> ?>
<?php /* finc: add schema tags for title #13850 - VE */ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1> <h1
property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<?php $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?> <?php $summary = $this->driver->getSummary();
$summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?> <?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p> <p><?= $this->truncate($summary, 300) ?></p>
<?php if(strlen($summary) > 300): ?> <?php if (strlen($summary) > 300): ?>
<p class="hidden-print"><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p> <p class="hidden-print"><a href='<?= $this->recordLink()->getTabUrl($this->driver, 'Description') ?>#tabnav'><?= $this->transEsc('Full description') ?></a></p>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?> <?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?> <?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists hidden alert alert-info"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?= $this->transEsc("Saved in") ?>:</strong>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php /* Display Main Details */?> <?php /* Display Main Details */ ?>
<?php <?php
$formatter = $this->recordDataFormatter(); $formatter = $this->recordDataFormatter();
$coreFields = $formatter->getData($driver, $formatter->getDefaults('core-ai')); $coreFields = $formatter->getData($driver, $formatter->getDefaults('core-ai'));
...@@ -72,17 +76,20 @@ ...@@ -72,17 +76,20 @@
<?php if (!empty($coreFields)): ?> <?php if (!empty($coreFields)): ?>
<?php /* include responsive data table - CK */ ?> <?php /* include responsive data table - CK */ ?>
<table class="table table-striped table-resp-data"> <table class="table table-striped table-resp-data">
<caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption> <caption class="sr-only"><?= $this->transEsc('Bibliographic Details') ?></caption>
<?php foreach ($coreFields as $current): ?> <?php foreach ($coreFields as $current): ?>
<?php if ($current['label'] == null): ?> <?php if ($current['label'] == null): ?>
<?=$current['value']?> <?= $current['value'] ?>
<?php else: ?> <?php else: ?>
<tr><th><?=$this->transEsc($current['label'])?>:</th><td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td></tr> <tr>
<th><?= $this->transEsc($current['label']) ?>:</th>
<td><?= $current['value'] ?></td>
</tr>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<?php endif; ?> <?php endif; ?>
<?php /* End Main Details */?> <?php /* End Main Details */ ?>
</div>
</div> </div>
</div>
<!-- recordDriver - solrAI - CORE - END --> <!-- recordDriver - solrAI - CORE - END -->
<!-- finc: RecordDriver - solrMarc - core --> <!-- finc: RecordDriver - solrMarc - core -->
<?php /* based on DefaultRecord/core, compare with DefaultRecord/core during updates! */ ?> <?php /* based on DefaultRecord/core, compare with DefaultRecord/core during updates! */ ?>
<div class="media" vocab="http://schema.org/" resource="#record" typeof="<?=$this->driver->getSchemaOrgFormats()?> Product"> <div class="media" vocab="http://schema.org/" resource="#record" typeof="<?= $this->driver->getSchemaOrgFormats() ?> Product">
<?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?> <?php /* finc: use VF5.1 offcanvas toggler here as well if you have a custom sidebar - CK */ ?>
<?=$this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?> <?= $this->render('RecordDriver/DefaultRecord/offcanvas-toggler'); ?>
<?php <?php
$QRCode = $this->record($this->driver)->getQRCode("core"); $QRCode = $this->record($this->driver)->getQRCode("core");
$coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('large')); $coverDetails = $this->record($this->driver)->getCoverDetails('core', 'medium', $this->record($this->driver)->getThumbnail('medium'));
$cover = $coverDetails['html']; $cover = $coverDetails['html'];
$preview = $this->record($this->driver)->getPreviews(); $preview = $this->record($this->driver)->getPreviews();
?> ?>
<?php if ($QRCode || $cover || $preview): ?> <?php if ($QRCode || $cover || $preview): ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"> <div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col">
<?php /* Display thumbnail if appropriate: */ ?> <?php /* Display thumbnail if appropriate: */ ?>
<?php if($cover): ?> <?php if ($cover): ?>
<?=$cover?> <object type="image/jpeg" data="<?=$coverDetails['link']?>">
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, false position - GG */ ?> <?= $this->record($this->driver)->getRecordIcon() ?>
</object>
<?php endif; ?> <?php endif; ?>
<?php /* Display qrcode if appropriate: */ ?> <?php /* Display qrcode if appropriate: */ ?>
<?php if($QRCode): ?> <?php if ($QRCode): ?>
<span class="hidden-xs"> <span class="hidden-xs">
<br/><img alt="<?=$this->transEsc('QR Code')?>" class="qrcode" src="<?=$this->escapeHtmlAttr($QRCode);?>"/> <br/><img alt="<?= $this->transEsc('QR Code') ?>" class="qrcode" src="<?= $this->escapeHtmlAttr($QRCode); ?>"/>
</span> </span>
<?php endif; ?> <?php endif; ?>
<?php // 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 // from this area of the record view, this can be split into
// getPreviewData() (should stay here) and // getPreviewData() (should stay here) and
// getPreviewLink() (can go in your desired tab) ?> // getPreviewLink() (can go in your desired tab)?>
<?php if ($preview): ?> <?php if ($preview): ?>
<div class="record-previews"> <div class="record-previews">
<?=$preview?> <?= $preview ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<?php /* if cover or qrcode or preview not set you can not finc-specific StyleBasedIcons, right position - GG */ ?> <?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
<?php elseif ($this->record($this->driver)->showStyleBasedIcons()): ?>
<?php /* BOF - finc-specific StyleBasedIcons */ ?> <?php /* BOF - finc-specific StyleBasedIcons */ ?>
<div class="media-left <?=$this->escapeHtmlAttr($coverDetails['size'])?> img-col"> <div class="media-left <?= $this->escapeHtmlAttr($coverDetails['size']) ?> img-col">
<?=$this->record($this->driver)->getRecordIcon()?> <?= $this->record($this->driver)->getRecordIcon() ?>
</div> </div>
<?php endif; ?> <?php endif; ?>
<div class="media-body"> <div class="media-body">
<?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars; <?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars;
...@@ -48,25 +48,27 @@ ...@@ -48,25 +48,27 @@
*/ */
?> ?>
<?php /* finc: add schema tags for title #13850 - VE */ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1> <h1
property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<?php $summary = $this->driver->getSummary(); $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?> <?php $summary = $this->driver->getSummary();
$summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
<?php if ($summary): ?> <?php if ($summary): ?>
<p><?=$this->truncate($summary, 300)?></p> <p><?= $this->truncate($summary, 300) ?></p>
<?php if(strlen($summary) > 300): ?> <?php if (strlen($summary) > 300): ?>
<p class="hidden-print"><a href='<?=$this->recordLink()->getTabUrl($this->driver, 'Description')?>#tabnav'><?=$this->transEsc('Full description')?></a></p> <p class="hidden-print"><a href='<?= $this->recordLink()->getTabUrl($this->driver, 'Description') ?>#tabnav'><?= $this->transEsc('Full description') ?></a></p>
<?php endif; ?> <?php endif; ?>
<?php endif; ?> <?php endif; ?>
<?php if ($this->userlist()->getMode() !== 'disabled'): ?> <?php if ($this->userlist()->getMode() !== 'disabled'): ?>
<?php /* Display the lists that this record is saved to */ ?> <?php /* Display the lists that this record is saved to */ ?>
<div class="savedLists hidden alert alert-info"> <div class="savedLists hidden alert alert-info">
<strong><?=$this->transEsc("Saved in")?>:</strong> <strong><?= $this->transEsc("Saved in") ?>:</strong>
</div> </div>
<?php endif; ?> <?php endif; ?>
<?php /* Display Main Details */?> <?php /* Display Main Details */ ?>
<?php <?php
$formatter = $this->recordDataFormatter(); $formatter = $this->recordDataFormatter();
$coreFields = $formatter->getData($driver, $formatter->getDefaults('core-marc')); $coreFields = $formatter->getData($driver, $formatter->getDefaults('core-marc'));
...@@ -74,20 +76,20 @@ ...@@ -74,20 +76,20 @@
<?php if (!empty($coreFields)): ?> <?php if (!empty($coreFields)): ?>
<?php /* include responsive data table - CK */ ?> <?php /* include responsive data table - CK */ ?>
<table class="table table-striped table-resp-data"> <table class="table table-striped table-resp-data">
<caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption> <caption class="sr-only"><?= $this->transEsc('Bibliographic Details') ?></caption>
<?php foreach ($coreFields as $current): ?> <?php foreach ($coreFields as $current): ?>
<?php if ($current['label'] == null): ?> <?php if ($current['label'] == null): ?>
<?=$current['value']?> <?= $current['value'] ?>
<?php else: ?> <?php else: ?>
<tr> <tr>
<th><?=$this->transEsc($current['label'])?>:</th> <th><?= $this->transEsc($current['label']) ?>:</th>
<td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td> <td data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
</tr> </tr>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
</table> </table>
<?php endif; ?> <?php endif; ?>
<?php /* End Main Details */?> <?php /* End Main Details */ ?>
</div>
</div> </div>
</div>
<!-- finc: RecordDriver - solrMarc - core - END --> <!-- finc: RecordDriver - solrMarc - core - END -->
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment