Skip to content
Snippets Groups Projects
Commit 23a9c470 authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #17594 [fid_bbi] separate imprint from publicationDetails for Solr Default Core

* remove special treatment for strings in bbi data-publicationDetails
* use imprint instead of publicationDetails with new finc data-imprint.phtml
parent 4723d15f
Branches
Tags
No related merge requests found
...@@ -292,8 +292,8 @@ class RecordDataFormatterFactory extends \fid\View\Helper\Root\RecordDataFormatt ...@@ -292,8 +292,8 @@ class RecordDataFormatterFactory extends \fid\View\Helper\Root\RecordDataFormatt
); );
$spec->setTemplateLine( $spec->setTemplateLine(
'Published', 'Published',
'getPublicationDetails', 'getImprint',
'data-publicationDetails.phtml' 'data-imprint.phtml'
); );
$spec->setTemplateLine( $spec->setTemplateLine(
'Set Multipart', 'Set Multipart',
......
<!-- fid_bbi: RecordDriver - DefaultRecord - data-publicationDetails --> <!-- fid_bbi: RecordDriver - DefaultRecord - data-publicationDetails -->
<? if (!empty($data)): ?>
<div itemscope itemtype="http://schema.org/publisher"> <div itemscope itemtype="http://schema.org/publisher">
<? foreach ((array)$data as $field): ?> <? foreach ((array)$data as $field): ?>
<?php if(is_string($data)): ?>
<?=$this->escapeHtml($data)?>
<?php else: ?>
<span property="publisher" typeof="Organization"> <span property="publisher" typeof="Organization">
<? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?> <? $pubPlace = $field->getPlace(); if (!empty($pubPlace)): ?>
<span property="location" typeof="Place"> <span property="location" typeof="Place">
...@@ -22,9 +18,7 @@ ...@@ -22,9 +18,7 @@
--><?=!empty($pubPlace) || !empty($pubName) ? ', ' :''?><?=$this->escapeHtml($pubDate)?> --><?=!empty($pubPlace) || !empty($pubName) ? ', ' :''?><?=$this->escapeHtml($pubDate)?>
<? /*else: ?> <? /*else: ?>
<?=$this->escapeHtml($pubDateSort)*/?></span> <?=$this->escapeHtml($pubDateSort)*/?></span>
<? endif; ?>
</span><?php endif; ?><br/> </span><?php endif; ?><br/>
<? endforeach; ?> <? endforeach; ?>
</div> </div>
<? endif ?>
<!-- fid_bbi: RecordDriver - DefaultRecord - data-publicationDetails - END --> <!-- fid_bbi: RecordDriver - DefaultRecord - data-publicationDetails - 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