commonmeta-py 0.61__tar.gz → 0.62__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {commonmeta_py-0.61 → commonmeta_py-0.62}/PKG-INFO +1 -1
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/__init__.py +1 -1
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/csl_writer.py +8 -6
- {commonmeta_py-0.61 → commonmeta_py-0.62}/pyproject.toml +1 -1
- {commonmeta_py-0.61 → commonmeta_py-0.62}/LICENSE +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/README.md +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/api_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/author_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/base_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/cli.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/constants.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/crossref_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/date_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/doi_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/metadata.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/__init__.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/bibtex_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/cff_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/codemeta_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/commonmeta_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/crossref_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/crossref_xml_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/csl_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/datacite_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/datacite_xml_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/inveniordm_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/json_feed_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/kbase_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/ris_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/readers/schema_org_reader.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/cff_v1.2.0.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/commonmeta_v0.12.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/commonmeta_v0.13.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/commonmeta_v0.14.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/commonmeta_v0.15.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/AccessIndicators.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3-elements.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1-3d2-mathml3.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1-elements.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1-mathml3-elements.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1-mathml3.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/clinicaltrials.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/common5.3.1.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/crossref5.3.1.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/crossref_query_output3.0.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/fundref.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/module-ali.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/relations.xsd +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref-v0.2.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/csl-data.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/datacite-v4.5.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/datacite-v4.5pr.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/ietf-bcp-47.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/iso-8601.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/spdx/licenses.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/spdx-schema.json +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/apa.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/chicago-author-date.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/harvard-cite-them-right.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/ieee.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/modern-language-association.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/vancouver.csl +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/schema_utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/translators.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/utils.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/__init__.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/bibtex_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/citation_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/commonmeta_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/crossref_xml_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/datacite_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/inveniordm_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/ris_writer.py +0 -0
- {commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/writers/schema_org_writer.py +0 -0
@@ -33,6 +33,8 @@ def write_csl_item(metadata) -> Optional[dict]:
|
|
33
33
|
|
34
34
|
container = metadata.container or {}
|
35
35
|
publisher = metadata.publisher or {}
|
36
|
+
date = metadata.date or {}
|
37
|
+
|
36
38
|
return compact(
|
37
39
|
{
|
38
40
|
"type": _type,
|
@@ -47,14 +49,14 @@ def write_csl_item(metadata) -> Optional[dict]:
|
|
47
49
|
"language": metadata.language,
|
48
50
|
"author": author,
|
49
51
|
# "contributor": to_csl(wrap(metadata.contributors)),
|
50
|
-
"issued": get_date_parts(
|
51
|
-
if
|
52
|
+
"issued": get_date_parts(date.get("published"))
|
53
|
+
if date.get("published", None)
|
52
54
|
else None,
|
53
|
-
"submitted": get_date_parts(
|
54
|
-
if
|
55
|
+
"submitted": get_date_parts(date.get("submitted"))
|
56
|
+
if date.get("submitted", None)
|
55
57
|
else None,
|
56
|
-
"accessed": get_date_parts(
|
57
|
-
if
|
58
|
+
"accessed": get_date_parts(date.get("accessed"))
|
59
|
+
if date.get("accessed", None)
|
58
60
|
else None,
|
59
61
|
"abstract": parse_attributes(
|
60
62
|
metadata.descriptions, content="description", first=True
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/AccessIndicators.xsd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/JATS-journalpublishing1.xsd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/crossref/crossref_query_output3.0.xsd
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/chicago-author-date.csl
RENAMED
File without changes
|
{commonmeta_py-0.61 → commonmeta_py-0.62}/commonmeta/resources/styles/harvard-cite-them-right.csl
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|