Skip to content

Commit 69e3169

Browse files
committed
change date order in crossref_xml
1 parent f271209 commit 69e3169

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

commonmeta/crossref_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,9 @@ def insert_crossref_publication_date(metadata, xml):
380380
publication_date = etree.SubElement(
381381
xml, "publication_date", {"media_type": "online"}
382382
)
383-
etree.SubElement(publication_date, "year").text = str(pub_date.year)
384383
etree.SubElement(publication_date, "month").text = f"{pub_date.month:d}"
385384
etree.SubElement(publication_date, "day").text = f"{pub_date.day:d}"
385+
etree.SubElement(publication_date, "year").text = str(pub_date.year)
386386
return xml
387387

388388

@@ -393,9 +393,9 @@ def insert_posted_date(metadata, xml):
393393
return xml
394394

395395
posted_date = etree.SubElement(xml, "posted_date", {"media_type": "online"})
396-
etree.SubElement(posted_date, "year").text = str(pub_date.year)
397396
etree.SubElement(posted_date, "month").text = f"{pub_date.month:d}"
398397
etree.SubElement(posted_date, "day").text = f"{pub_date.day:d}"
398+
etree.SubElement(posted_date, "year").text = str(pub_date.year)
399399
return xml
400400

401401

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name="commonmeta-py"
3-
version="0.13.1"
3+
version="0.13.2"
44
repository = "https://github.com/front-matter/commonmeta-py"
55
homepage = "https://python.commonmeta.org"
66
documentation = "https://python.commonmeta.org"

0 commit comments

Comments
 (0)