]> Pierre Choffet | Git repositories - wdef_tools.git/commitdiff
Make incompatible date precision error message more verbose master
authorPierre Choffet <peuc@wanadoo.fr>
Fri, 20 Mar 2026 04:38:34 +0000 (00:38 -0400)
committerPierre Choffet <peuc@wanadoo.fr>
Fri, 20 Mar 2026 04:38:34 +0000 (00:38 -0400)
xslts/merge_rdf.xslt

index 94a4b769caaaba3ff1f9e0d84e35219f0b2b62f0..67ac607f5cc8185b500b994799cda82049fc9131 100644 (file)
                                                                        <xsl:value-of select="substring($wd-date-description/wikibase:timeValue, 1, 10)" />
                                                                </xsl:when>
                                                                <xsl:otherwise>
-                                                                       <xsl:message terminate="yes">Can only deal with precision between 9 and 11</xsl:message>
+                                                                       <xsl:message terminate="yes">
+                                                                               <xsl:value-of select="$element-id" />
+                                                                               <xsl:text>-</xsl:text>
+                                                                               <xsl:value-of select="$PID" />
+                                                                               <xsl:text>: can only deal with precision between 9 and 11</xsl:text>
+                                                                       </xsl:message>
                                                                </xsl:otherwise>
                                                        </xsl:choose>
                                                </xsl:variable>
                                                                </xsl:when>
                                                                <xsl:otherwise>
                                                                        <xsl:message terminate="yes">
-                                                                               <xsl:value-of select="$rdf-path" />
+                                                                               <xsl:value-of select="$element-id" />
                                                                                <xsl:text>-</xsl:text>
                                                                                <xsl:value-of select="$PID" />
                                                                                <xsl:text>: can only deal with precision between 9 and 11</xsl:text>
                                                        <xsl:when test="$wd-time-at-least-precise = 'no' and $wd-time-compatible = 'yes'">
                                                                <xsl:text>no</xsl:text>
                                                                <xsl:message terminate="no">
-                                                                       <xsl:value-of select="$rdf-path" />
+                                                                       <xsl:value-of select="$element-id" />
                                                                        <xsl:text>-</xsl:text>
                                                                        <xsl:value-of select="$PID" />
                                                                        <xsl:text>: WD has a compatible but less precise date. Since we don't delete data in Wikidata, both values will exist in Wikidata.</xsl:text>
                                                                </xsl:message>
                                                        </xsl:when>
-                                                       <!-- $wd-time-compatible = 'no' -->
                                                        <xsl:otherwise>
+                                                               <!-- $wd-time-compatible = 'no' -->
                                                                <xsl:text>yes</xsl:text>
                                                                <xsl:message terminate="no">
-                                                                       <xsl:value-of select="$rdf-path" />
+                                                                       <xsl:value-of select="$element-id" />
                                                                        <xsl:text>-</xsl:text>
                                                                        <xsl:value-of select="$PID" />
                                                                        <xsl:text>: WD has incompatible data. Since we don't delete data in Wikidata, our value will not be imported.</xsl:text>