-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdspaceuploader.py
More file actions
32 lines (29 loc) · 890 Bytes
/
dspaceuploader.py
File metadata and controls
32 lines (29 loc) · 890 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env python3
"""
Retrieve and disseminate files and metadata to a DSpace repository
"""
from swordv2uploader import SwordV2Uploader, MetadataProfile
class DSpaceUploader(SwordV2Uploader):
# Currently DSpace dissemination is only implemented via SWORDv2
# This class will be extended once we implement e.g. DSpace REST API
def __init__(
self,
work_id,
export_url,
client_url,
version,
user_name_string,
user_pass_string,
service_document_iri,
collection_iri,
metadata_profile):
super().__init__(
work_id,
export_url,
client_url,
version,
user_name_string,
user_pass_string,
service_document_iri,
collection_iri,
metadata_profile)