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

Ausnahme für GND ohne WP-/WD-Link

parent b26a4b69
No related branches found
No related tags found
No related merge requests found
......@@ -55,7 +55,7 @@
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:when test="document($gndrdfurl)//foaf:page[contains(./@rdf:resource, 'wikipedia')] or document($gndrdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]">
<xsl:variable name="wpurl" select="document($gndrdfurl)//foaf:page[contains(./@rdf:resource, 'wikipedia')]/@rdf:resource"/>
<xsl:choose>
<xsl:when test="document($gndrdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]">
......@@ -80,7 +80,7 @@
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:when>
</xsl:choose>
</xsl:when>
</xsl:choose>
......@@ -105,7 +105,7 @@
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:when test="document($gndrdfurl)//foaf:page[contains(./@rdf:resource, 'wikipedia')] or document($gndrdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]">
<xsl:variable name="wpurl" select="document($gndrdfurl)//foaf:page[contains(./@rdf:resource, 'wikipedia')]/@rdf:resource"/>
<xsl:variable name="wdurl" select="concat('https://www.wikidata.org/wiki/Special:EntityData/Q',substring-after(document($gndrdfurl)//owl:sameAs[contains(./@rdf:resource, 'wikidata')]/@rdf:resource,'/Q'),'.rdf')"/>
<xsl:choose>
......@@ -126,7 +126,7 @@
</xsl:if>
</xsl:when>
</xsl:choose>
</xsl:otherwise>
</xsl:when>
</xsl:choose>
</xsl:if>
</xsl:if>
......
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