From b9b02475320c722311291646349e2271d516f871 Mon Sep 17 00:00:00 2001 From: Ere Maijala <ere.maijala@helsinki.fi> Date: Tue, 30 May 2017 15:06:10 +0300 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20override=20a=20title=20that=20t?= =?UTF-8?q?he=20ILS=20driver=20might=20have=20returned.=20(#977)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/VuFind/src/VuFind/Controller/MyResearchController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/VuFind/src/VuFind/Controller/MyResearchController.php b/module/VuFind/src/VuFind/Controller/MyResearchController.php index 4ea33b475fd..e55310344d5 100644 --- a/module/VuFind/src/VuFind/Controller/MyResearchController.php +++ b/module/VuFind/src/VuFind/Controller/MyResearchController.php @@ -1230,7 +1230,9 @@ class MyResearchController extends AbstractBase ? $row['source'] : DEFAULT_SEARCH_BACKEND; $row['driver'] = $this->serviceLocator ->get('VuFind\RecordLoader')->load($row['id'], $source); - $row['title'] = $row['driver']->getShortTitle(); + if (empty($row['title'])) { + $row['title'] = $row['driver']->getShortTitle(); + } } catch (\Exception $e) { if (!isset($row['title'])) { $row['title'] = null; -- GitLab