Skip to content

Commit

Permalink
EAD3: Adjust handling of authors, corporate authors and secondary aut…
Browse files Browse the repository at this point in the history
…hors in SkosmosEnrichment (#150)
  • Loading branch information
mshroom authored Nov 16, 2023
1 parent f36f295 commit 34e51ef
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/RecordManager/Base/Enrichment/Ead3SkosmosEnrichment.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,16 @@ class Ead3SkosmosEnrichment extends SkosmosEnrichment
'check' => 'geographic',
],
'getCorporateAuthorIds' => [
'pref' => '',
'pref' => 'author_corporate',
'alt' => 'author_variant',
'check' => 'author',
'check' => 'author_corporate',
],
'getAuthorIds' => [
'pref' => 'author',
'alt' => 'author_variant',
'check' => 'author',
],
'getSecondaryAuthorIds' => [
'pref' => 'author2',
'alt' => 'author2_variant',
'check' => 'author2',
Expand Down
10 changes: 10 additions & 0 deletions src/RecordManager/Base/Record/Ead3.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,16 @@ public function getAuthorIds(): array
return [];
}

/**
* Get secondary author identifiers
*
* @return array<int, string>
*/
public function getSecondaryAuthorIds(): array
{
return [];
}

/**
* Get corporate author identifiers
*
Expand Down

0 comments on commit 34e51ef

Please sign in to comment.