-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspec.json
13 lines (13 loc) · 1.11 KB
/
spec.json
1
2
3
4
5
6
7
8
9
10
11
12
13
{
"publisher": "name of the publisher [string]",
"crossref_member": "Crossref member number, to more easily come from and go to Crossref data [integer]",
"prefixes": "DOI prefixes, to be able to match against DOIs [array]",
"urls": "url patterns, use if one pattern for all journals, or if only one journal, if this is used, journals must be null [hash]",
"components": "optional set of components (if journals null) with slots 'html' and 'doi', giving in order bits to go into the url - if the html slot is not null, get html via https://doi.org/{doi}, then extract as specified with xpath",
"cookies": "whether its required to deal with cookies when downloading or not [boolean]",
"regex": "regex pattern to extract part of DOI if needed to construct a URL [string]",
"open_access": "true, false, some [string]",
"journals": "0 or more for each journal within a publisher, with each having keys 'urls', 'regex', 'open_access' [array]",
"notes": "any notes [string]",
"journals": "with keys journal, issn, open_access, urls, and components, where urls are one or more of xml, pdf, html, or other [array of hashes]"
}