diff --git a/accept.py b/accept.py new file mode 100644 index 0000000..cd77600 --- /dev/null +++ b/accept.py @@ -0,0 +1,20 @@ +import argparse, os +from caltechdata_api import caltechdata_accept + +parser = argparse.ArgumentParser( + description="Accept records to a community in the CaltechDATA repository" +) +parser.add_argument("ids", nargs="*", help="CaltechDATA IDs") +args = parser.parse_args() + +# Get access token set as environment variable with source token.bash +token = os.environ["RDMTOK"] + +production = True + +caltechdata_accept( + args.ids, + token, + production, +) +print('Completed') diff --git a/caltechdata_api/vocabularies/identifier_types.yaml b/caltechdata_api/vocabularies/identifier_types.yaml index b394e9c..654c56e 100644 --- a/caltechdata_api/vocabularies/identifier_types.yaml +++ b/caltechdata_api/vocabularies/identifier_types.yaml @@ -98,3 +98,8 @@ datacite: cdid title: en: CALTECHDATA_ID +- id: tiltid + props: + datacite: tiltid + title: + en: TILT_SERIES_ID