From c9c91fef088036a10eb002546fd8331640357306 Mon Sep 17 00:00:00 2001 From: Dorian Merz <merz@ub.uni-leipzig.de> Date: Thu, 19 Aug 2021 15:47:14 +0200 Subject: [PATCH] refs #20308 [de_d117] use getTitleHtml for record title display in detail view --- themes/de_d117/templates/RecordDriver/DefaultRecord/core.phtml | 2 +- themes/de_d117/templates/RecordDriver/SolrAI/core.phtml | 2 +- themes/de_d117/templates/RecordDriver/SolrLido/core.phtml | 2 +- themes/de_d117/templates/RecordDriver/SolrMarc/core.phtml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/de_d117/templates/RecordDriver/DefaultRecord/core.phtml b/themes/de_d117/templates/RecordDriver/DefaultRecord/core.phtml index 5e477a3e121..f7a78e0df52 100644 --- a/themes/de_d117/templates/RecordDriver/DefaultRecord/core.phtml +++ b/themes/de_d117/templates/RecordDriver/DefaultRecord/core.phtml @@ -49,7 +49,7 @@ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?> <h1 - property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())) ?></h1> + property="name"><?= $this->record($this->driver)->getTitleHtml() ?></h1> <?php /* #18213: Remove Summary/Description - RL */ ?> diff --git a/themes/de_d117/templates/RecordDriver/SolrAI/core.phtml b/themes/de_d117/templates/RecordDriver/SolrAI/core.phtml index e935e811921..f559163c607 100644 --- a/themes/de_d117/templates/RecordDriver/SolrAI/core.phtml +++ b/themes/de_d117/templates/RecordDriver/SolrAI/core.phtml @@ -49,7 +49,7 @@ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?> <h1 - property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())) ?></h1> + property="name"><?= $this->record($this->driver)->getTitleHtml() ?></h1> <?php /* #18213: Remove Summary/Description - RL */ ?> diff --git a/themes/de_d117/templates/RecordDriver/SolrLido/core.phtml b/themes/de_d117/templates/RecordDriver/SolrLido/core.phtml index 93f13b610c0..c11403d8f16 100644 --- a/themes/de_d117/templates/RecordDriver/SolrLido/core.phtml +++ b/themes/de_d117/templates/RecordDriver/SolrLido/core.phtml @@ -65,7 +65,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"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection()))?></h1> + <h1 property="name"><?= $this->record($this->driver)->getTitleHtml() ?></h1> <?php /* #18213: Remove Summary/Description - RL */ ?> diff --git a/themes/de_d117/templates/RecordDriver/SolrMarc/core.phtml b/themes/de_d117/templates/RecordDriver/SolrMarc/core.phtml index c97cc274aff..d57994ac64d 100644 --- a/themes/de_d117/templates/RecordDriver/SolrMarc/core.phtml +++ b/themes/de_d117/templates/RecordDriver/SolrMarc/core.phtml @@ -49,7 +49,7 @@ ?> <?php /* finc: add schema tags for title #13850 - VE */ ?> <h1 - property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection())) ?></h1> + property="name"><?= $this->record($this->driver)->getTitleHtml() ?></h1> <?php /* #18213: Remove Summary/Description - RL */ ?> -- GitLab