Skip to content

Commit

Permalink
Pass extra parameters for AtoM DO creation
Browse files Browse the repository at this point in the history
This sends the AIP name and relative path of the file that are needed
by AtoM's extract file action for metadata-only DIP uploads from
Archivematica.
  • Loading branch information
replaceafill committed Jan 8, 2021
1 parent 2e316f5 commit 36739d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions agentarchives/atom/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ def add_digital_object(
aip_uuid=None,
inherit_dates=False,
usage=None,
aip_name=None,
relative_path_within_aip=None,
):
""" Creates a new digital object. """

Expand All @@ -659,6 +661,10 @@ def add_digital_object(
new_object["file_uuid"] = file_uuid
if aip_uuid is not None:
new_object["aip_uuid"] = aip_uuid
if aip_name is not None:
new_object["aip_name"] = aip_name
if relative_path_within_aip is not None:
new_object["relative_path_within_aip"] = relative_path_within_aip

if format_name is not None:
new_object["format_name"] = format_name
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
author="Artefactual Systems",
author_email="[email protected]",
license="AGPL 3",
version="0.6.0",
version="0.7.0",
packages=[
"agentarchives",
"agentarchives.archivesspace",
Expand Down

0 comments on commit 36739d9

Please sign in to comment.