Skip to content

Commit

Permalink
Update mapping.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Alzpeta authored Jan 9, 2025
1 parent d07f5d1 commit a297266
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions common/doi/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def metadata_check(self, data):
errors[
f"metadata.creators[{i}].authorityIdentifiers[{j}].scheme"
] = [missing_data_message]
if "publishers" not in data:
errors["metadata.publishers"] = [missing_data_message]
if "contributors" in data:
for i, contributor in enumerate(data["contributors"]):
if "fullName" not in contributor:
Expand Down Expand Up @@ -63,10 +65,7 @@ def create_datacite_payload(self, data):
metadata = data["metadata"]
creators = creatibutor(metadata, "creators")
titles = title(metadata)
# publishers = publisher(data)

# todo: what is the correct value here? if it should be from the record data - check also needs to be added since publisher field is mandatory in DC
publishers = "NTK"
publishers = publisher(metadata)

dc_resource_type = resource_type(metadata)

Expand Down

0 comments on commit a297266

Please sign in to comment.