Skip to content

Commit 36739d9

Browse files
committed
Pass extra parameters for AtoM DO creation
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.
1 parent 2e316f5 commit 36739d9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

agentarchives/atom/client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -635,6 +635,8 @@ def add_digital_object(
635635
aip_uuid=None,
636636
inherit_dates=False,
637637
usage=None,
638+
aip_name=None,
639+
relative_path_within_aip=None,
638640
):
639641
""" Creates a new digital object. """
640642

@@ -659,6 +661,10 @@ def add_digital_object(
659661
new_object["file_uuid"] = file_uuid
660662
if aip_uuid is not None:
661663
new_object["aip_uuid"] = aip_uuid
664+
if aip_name is not None:
665+
new_object["aip_name"] = aip_name
666+
if relative_path_within_aip is not None:
667+
new_object["relative_path_within_aip"] = relative_path_within_aip
662668

663669
if format_name is not None:
664670
new_object["format_name"] = format_name

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
author="Artefactual Systems",
88
author_email="[email protected]",
99
license="AGPL 3",
10-
version="0.6.0",
10+
version="0.7.0",
1111
packages=[
1212
"agentarchives",
1313
"agentarchives.archivesspace",

0 commit comments

Comments
 (0)