Skip to content

Commit

Permalink
fix: Fixed handling of metadata only records
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Nov 13, 2024
1 parent b263493 commit 6a8e6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_record_importer_kcworks/services/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, is_draft: bool):
@unit_of_work()
def set_to_metadata_only(
self, draft_id: str, uow: Optional[UnitOfWork] = None
)existing record: {'metadata': {'identifiers': [[{'identifier': 'hc:10053', 'scheme': 'hclegacy-pid'}, {'identifier': '1000361-170', 'scheme': 'hclegacy-record-id'}, {'identifier': '10.17613/M6BP51', 'scheme': 'datacite-doi'}, {'identifier': 'https://doi.org/10.17613/M6BP51', 'scheme': 'url'}]]}}; new record: {'metadata': {'identifiers': [[{'identifier': 'hc:10053', 'scheme': 'hclegacy-pid'}, {'identifier': '1000361-170', 'scheme': 'hclegacy-record-id'}]]}}:
):
try:
record = records_service.read(system_identity, draft_id)._record
except PIDUnregistered:
Expand Down

0 comments on commit 6a8e6c7

Please sign in to comment.