commonmeta-py 0.44__py3-none-any.whl → 0.46__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 CHANGED
@@ -10,7 +10,7 @@ commonmeta-py is a Python library to convert scholarly metadata
10
10
  """
11
11
 
12
12
  __title__ = "commonmeta-py"
13
- __version__ = "0.44"
13
+ __version__ = "0.46"
14
14
  __author__ = "Martin Fenner"
15
15
  __license__ = "MIT"
16
16
 
commonmeta/base_utils.py CHANGED
@@ -94,6 +94,7 @@ def parse_xml(string: Optional[str], **kwargs) -> Optional[Union[dict, list]]:
94
94
  "item",
95
95
  "citation",
96
96
  "program",
97
+ "related_item",
97
98
  }
98
99
 
99
100
  kwargs["attr_prefix"] = ""
@@ -46,7 +46,6 @@ def write_inveniordm(metadata):
46
46
  "scheme": "url",
47
47
  }
48
48
  )
49
- print(identifiers, metadata.id)
50
49
  references = [
51
50
  to_inveniordm_related_identifier(i)
52
51
  for i in wrap(metadata.references)
@@ -226,8 +225,10 @@ def to_inveniordm_related_identifier(relation: dict) -> dict:
226
225
  relation_type = relation.get("type")
227
226
  if relation.get("type", None) is None:
228
227
  relation_type = "References"
229
- if relation.get("type") == "HasReview":
228
+ elif relation.get("type") == "HasReview":
230
229
  relation_type = "IsReviewedBy"
230
+ elif relation.get("type") == "IsPreprintOf":
231
+ relation_type = "IsPreviousVersionOf"
231
232
 
232
233
  return compact(
233
234
  {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonmeta-py
3
- Version: 0.44
3
+ Version: 0.46
4
4
  Summary: Library for conversions to/from the Commonmeta scholarly metadata format
5
5
  Home-page: https://python.commonmeta.org
6
6
  License: MIT
@@ -1,7 +1,7 @@
1
- commonmeta/__init__.py,sha256=FlclubppW_GDhF_tihWRu6nUfRikxMQcPM3gs6khp5I,1779
1
+ commonmeta/__init__.py,sha256=UwZTJc_3PZiVi5YW_dieLODzHaTJvSC1xArtoQBGYAg,1779
2
2
  commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
3
3
  commonmeta/author_utils.py,sha256=zBIPTgP5n7Zx57xomJ2h7x0dvC0AV8gJ2gPoYeDy5Lo,8348
4
- commonmeta/base_utils.py,sha256=0t6fr9XGeeTBoMlKSAMI7p_EmKsA6wYRW0roEBXVcc8,3722
4
+ commonmeta/base_utils.py,sha256=AsUElA5kT2fw_Osy7Uaj2F6MKeq9yB7d5f2V-h2lh7c,3750
5
5
  commonmeta/cli.py,sha256=0IJF1SQ1sKPg7M0Gb8fpX2nBps-G0L13o01__M6c5Z0,6104
6
6
  commonmeta/constants.py,sha256=VfjXLkwoV4A5uztH3vgDJ_qrt7PaWGO6QtHbAt4r03c,17501
7
7
  commonmeta/crossref_utils.py,sha256=qJlTZtfKR2shAXQDm8VBYUujKFkTtZTUz19GuMUANaI,22198
@@ -66,11 +66,11 @@ commonmeta/writers/commonmeta_writer.py,sha256=2qlttCfYpGhfVjrYkjzbIra7AywssRLT3
66
66
  commonmeta/writers/crossref_xml_writer.py,sha256=0Ds494RnXfdfjWw5CLX1kwV2zP7gqffdVqO-X74Uc6c,492
67
67
  commonmeta/writers/csl_writer.py,sha256=rlCeShkvC6ui9By0yVfNCMay_JfaZ4AooUPOPg-g-2M,2819
68
68
  commonmeta/writers/datacite_writer.py,sha256=G7Lr0aZ4sAEdbfXe3dG4Y6AyGUKA9UWr_iiaQRDnV24,6233
69
- commonmeta/writers/inveniordm_writer.py,sha256=-rMdMBgS5oGvr0aNG15wI7z3pML42kHTLzK7pNBjqlc,9579
69
+ commonmeta/writers/inveniordm_writer.py,sha256=TfKJnmXrL-qHZ5r9yCBaElrhmfX77PusRSjjawYQ0Rc,9640
70
70
  commonmeta/writers/ris_writer.py,sha256=AcnCszS3WY9lF594NbFBtLylsA8ownnYp_XLQJ84Ios,2093
71
71
  commonmeta/writers/schema_org_writer.py,sha256=5j002uCNLdlScZMNQmPjodcVWqaBh2z38zL1H4lo2hY,5741
72
- commonmeta_py-0.44.dist-info/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
73
- commonmeta_py-0.44.dist-info/METADATA,sha256=Pj_d5FqiaZtFB5bFAwLy-_F-r5BdlMHXYKaRDPZN9So,8331
74
- commonmeta_py-0.44.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
- commonmeta_py-0.44.dist-info/entry_points.txt,sha256=vbcDw3_2lMTKdcAL2VUF4DRYRpKuzXVYLMCdgKVf88U,49
76
- commonmeta_py-0.44.dist-info/RECORD,,
72
+ commonmeta_py-0.46.dist-info/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
73
+ commonmeta_py-0.46.dist-info/METADATA,sha256=0Y3OVDu1v7l-q2-G04mvurOcl78Mj2wp1MkMoRKfdeQ,8331
74
+ commonmeta_py-0.46.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
+ commonmeta_py-0.46.dist-info/entry_points.txt,sha256=vbcDw3_2lMTKdcAL2VUF4DRYRpKuzXVYLMCdgKVf88U,49
76
+ commonmeta_py-0.46.dist-info/RECORD,,