The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 928965f4 authored by Claas Kazzer's avatar Claas Kazzer 💬 Committed by Frank Morgner
Browse files

refs #13567

* improves schema.org tagging on author and place of publication at data-publicationDetails.phtml
parent b45fc3c9
No related merge requests found
...@@ -22,10 +22,12 @@ $types = [ ...@@ -22,10 +22,12 @@ $types = [
<? if (!empty($data[$type])): ?> <? if (!empty($data[$type])): ?>
<? foreach ($data[$type] as $author => $roles): ?> <? foreach ($data[$type] as $author => $roles): ?>
<? ob_start(); ?> <? ob_start(); ?>
<span class="author-data" property="<?=$this->escapeHtml($schemaLabel)?>"> <span class="author-data" property="<?=$this->escapeHtml($schemaLabel)?>" typeof="Person">
<span property="name">
<a href="<?=$this->record($this->driver)->getLink('author', $author)?>"> <a href="<?=$this->record($this->driver)->getLink('author', $author)?>">
<?=$this->escapeHtml($author)?> <?=$this->escapeHtml($author)?>
</a> </a>
</span>
<? <?
// Display additional data using the appropriate translation prefix // Display additional data using the appropriate translation prefix
// (for example, to render author roles correctly): // (for example, to render author roles correctly):
......
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
<? foreach ($data as $field): ?> <? foreach ($data as $field): ?>
<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"><?=$this->escapeHtml($pubPlace)?></span> <span property="location" typeof="Place">
<span property="name"><?=$this->escapeHtml($pubPlace)?></span>
</span>
<? endif; ?> <? endif; ?>
<? $pubName = $field->getName(); if (!empty($pubName)): ?> <? $pubName = $field->getName(); if (!empty($pubName)): ?>
<span property="name"><?=$this->escapeHtml($pubName)?></span> <span property="name"><?=$this->escapeHtml($pubName)?></span>
......
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