Skip to content

Commit

Permalink
Strip html from title
Browse files Browse the repository at this point in the history
  • Loading branch information
maccabeelevine committed Oct 9, 2024
1 parent ec2dc6c commit 4a0b7b5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions module/VuFind/src/VuFind/RecordDriver/ProQuestFSG.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class ProQuestFSG extends DefaultRecord
use MarcReaderTrait, MarcAdvancedTrait, MarcBasicTrait {
MarcBasicTrait::getNewerTitles insteadof MarcAdvancedTrait;
MarcBasicTrait::getPreviousTitles insteadof MarcAdvancedTrait;
MarcBasicTrait::getShortTitle as marcGetShortTitle;
}

/**
Expand All @@ -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());
}
}

0 comments on commit 4a0b7b5

Please sign in to comment.