Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Plugin/OaiMetadataMap/DgiStandard.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class DgiStandard extends OaiMetadataMapBase implements ContainerFactoryPluginIn
'field_resource_type' => 'dcterms:type',
'field_table_of_contents' => 'dcterms:description',
'field_description' => 'dcterms:description',
'field_abstract' => 'dcterms:description',
'field_language' => 'dc:language',
'field_target_audience' => 'dcterms:educationLevel',
'field_local_identifier' => 'dcterms:identifier',
Expand Down Expand Up @@ -116,11 +117,13 @@ class DgiStandard extends OaiMetadataMapBase implements ContainerFactoryPluginIn
'relators:cmp' => 'dcterms:creator',
'relators:cnd' => 'dcterms:contributor',
'relators:ctb' => 'dcterms:contributor',
'relators:cur' => 'dcterms:contributor',
'relators:crp' => 'dcterms:contributor',
'relators:cre' => 'dcterms:creator',
'relators:dpc' => 'dcterms:contributor',
'relators:drt' => 'dcterms:contributor',
'relators:edt' => 'dcterms:contributor',
'relators:hst' => 'dcterms:contributor',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🌐 Web query:

MARC Code List for Relators hst host

💡 Result:

In the MARC Code List for Relators, the code hst corresponds to the term host [1][2]. A host is defined as a performer who contributes to a resource by leading a program (often broadcast) that includes other guests, performers, etc., such as a talk show host [2]. The Library of Congress maintains this list, and the codes and terms are used to designate the relationship between an agent and a resource in bibliographic records [3][4]. These codes can also be accessed via the Library of Congress Linked Data Service at id.loc.gov/vocabulary/relators [3][4].

Citations:


🏁 Script executed:

#!/bin/bash
# Description: Search for references to the 'hst' relator code in the codebase.

# Search for 'hst' relator usage in field configurations, migrations, or data
rg -i "relators?:hst\b|relator.*\bhst\b|'hst'|\"hst\"" -g '!*.php' -C2

Repository: discoverygarden/dgi_standard_oai

Length of output: 58


Update commit message to include 'hst' relator mapping.

The commit message mentions adding only 'cur' and 'ths' relator mappings, but the code also adds 'hst' (host, a performer who leads a program). Update the commit message to accurately reflect all three additions.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/Plugin/OaiMetadataMap/DgiStandard.php` at line 126, The commit message
must be updated to accurately reflect that three relator mappings were added
(not just 'cur' and 'ths'); update the commit summary/body to mention that
'relators:cur', 'relators:ths' and 'relators:hst' (host) were added, referencing
the change in DgiStandard.php where the mapping 'relators:hst' =>
'dcterms:contributor' was introduced so the commit message matches the code
changes.

'relators:ive' => 'dcterms:creator',
'relators:ivr' => 'dcterms:contributor',
'relators:prf' => 'dcterms:contributor',
Expand All @@ -130,6 +133,7 @@ class DgiStandard extends OaiMetadataMapBase implements ContainerFactoryPluginIn
'relators:sgn' => 'dcterms:contributor',
'relators:spk' => 'dcterms:contributor',
'relators:spn' => 'dcterms:contributor',
'relators:ths' => 'dcterms:contributor',
'relators:vdg' => 'dcterms:contributor',
];

Expand Down