forked from edtechhub/zotzen-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabc
More file actions
44 lines (44 loc) · 2.39 KB
/
abc
File metadata and controls
44 lines (44 loc) · 2.39 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
const parser_create = subparsers.add_parser("create", { "help": "The create command creates new records based on the json files provided, optionally providing a title / date / description / files." });
parser_create.add_argument("--json", {
"action": "store",
"help": "Path of the JSON file with the metadata for the zenodo record to be created. If this file is not provided, a template is used. The following options override settings from the JSON file / template."
});
parser_create.add_argument("--title", {
"action": "store",
"help": "The title of the record. Overrides data provided via --json."
});
parser_create.add_argument("--date", {
"action": "store",
"help": "The date of the record. Overrides data provided via --json."
});
parser_create.add_argument("--description", {
"action": "store",
"help": "The description (abstract) of the record. Overrides data provided via --json."
});
parser_create.add_argument("--communities", {
"action": "store",
"help": "Read list of communities for the record from a file. Overrides data provided via --json."
});
parser_create.add_argument("--add-communities", {
"nargs": "*",
"action": "store",
"help": "List of communities to be added to the record (provided on the command line, one by one). Overrides data provided via --json."
});
parser_create.add_argument("--remove-communities", {
"nargs": "*",
"action": "store",
"help": "List of communities to be removed from the record (provided on the command line, one by one). Overrides data provided via --json."
});
parser_create.add_argument("--authors", {
"nargs": "*",
"action": "store",
"help": "List of authors, (provided on the command line, one by one). Separate institution and ORCID with semicolon, e.g. 'Lama Yunis;University of XYZ;0000-1234-...'. (You can also use --authordata.) Overrides data provided via --json."
});
parser_create.add_argument("--authordata", {
"action": "store",
"help": "A text file with a database of authors. Each line has author, institution, ORCID (tab-separated). The data is used to supplement insitution/ORCID to author names specified with --authors. Note that authors are only added to the record when specified with --authors, not because they appear in the specified authordate file. "
});
parser_create.add_argument("--zotero-link", {
"action": "store",
"help": "Zotero link of the zotero record to be linked. Overrides data provided via --json."
});