Skip to content
Snippets Groups Projects
Commit fb627225 authored by Dorian Merz's avatar Dorian Merz Committed by André Lahmann
Browse files

refs #20308 [finc] use getTitleHtml for record title display in detail view

* streamlines with result list title
parent 9f091f67
Branches
Tags
No related merge requests found
......@@ -46,7 +46,7 @@
*/
?>
<?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<h1 property="name" lang=""><?=$this->record($this->driver)->getTitleHtml()?></h1>
<?php /* #18307 remove summary from core */ ?>
......
......@@ -46,7 +46,7 @@
*/
?>
<?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<h1 property="name" lang=""><?=$this->record($this->driver)->getTitleHtml()?></h1>
<?php /* #18307 remove summary from core */ ?>
......
......@@ -63,7 +63,7 @@
<?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars;
in finc: keep schema name tag here!! #13861 CK
*/ ?>
<h1 property="name" lang=""><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1>
<h1 property="name" lang=""><?=$this->record($this->driver)->getTitleHtml()?></h1>
<?php $summary = $this->driver->getSummary();
$summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
......
......@@ -46,7 +46,7 @@
*/
?>
<?php /* finc: add schema tags for title #13850 - VE */ ?>
<h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
<h1 property="name" lang=""><?=$this->record($this->driver)->getTitleHtml()?></h1>
<?php /* #18307 remove summary from core */ ?>
......
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