commonmeta-py 0.95__py3-none-any.whl → 0.97__py3-none-any.whl
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/__init__.py +1 -1
- commonmeta/metadata.py +0 -1
- commonmeta/readers/json_feed_reader.py +2 -4
- commonmeta/writers/inveniordm_writer.py +1 -2
- {commonmeta_py-0.95.dist-info → commonmeta_py-0.97.dist-info}/METADATA +1 -1
- {commonmeta_py-0.95.dist-info → commonmeta_py-0.97.dist-info}/RECORD +9 -9
- {commonmeta_py-0.95.dist-info → commonmeta_py-0.97.dist-info}/WHEEL +0 -0
- {commonmeta_py-0.95.dist-info → commonmeta_py-0.97.dist-info}/entry_points.txt +0 -0
- {commonmeta_py-0.95.dist-info → commonmeta_py-0.97.dist-info}/licenses/LICENSE +0 -0
commonmeta/__init__.py
CHANGED
commonmeta/metadata.py
CHANGED
@@ -102,7 +102,6 @@ class Metadata:
|
|
102
102
|
self.url = meta.get("url")
|
103
103
|
self.version = meta.get("version")
|
104
104
|
self.content = meta.get("content")
|
105
|
-
self.html = meta.get("html")
|
106
105
|
self.image = meta.get("image")
|
107
106
|
# other properties
|
108
107
|
self.date_created = meta.get("date_created")
|
@@ -110,7 +110,7 @@ def read_json_feed_item(data: Optional[dict], **kwargs) -> Commonmeta:
|
|
110
110
|
else None
|
111
111
|
)
|
112
112
|
|
113
|
-
description = meta.get("abstract", None)
|
113
|
+
description = meta.get("abstract", None) or meta.get("summary", None)
|
114
114
|
if description is not None:
|
115
115
|
descriptions = [{"description": sanitize(description), "type": "Abstract"}]
|
116
116
|
else:
|
@@ -137,8 +137,7 @@ def read_json_feed_item(data: Optional[dict], **kwargs) -> Commonmeta:
|
|
137
137
|
{"identifier": meta.get("id"), "identifierType": "UUID"},
|
138
138
|
{"identifier": meta.get("guid"), "identifierType": "GUID"},
|
139
139
|
]
|
140
|
-
content = py_.get(meta, "
|
141
|
-
html = py_.get(meta, "content_html", None)
|
140
|
+
content = py_.get(meta, "content_html", "")
|
142
141
|
image = py_.get(meta, "image", None)
|
143
142
|
files = get_files(_id)
|
144
143
|
state = "findable" if meta or read_options else "not_found"
|
@@ -165,7 +164,6 @@ def read_json_feed_item(data: Optional[dict], **kwargs) -> Commonmeta:
|
|
165
164
|
"references": presence(references),
|
166
165
|
"relations": presence(relations),
|
167
166
|
"content": presence(content),
|
168
|
-
"html": presence(html),
|
169
167
|
"image": presence(image),
|
170
168
|
"files": files,
|
171
169
|
# other properties
|
@@ -135,8 +135,7 @@ def write_inveniordm(metadata):
|
|
135
135
|
"custom_fields": compact(
|
136
136
|
{
|
137
137
|
"journal:journal": compact({"title": journal, "issn": issn}),
|
138
|
-
"rs:
|
139
|
-
"rs:content_html": presence(metadata.html),
|
138
|
+
"rs:content_html": presence(metadata.content),
|
140
139
|
"rs:image": presence(metadata.image),
|
141
140
|
"rs:generator": container.get("platform", None),
|
142
141
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: commonmeta-py
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.97
|
4
4
|
Summary: Library for conversions to/from the Commonmeta scholarly metadata format
|
5
5
|
Project-URL: Homepage, https://python.commonmeta.org
|
6
6
|
Project-URL: Repository, https://github.com/front-matter/commonmeta-py
|
@@ -1,4 +1,4 @@
|
|
1
|
-
commonmeta/__init__.py,sha256=
|
1
|
+
commonmeta/__init__.py,sha256=py3KuhAG1VY6dLjWHuA5w6-TSUfFSzA-SF8leuljX3s,1911
|
2
2
|
commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
|
3
3
|
commonmeta/author_utils.py,sha256=1oQQfxaq7aMQI3rLt8XMufksuBeC8Zht96aJ8vz09Ug,8459
|
4
4
|
commonmeta/base_utils.py,sha256=AsUElA5kT2fw_Osy7Uaj2F6MKeq9yB7d5f2V-h2lh7c,3750
|
@@ -7,7 +7,7 @@ commonmeta/constants.py,sha256=aZ7v-5bomVUQ1D79ubeSGHvlHhQvtVOcTvjLy-Wagvw,18348
|
|
7
7
|
commonmeta/crossref_utils.py,sha256=ijcdAdV2HHUXP2twIKIQP9Ln2xsysU3n9nwQDg-ZAxU,22224
|
8
8
|
commonmeta/date_utils.py,sha256=rJRV4YmWKQWU__iAV8www3cqwaefC0iRKyHwvxrr_XY,6316
|
9
9
|
commonmeta/doi_utils.py,sha256=s2J95V9rWPbGsh5oNXht3yJkJ0NmVLRlOXDPXjnN-Ck,9152
|
10
|
-
commonmeta/metadata.py,sha256=
|
10
|
+
commonmeta/metadata.py,sha256=cjvCcxW1FMtKCbNKan0zXX0FN6z5orHFGPYsgkp6fSI,12480
|
11
11
|
commonmeta/schema_utils.py,sha256=2DmwMAcasmNa0xBdxxeS6bIvoHz63sODk_ja5UYFTqk,915
|
12
12
|
commonmeta/translators.py,sha256=RpGJtKNLjmz41VREZDY7KyyE2eXOi8j7m-da4jHmknI,1362
|
13
13
|
commonmeta/utils.py,sha256=nWSdkc1jNkhSnv46MKScExOUlD--wMP_QCRpy8Rnq_g,44989
|
@@ -22,7 +22,7 @@ commonmeta/readers/csl_reader.py,sha256=ynqJeqK9TlHFsmgMREPmKGlcj6tVycpnqDN0N0Lj
|
|
22
22
|
commonmeta/readers/datacite_reader.py,sha256=CdOtxhthrakBoQMsLTdPx6sUCmqtEWo5ICYE6ZsWDdo,12026
|
23
23
|
commonmeta/readers/datacite_xml_reader.py,sha256=nhnO92fZihr1HZlbXjyem-HJXc9_DWLgJ2zeltuPMIg,13041
|
24
24
|
commonmeta/readers/inveniordm_reader.py,sha256=F0syoLZ3amzkrEk8efb9WxwhMDY8QM8ctOH32E3fGqM,8358
|
25
|
-
commonmeta/readers/json_feed_reader.py,sha256=
|
25
|
+
commonmeta/readers/json_feed_reader.py,sha256=L2zl0Iv8F9o9JC-qjF_j7K5Lw_iJwa5LrQCNx-sxfDE,14437
|
26
26
|
commonmeta/readers/kbase_reader.py,sha256=ehKXQsJyPCtaq2FmBxNb2Jb5Nktpx8pNscpmEM6N0A4,6763
|
27
27
|
commonmeta/readers/ris_reader.py,sha256=v6qOd-i2OcMTEFy5RGd3MlYthJcYSU6yzmZ5yHDzmII,3677
|
28
28
|
commonmeta/readers/schema_org_reader.py,sha256=78vYWCZqrYevZsSbx7oVVLm3mlNzi323WNW5E_PL9o0,17234
|
@@ -67,11 +67,11 @@ commonmeta/writers/commonmeta_writer.py,sha256=mu-yXQvQs_xdYM4MxbTTxxYB5n0lJA5Bq
|
|
67
67
|
commonmeta/writers/crossref_xml_writer.py,sha256=0Ds494RnXfdfjWw5CLX1kwV2zP7gqffdVqO-X74Uc6c,492
|
68
68
|
commonmeta/writers/csl_writer.py,sha256=W3lryCg4TwXEoBuNhEc2GdU6fe1OrDZ37s1-0h1IGzc,2807
|
69
69
|
commonmeta/writers/datacite_writer.py,sha256=UpDp4Brg5xrmS5T3QYoNi6PPXKdRxAo254eTqnlmNyQ,6304
|
70
|
-
commonmeta/writers/inveniordm_writer.py,sha256=
|
70
|
+
commonmeta/writers/inveniordm_writer.py,sha256=M_VmBZ_E5x_BHSgMjt2u70c34Eij2ngoaDwYWOrJzkg,11429
|
71
71
|
commonmeta/writers/ris_writer.py,sha256=AcnCszS3WY9lF594NbFBtLylsA8ownnYp_XLQJ84Ios,2093
|
72
72
|
commonmeta/writers/schema_org_writer.py,sha256=5j002uCNLdlScZMNQmPjodcVWqaBh2z38zL1H4lo2hY,5741
|
73
|
-
commonmeta_py-0.
|
74
|
-
commonmeta_py-0.
|
75
|
-
commonmeta_py-0.
|
76
|
-
commonmeta_py-0.
|
77
|
-
commonmeta_py-0.
|
73
|
+
commonmeta_py-0.97.dist-info/METADATA,sha256=h3SsWGwXgm-NszVKGciTtXn53tCSr28_HN6VlC4pRRY,7429
|
74
|
+
commonmeta_py-0.97.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
75
|
+
commonmeta_py-0.97.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
|
76
|
+
commonmeta_py-0.97.dist-info/licenses/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
|
77
|
+
commonmeta_py-0.97.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|