Skip to content
Snippets Groups Projects
Commit 8b34c6d4 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

weiteren doc-available-Test eingebaut

parent 54ebe45a
No related branches found
No related tags found
No related merge requests found
......@@ -51,15 +51,17 @@ Transformationsdauer via VPN ca. 45 Minuten! -->
</xsl:when>
<xsl:otherwise>
<xsl:variable name="wdurl" select="concat(document($rdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]/@rdf:resource,'.rdf')"/>
<xsl:variable name="lat" select="substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"/>
<xsl:variable name="long" select="substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"/>
<xsl:if test="($lat ne '') and ($long ne '')">
<xsl:call-template name="output_wrk">
<xsl:with-param name="placeid" select="@xml:id"/>
<xsl:with-param name="uri" select="substring-before($wdurl,'.rdf')"/>
<xsl:with-param name="lat" select="$lat"/>
<xsl:with-param name="long" select="$long"/>
</xsl:call-template>
<xsl:if test="doc-available($wdurl)">
<xsl:variable name="lat" select="substring-before(substring-after(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' '),')')"/>
<xsl:variable name="long" select="substring-before(substring-after(document($wdurl)//ps:P625[not(preceding::ps:P625)],'Point('), ' ')"/>
<xsl:if test="($lat ne '') and ($long ne '')">
<xsl:call-template name="output_wrk">
<xsl:with-param name="placeid" select="@xml:id"/>
<xsl:with-param name="uri" select="substring-before($wdurl,'.rdf')"/>
<xsl:with-param name="lat" select="$lat"/>
<xsl:with-param name="long" select="$long"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment