elifesciences / elife-crossref-feed

code to support uploading info to crossref on PAW articles
1 stars 1 forks source link

Provide iso-8601-date and not date provided for display #93

Closed Melissa37 closed 7 years ago

Melissa37 commented 7 years ago

For example, this:

 <year iso-8601-date="2004">2004a</year>

Is getting converted to

  <cYear>2004b</cYear>

The a,b,c values mean nothing to Crossref and serve no purpose in this context and they create unclean data. They want just the date, so we should use the iso-8601-date value instead

gnott commented 7 years ago

In the case above, it will prefer the numeric value for year taken from the iso-8601-date attribute, or if that is not available then it will use the date text as written, e.g. 2004b.