diff --git a/module/TAMU/src/TAMU/View/Helper/Root/RecordDataFormatterFactory.php b/module/TAMU/src/TAMU/View/Helper/Root/RecordDataFormatterFactory.php index 4db70020844..18659a057af 100644 --- a/module/TAMU/src/TAMU/View/Helper/Root/RecordDataFormatterFactory.php +++ b/module/TAMU/src/TAMU/View/Helper/Root/RecordDataFormatterFactory.php @@ -68,6 +68,10 @@ public function getDefaultCoreSpecs() null, ['recordLink' => 'title'] ); + $spec->setLine( + 'Uniform Title', + 'getUniformTitle' + ); $spec->setMultiLine( 'Authors', 'getDeduplicatedAuthors', diff --git a/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php b/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php index 5a68db1393c..d7ad6fecd6c 100644 --- a/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php +++ b/module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php @@ -652,6 +652,14 @@ public function getLanguages() return (array)($this->fields['language'] ?? []); } + /** + * Get the uniform title from the 130a field + */ + public function getUniformTitle() + { + return $this->fields['uniform_title_str_mv'] ?? []; + } + /** * Get a raw, unnormalized LCCN. (See getLCCN for normalization). * diff --git a/themes/TAMU/theme.config.php b/themes/TAMU/theme.config.php index a1c271fb989..3cac34b8eff 100644 --- a/themes/TAMU/theme.config.php +++ b/themes/TAMU/theme.config.php @@ -4,7 +4,8 @@ 'favicon' => 'favicon.ico', 'helpers' => [ 'factories' => [ - 'TAMU\View\Helper\Root\Record' => 'VuFind\View\Helper\Root\RecordFactory' + 'TAMU\View\Helper\Root\Record' => 'VuFind\View\Helper\Root\RecordFactory', + 'VuFind\View\Helper\Root\RecordDataFormatter' => 'TAMU\View\Helper\Root\RecordDataFormatterFactory', ], 'aliases' => [ 'record' => 'TAMU\View\Helper\Root\Record'