Fix affiliation field name in Person class
All checks were successful
Test pipeline / test (push) Successful in 13s
All checks were successful
Test pipeline / test (push) Successful in 13s
This commit is contained in:
parent
554951265e
commit
77930649b1
1 changed files with 4 additions and 4 deletions
|
@ -279,7 +279,7 @@ class CompoundMetadataField(
|
||||||
class Institution:
|
class Institution:
|
||||||
"""
|
"""
|
||||||
Represents an institution or organization.
|
Represents an institution or organization.
|
||||||
|
|
||||||
Attributes:
|
Attributes:
|
||||||
display_name (str): The name of the institution.
|
display_name (str): The name of the institution.
|
||||||
ror (str): Research Organization Registry identifier (optional).
|
ror (str): Research Organization Registry identifier (optional).
|
||||||
|
@ -290,7 +290,7 @@ class Institution:
|
||||||
def affiliation_field(self) -> PrimitiveMetadataField:
|
def affiliation_field(self) -> PrimitiveMetadataField:
|
||||||
"""
|
"""
|
||||||
Create a metadata field for the affiliation.
|
Create a metadata field for the affiliation.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
PrimitiveMetadataField: A metadata field representing the institution,
|
PrimitiveMetadataField: A metadata field representing the institution,
|
||||||
using ROR ID when available.
|
using ROR ID when available.
|
||||||
|
@ -411,7 +411,7 @@ class Person:
|
||||||
if isinstance(self.affiliation, Institution):
|
if isinstance(self.affiliation, Institution):
|
||||||
affiliation_field = self.affiliation.affiliation_field()
|
affiliation_field = self.affiliation.affiliation_field()
|
||||||
else:
|
else:
|
||||||
affiliation_field = PrimitiveMetadataField("authorAffiliation", False, self.affiliation)
|
affiliation_field = PrimitiveMetadataField("datasetContactAffiliation", False, self.affiliation)
|
||||||
|
|
||||||
return [
|
return [
|
||||||
PrimitiveMetadataField("datasetContactName", False, self.format_name()),
|
PrimitiveMetadataField("datasetContactName", False, self.format_name()),
|
||||||
|
@ -449,7 +449,7 @@ class Abstract:
|
||||||
def __post_init__(self):
|
def __post_init__(self):
|
||||||
"""
|
"""
|
||||||
Validate that the abstract source is one of the allowed values.
|
Validate that the abstract source is one of the allowed values.
|
||||||
|
|
||||||
Raises:
|
Raises:
|
||||||
ValueError: If source is not one of the allowed values.
|
ValueError: If source is not one of the allowed values.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue