diff --git a/themes/finc/templates/RecordDriver/SolrAI/data-jTitle.phtml b/themes/finc/templates/RecordDriver/SolrAI/data-jTitle.phtml new file mode 100644 index 0000000000000000000000000000000000000000..3d22ec4d5be98a477657be64e84d2a39267f2184 --- /dev/null +++ b/themes/finc/templates/RecordDriver/SolrAI/data-jTitle.phtml @@ -0,0 +1,35 @@ +<!-- 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 -->