commonmeta-py 0.138__py3-none-any.whl → 0.139__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.138"
13
+ __version__ = "0.139"
14
14
  __author__ = "Martin Fenner"
15
15
  __license__ = "MIT"
16
16
 
@@ -452,7 +452,9 @@ def push_crossref_xml_list(
452
452
  if uuid:
453
453
  record["uuid"] = uuid
454
454
  record = update_legacy_record(
455
- record, legacy_key=legacy_key, field="doi"
455
+ # record, legacy_key=legacy_key, field="doi"
456
+ record,
457
+ legacy_key=legacy_key,
456
458
  )
457
459
  items.append(record)
458
460
 
@@ -734,6 +734,7 @@ def update_legacy_record(record, legacy_key: str, field: str = None) -> dict:
734
734
  "indexed_at": now,
735
735
  "indexed": "true",
736
736
  "archived": "true",
737
+ "registered": "false",
737
738
  }
738
739
  elif record.get("doi", None) is not None:
739
740
  output = {
@@ -741,10 +742,12 @@ def update_legacy_record(record, legacy_key: str, field: str = None) -> dict:
741
742
  "indexed_at": now,
742
743
  "indexed": "true",
743
744
  "archived": "true",
745
+ "registered": "false",
744
746
  }
745
747
  else:
746
- print(f"nothing to update for id {record.get('uuid')}")
747
- return record # nothing to update
748
+ output = {
749
+ "registered": "true",
750
+ }
748
751
 
749
752
  request_url = f"https://{legacy_host}/rest/v1/posts?id=eq.{record['uuid']}"
750
753
  headers = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commonmeta-py
3
- Version: 0.138
3
+ Version: 0.139
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=Cz7lMWSowVdw1VuETrR1FJtBTdPZGfWHolqt_zLiWl0,2118
1
+ commonmeta/__init__.py,sha256=0LNsQxOEovE9g84On2Y4q4nCnYHQcXN6TkJDbyChwcM,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
@@ -77,14 +77,14 @@ commonmeta/writers/__init__.py,sha256=47-snms6xBHkoEXKYV1DBtH1npAtlVtvY29Z4Zr45q
77
77
  commonmeta/writers/bibtex_writer.py,sha256=doAdyl1NEp60mPkHPo3GMH8B-HA6MzLAdlyNsIecTzU,4972
78
78
  commonmeta/writers/citation_writer.py,sha256=qs_4X3BjrSqHexmJFPvPDTp0mRIqzb0F70_Wuc7S9x0,2343
79
79
  commonmeta/writers/commonmeta_writer.py,sha256=QpfyhG__7o_XpsOTCPWxGymO7YKwZi2LQh8Zic44bdc,1365
80
- commonmeta/writers/crossref_xml_writer.py,sha256=nyNgnyluzd9jZ6jysrSg_TpMNOQuVjfMo7pN0HUb3c0,34832
80
+ commonmeta/writers/crossref_xml_writer.py,sha256=1DQNnjU_9TSz2YuBQprKK_3ostCBikZUn9OVhov78B8,34905
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=0p2vHOyOnyc8OM0FEQtKCU6ST2TEb0JW71xBm2mIWfM,26844
83
+ commonmeta/writers/inveniordm_writer.py,sha256=Q28Ogj5M8nP6FuOLcJOO8Vrm6jHRoYxCEyAcT3FjzA4,26882
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.138.dist-info/METADATA,sha256=Kt0DoKf5GgCzh7H1SKGt7Yq9WFciEdOFp8ofLcni620,7656
87
- commonmeta_py-0.138.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
88
- commonmeta_py-0.138.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
89
- commonmeta_py-0.138.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
90
- commonmeta_py-0.138.dist-info/RECORD,,
86
+ commonmeta_py-0.139.dist-info/METADATA,sha256=-oF4TP5OQTDBUQYQJaBDfCKje5jKjtUlP3ludFAESJ4,7656
87
+ commonmeta_py-0.139.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
88
+ commonmeta_py-0.139.dist-info/entry_points.txt,sha256=U4w4BoRuS3rN5t5Y-uYSyOeU5Lh_VRVMS9OIDzIgw4w,50
89
+ commonmeta_py-0.139.dist-info/licenses/LICENSE,sha256=wsIvxF9Q9GC9vA_s79zTWP3BkXJdfUNRmALlU8GbW1s,1074
90
+ commonmeta_py-0.139.dist-info/RECORD,,