Skip to content

Commit 7621d03

Browse files
committed
JATS XML: fix validation errors with customizations and dates
1 parent 6e729bf commit 7621d03

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

z-lib/article.jats

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ $if(date.iso-8601)$
182182
<pub-date publication-format="electronic" iso-8601-date="$date.iso-8601$">
183183
$elseif(date-meta)$
184184
<pub-date publication-format="electronic" iso-8601-date="$date-meta$">
185+
$elseif(dates.published)$$-- custom dates --$
186+
<pub-date publication-format="electronic" iso-8601-date="$dates.published$" >
185187
$else$
186188
<pub-date publication-format="electronic">
187189
$endif$
@@ -195,19 +197,13 @@ $if(date.year)$
195197
<year>$pub-date.year$</year>
196198
$else$
197199
<string-date>$date$</string-date>
198-
$endif$
199200
</pub-date>
200-
$else$$-- custom dates --$
201-
$if(dates.published)$
202-
<pub-date publication-format="electronic" iso-8601-date="$dates.published$" />
203-
$endif$
204201
$endif$
205-
<pub-history>
206202
$if(dates.submitted)$
203+
<pub-history>
207204
<event>
208205
<date date-type="received" iso-8601-date="$dates.submitted$" />
209206
</event>
210-
$endif$
211207
$for(dates.revised)$
212208
<event>
213209
<date date-type="rev-recd" iso-8601-date="$dates.revised$" />
@@ -224,6 +220,13 @@ $if(correction)$$if(correction.notice)$$else$
224220
<event-desc>$correction.text$</event-desc>
225221
</event>
226222
$endif$$endif$
223+
$elseif(correction)$$if(correction.notice)$$else$
224+
<event>
225+
<date date-type="$if(correction.retraction)$retracted$else$corrected$endif$" iso-8601-date="$correction.date$" />
226+
<event-desc>$correction.text$</event-desc>
227+
</event>
228+
$endif$$endif$
229+
$endif$$-- closing date.submitted --$
227230
</pub-history>
228231

229232
$if(article.volume)$

0 commit comments

Comments
 (0)