From d8e9e79ac90869b7160215b43c30c449f0309f99 Mon Sep 17 00:00:00 2001
From: Dorian Merz <merz@ub.uni-leipzig.de>
Date: Thu, 27 Jun 2019 11:27:48 +0200
Subject: [PATCH] set title truncation to 170 instead of 100

---
 themes/fid_bbi/templates/RecordDriver/DefaultRecord/core.phtml | 2 +-
 themes/fid_bbi/templates/RecordDriver/SolrMarc/core.phtml      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/core.phtml b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/core.phtml
index e46f7304eaf..9a182819f4b 100644
--- a/themes/fid_bbi/templates/RecordDriver/DefaultRecord/core.phtml
+++ b/themes/fid_bbi/templates/RecordDriver/DefaultRecord/core.phtml
@@ -44,7 +44,7 @@
        */
       ?>
       <?php /* finc: add schema tags for title #13850 - VE */ ?>
-    <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3>
+    <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 170)))?></h3>
 
       <?/* fid_bbi: #15189 remove summary - GG */ ?>
 
diff --git a/themes/fid_bbi/templates/RecordDriver/SolrMarc/core.phtml b/themes/fid_bbi/templates/RecordDriver/SolrMarc/core.phtml
index 35f39832b23..192cea552c6 100644
--- a/themes/fid_bbi/templates/RecordDriver/SolrMarc/core.phtml
+++ b/themes/fid_bbi/templates/RecordDriver/SolrMarc/core.phtml
@@ -44,7 +44,7 @@
        */
       ?>
       <?php /* finc: add schema tags for title #13850 - VE */ ?>
-    <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h3>
+    <h3 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 170)))?></h3>
 
       <?/* fid_bbi: #15189 remove summary - GG */ ?>
 
-- 
GitLab