Skip to content
Snippets Groups Projects
Commit 2a8dafba authored by Gregor Gawol's avatar Gregor Gawol Committed by Dorian Merz
Browse files

refs #17930 [master] missing solrai template data-jTitle.phtml

* added template
parent dc283573
No related merge requests found
<!-- finc: RecordDriver - SolrAI - data-jTitle -->
<?php $jtitle = []; ?>
<?php if (!(empty($data))): ?>
<?php $issns = $this->driver->tryMethod('getISSNs'); ?>
<?php ob_start(); ?>
<?php if (!empty($issns)): ?>
<a href="<?=$this->record($this->driver)->getLink('isn', $issns)?>">
<?=$this->escapeHtml($data)?>
</a>
<?php else: ?>
<?=$this->escapeHtml($data)?>
<?php endif; ?>
<?php
$jtitle[] = trim(preg_replace('/\s+<\//', '</', ob_get_contents()));
ob_end_clean();
?>
<?php endif; ?>
<?php
// please note: direction of iteration will be displayed
$methods = ['getVolume', 'getPublishDateSort', 'getIssues', 'getPages'];
foreach ($methods as $method) {
if (!(empty($retval = $this->driver->tryMethod($method)))) {
$jtitle[] = ($method == 'getPages')
? $this->transEsc('p.') . ' ' . $this->escapeHtml($retval)
: $this->escapeHtml($retval);
}
}
?>
<?php /* finc: add schema tags for parent publication #13850 - VE */ ?>
<span property="isPartOf" typeof="Periodical" resource="#periodical">
<span property="name">
<?=implode(', ', $jtitle)?>
</span>
</span>
<!-- finc: RecordDriver - SolrAi - data-jTitle - 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