commonmeta-py 0.135__py3-none-any.whl → 0.137__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/readers/jsonfeed_reader.py +7 -0
- commonmeta/writers/inveniordm_writer.py +3 -3
- {commonmeta_py-0.135.dist-info → commonmeta_py-0.137.dist-info}/METADATA +1 -1
- {commonmeta_py-0.135.dist-info → commonmeta_py-0.137.dist-info}/RECORD +8 -8
- {commonmeta_py-0.135.dist-info → commonmeta_py-0.137.dist-info}/WHEEL +0 -0
- {commonmeta_py-0.135.dist-info → commonmeta_py-0.137.dist-info}/entry_points.txt +0 -0
- {commonmeta_py-0.135.dist-info → commonmeta_py-0.137.dist-info}/licenses/LICENSE +0 -0
commonmeta/__init__.py
CHANGED
@@ -162,6 +162,13 @@ def read_jsonfeed(data: Optional[dict], **kwargs) -> Commonmeta:
|
|
162
162
|
references = get_references(wrap(meta.get("reference", None)))
|
163
163
|
funding_references = get_funding_references(meta)
|
164
164
|
relations = get_relations(wrap(meta.get("relationships", None)))
|
165
|
+
if meta.get("blog_slug", None):
|
166
|
+
relations.append(
|
167
|
+
{
|
168
|
+
"id": f"https://rogue-scholar.org/api/communities/{meta.get('blog_slug')}",
|
169
|
+
"type": "IsPartOf",
|
170
|
+
}
|
171
|
+
)
|
165
172
|
if issn is not None:
|
166
173
|
relations.append(
|
167
174
|
{
|
@@ -428,12 +428,12 @@ def push_inveniordm(metadata: Commonmeta, host: str, token: str, **kwargs) -> Di
|
|
428
428
|
if community_index is not None:
|
429
429
|
metadata.relations.pop(community_index)
|
430
430
|
|
431
|
-
# optionally add record to InvenioRDM communities
|
432
|
-
record = add_record_to_communities(metadata, host, token, record)
|
433
|
-
|
434
431
|
# upsert record via the InvenioRDM API
|
435
432
|
record = upsert_record(metadata, host, token, record)
|
436
433
|
|
434
|
+
# optionally add record to InvenioRDM communities
|
435
|
+
record = add_record_to_communities(metadata, host, token, record)
|
436
|
+
|
437
437
|
# optionally update external services
|
438
438
|
record = update_external_services(metadata, host, token, record, **kwargs)
|
439
439
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: commonmeta-py
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.137
|
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=dHiaWJo_FPXFLyxr8wGWSwgUCHKUZAewRgsiCTu54rA,2118
|
2
2
|
commonmeta/api_utils.py,sha256=P8LMHHYiF4OTi97_5k4KstcBreooMkOAKZ4ebxsAv4o,2691
|
3
3
|
commonmeta/author_utils.py,sha256=3lYW5s1rOUWNTKs1FP6XLfEUY3yCLOe_3L_VdJTDMp0,8585
|
4
4
|
commonmeta/base_utils.py,sha256=-MGy9q2uTiJEkPWQUYOJMdq-3tRpNnvBwlLjvllQ5g8,11164
|
@@ -22,7 +22,7 @@ commonmeta/readers/csl_reader.py,sha256=OxzC2AZKfv43BCah4XGYvlK_LUK-5mxXFcjdzB5v
|
|
22
22
|
commonmeta/readers/datacite_reader.py,sha256=4b_AP8m_aOUNVnVB0nU9j4-a8WTpmYJA8QPr5v35qyw,12219
|
23
23
|
commonmeta/readers/datacite_xml_reader.py,sha256=nsPc7JBbIKgx6Yaauq8vmhUE-o6K0t_MAuExv6FO2AU,13205
|
24
24
|
commonmeta/readers/inveniordm_reader.py,sha256=DtSloEZDu8bL-QLQAqAW1aDsS6ESTDZyhme379IekjY,8502
|
25
|
-
commonmeta/readers/jsonfeed_reader.py,sha256=
|
25
|
+
commonmeta/readers/jsonfeed_reader.py,sha256=rrWsYfvgji0SW0wgvyT-eQ7J-nFraP6CXe1bWH0nx84,16134
|
26
26
|
commonmeta/readers/kbase_reader.py,sha256=0Y9cHRNs_7kHyocN4IESXbgmXJiq4TXoxvGeUYGml1s,6896
|
27
27
|
commonmeta/readers/openalex_reader.py,sha256=4HUkBsut_iUjhUcC5c1GHgxnKsYQc-fgY43QILgVZEg,12826
|
28
28
|
commonmeta/readers/ris_reader.py,sha256=nwK8Eux0wPjwKqXFWS4Cfd6FAY7Id4Mi_hgkTwPntHs,3766
|
@@ -80,11 +80,11 @@ commonmeta/writers/commonmeta_writer.py,sha256=QpfyhG__7o_XpsOTCPWxGymO7YKwZi2LQ
|
|
80
80
|
commonmeta/writers/crossref_xml_writer.py,sha256=nyNgnyluzd9jZ6jysrSg_TpMNOQuVjfMo7pN0HUb3c0,34832
|
81
81
|
commonmeta/writers/csl_writer.py,sha256=4gDYs1EzK4_L2UIRTfs25wgHmYRwdRP2zmfxF9387oU,2779
|
82
82
|
commonmeta/writers/datacite_writer.py,sha256=bcinpwhq7XnVthKHH8-sdXA34dSlvFH4ImYH768iaQU,6428
|
83
|
-
commonmeta/writers/inveniordm_writer.py,sha256=
|
83
|
+
commonmeta/writers/inveniordm_writer.py,sha256=tiuq9JEkz02l615yVe9wUcJQqiIPJLUqNDyofEE8Aus,26726
|
84
84
|
commonmeta/writers/ris_writer.py,sha256=3SdyEvMRaPRP1SV1MB-MXBlunE7x6og7RF1zuWtetPc,2094
|
85
85
|
commonmeta/writers/schema_org_writer.py,sha256=s18_x0ReXwAGBoEAwp2q-HCgFQ-h5qRg6JyAlqCoSFE,5871
|
86
|
-
commonmeta_py-0.
|
87
|
-
commonmeta_py-0.
|
88
|
-
commonmeta_py-0.
|
89
|
-
commonmeta_py-0.
|
90
|
-
commonmeta_py-0.
|
86
|
+
commonmeta_py-0.137.dist-info/METADATA,sha256=2AJlNYHWys5ZdUp3TT5_DZPa65pFTj-t2ohmJAedj1U,7656
|
87
|
+
commonmeta_py-0.137.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
88
|
+
commonmeta_py-0.137.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
|
89
|
+
commonmeta_py-0.137.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
|
90
|
+
commonmeta_py-0.137.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|