Project

General

Profile

« Previous | Next » 

Revision 59896

Use Issued date for oaf:dateAccepted, when available, instead of publicationYear

View differences:

xslt_cleaning_datarepo_datacite.xml
184 184
										</xsl:when>
185 185
									</xsl:choose>
186 186
									<oaf:dateAccepted>
187
										<xsl:value-of select="TransformationFunction:convertString($tf, normalize-space(//*[local-name()='publicationYear']), 'DateISO8601')"/>
187
										<xsl:variable name="theDate">
188
											<xsl:choose>
189
												<xsl:when test="string-length(normalize-space(//*[local-name()='date'][@dateType='Issued'])) > 3">
190
													<xsl:value-of select="//*[local-name()='date'][@dateType='Issued']"/>
191
												</xsl:when>
192
												<xsl:otherwise>
193
													<xsl:value-of select="//*[local-name()='publicationYear']"/>
194
												</xsl:otherwise>
195
											</xsl:choose>
196
										</xsl:variable>
197
										<xsl:value-of select="TransformationFunction:convertString($tf, normalize-space($theDate), 'DateISO8601')"/>
188 198
									</oaf:dateAccepted>
189 199
									<xsl:choose><!--
190 200
					<xsl:if test="//*[local-name() = 'datasourceprefix'][.='r310e4cd113d'] and not(boolean(//*[local-name() = 'rights']/@rightsURI ) )]">

Also available in: Unified diff