commonmeta-py 0.40__py3-none-any.whl → 0.41__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.40"
13
+ __version__ = "0.41"
14
14
  __author__ = "Martin Fenner"
15
15
  __license__ = "MIT"
16
16
 
@@ -49,7 +49,7 @@ def write_inveniordm(metadata):
49
49
  relations = [
50
50
  to_inveniordm_related_identifier(i)
51
51
  for i in wrap(metadata.relations)
52
- if i.get("id", None) and i.get("type", None)
52
+ if i.get("id", None) and i.get("type", None) != "IsPartOf"
53
53
  ]
54
54
  related_identifiers = references + relations
55
55
  funding = compact(
@@ -212,12 +212,6 @@ def to_inveniordm_related_identifier(relation: dict) -> dict:
212
212
  if normalize_doi(relation.get("id", None)):
213
213
  identifier = doi_from_url(relation.get("id", None))
214
214
  scheme = "doi"
215
- elif (
216
- relation.get("type", None) == "IsPartOf"
217
- and furl(relation.get("id", None)).host == "portal.issn.org"
218
- ):
219
- identifier = issn_from_url(relation.get("id", None))
220
- scheme = "issn"
221
215
  else:
222
216
  identifier = relation.get("id", None)
223
217
  scheme = "url"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonmeta-py
3
- Version: 0.40
3
+ Version: 0.41
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,4 +1,4 @@
1
- commonmeta/__init__.py,sha256=Xc4MVM80sSD7NZdUZZB6CqIuzR5xxY7Fy-dFmKTeNqI,1779
1
+ commonmeta/__init__.py,sha256=p-9XQa_lbjKjoWcroP_4xCUpiuGwBdhjbY21Wx2YJiw,1779
2
2
  commonmeta/api_utils.py,sha256=-ZHGVZZhJqnjnsLtp4-PoeHYbDqL0cQme7W70BEjo4U,2677
3
3
  commonmeta/author_utils.py,sha256=zBIPTgP5n7Zx57xomJ2h7x0dvC0AV8gJ2gPoYeDy5Lo,8348
4
4
  commonmeta/base_utils.py,sha256=0t6fr9XGeeTBoMlKSAMI7p_EmKsA6wYRW0roEBXVcc8,3722
@@ -49,7 +49,7 @@ commonmeta/resources/datacite-v4.5pr.json,sha256=2A1fKDid_hNfKc5YLjOjtXUobJovU3s
49
49
  commonmeta/resources/ietf-bcp-47.json,sha256=QQUmtIleKwywDfilVLlxzhf7XA4T46LdtLZic5XwDco,228225
50
50
  commonmeta/resources/iso-8601.json,sha256=SJpMPOyep2ujMnTw7PeL_KjF4tNPjx5E0n7KslCm2_I,246361
51
51
  commonmeta/resources/spdx/licenses.json,sha256=acWuaiWFY35GOht9uXgX20vdG-QH7ISrqTL_D0mf2bY,172114
52
- commonmeta/resources/spdx-schema..json,sha256=Zq3_ad54nFivIkbnnqGPXEcXcDHJ_KuA6WIBSjmeJq8,47334
52
+ commonmeta/resources/spdx-schema.json,sha256=Zq3_ad54nFivIkbnnqGPXEcXcDHJ_KuA6WIBSjmeJq8,47334
53
53
  commonmeta/resources/styles/apa.csl,sha256=2KSBL2rUz55nJj5ulA9w9E-GLSL8dX0nfCBVUdRP45o,63244
54
54
  commonmeta/resources/styles/chicago-author-date.csl,sha256=e577X6ZqwhajOsrJLXMiOALuwk5_wkLb-Y5BeBB8gW8,23208
55
55
  commonmeta/resources/styles/harvard-cite-them-right.csl,sha256=XmLVFDrfsgkECYaAbdqM7CtPnxoigqfGKhyX9qnYTJ0,10723
@@ -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=sCDmPC4DEOWjuKtA14dZhjrr--IiO0rgeTXL2O2hre4,9642
69
+ commonmeta/writers/inveniordm_writer.py,sha256=phizoSJVVHfP_wABXTKCIi7HpG7mSZbNDYVbNWoW4UQ,9435
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.40.dist-info/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
73
- commonmeta_py-0.40.dist-info/METADATA,sha256=bB20Im9gNUUGJIt7TnMLFpGouHdnpmV7GkC_fiZmk7I,8331
74
- commonmeta_py-0.40.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
- commonmeta_py-0.40.dist-info/entry_points.txt,sha256=vbcDw3_2lMTKdcAL2VUF4DRYRpKuzXVYLMCdgKVf88U,49
76
- commonmeta_py-0.40.dist-info/RECORD,,
72
+ commonmeta_py-0.41.dist-info/LICENSE,sha256=746hEF2wZCKkcckk5-_DcBLtHewfaEMS4iXTlA1PVwk,1074
73
+ commonmeta_py-0.41.dist-info/METADATA,sha256=c0f4bEW3LY-00aqohuS0MYIuBgl7mMxkDrTwRmaGrcA,8331
74
+ commonmeta_py-0.41.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
75
+ commonmeta_py-0.41.dist-info/entry_points.txt,sha256=vbcDw3_2lMTKdcAL2VUF4DRYRpKuzXVYLMCdgKVf88U,49
76
+ commonmeta_py-0.41.dist-info/RECORD,,