Action
create_doi(context, data_dict)
ΒΆ
Creates a DOI using the given parameters and returns it.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
email_address
|
string
|
the email address of the DOI requester |
required |
query
|
dict
|
the query to associate with the DOI |
required |
query_version
|
string
|
the query schema version for the query |
required |
version
|
int, number of milliseconds (not seconds!) since UNIX epoch
|
the version to search the data at |
required |
resource_ids
|
list of strings
|
the resource ids to search |
required |
doi
|
string
|
the doi that was created (prefix/suffix) |
required |
is_new
|
bool
|
whether the doi was newly created or whether an existing DOI for the query parameters already existed |
required |
email_sent
|
bool
|
whether the email was sent successfully or not |
required |
Source code in ckanext/query_dois/logic/action.py
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 | |