From 4a0b7b594ce49dd1dd105f2392de4da026a2fd76 Mon Sep 17 00:00:00 2001 From: Maccabee Levine Date: Wed, 9 Oct 2024 13:49:12 +0000 Subject: [PATCH] Strip html from title --- module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php b/module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php index 0ae74e4536c..00314ceda5e 100644 --- a/module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php +++ b/module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php @@ -49,6 +49,7 @@ class ProQuestFSG extends DefaultRecord use MarcReaderTrait, MarcAdvancedTrait, MarcBasicTrait { MarcBasicTrait::getNewerTitles insteadof MarcAdvancedTrait; MarcBasicTrait::getPreviousTitles insteadof MarcAdvancedTrait; + MarcBasicTrait::getShortTitle as marcGetShortTitle; } /** @@ -72,4 +73,14 @@ public function setRawData($data) // record driver can understand. parent::setRawData(['fullrecord' => $data]); } + + /** + * Get the short (pre-subtitle) title of the record. + * + * @return string + */ + public function getShortTitle() + { + return strip_tags($this->marcGetShortTitle()); + } }