Skip to content

Commit

Permalink
Add Uniform Title Field
Browse files Browse the repository at this point in the history
These changes add a field for "Uniform Title" to record pages when MARC field 130a is present.
  • Loading branch information
RickyLeeII committed May 13, 2024
1 parent bbdf8e9 commit 993a959
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public function getDefaultCoreSpecs()
null,
['recordLink' => 'title']
);
$spec->setLine(
'Uniform Title',
'getUniformTitle'
);
$spec->setMultiLine(
'Authors',
'getDeduplicatedAuthors',
Expand Down
8 changes: 8 additions & 0 deletions module/VuFind/src/VuFind/RecordDriver/DefaultRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -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).
*
Expand Down
3 changes: 2 additions & 1 deletion themes/TAMU/theme.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 993a959

Please sign in to comment.