Skip to content

Commit

Permalink
Fix for related item linking in #116.
Browse files Browse the repository at this point in the history
  • Loading branch information
hcayless committed Nov 12, 2021
1 parent 52f2144 commit d796460
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pn-xslt/htm-teibibl.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@

<xsl:function name="pi:checkFile">
<xsl:param name="ddb" />
<xsl:variable name="link" select="concat('http://papyri.info/ddbdp/', $ddb)" />
<xsl:variable name="link" select="concat('https://papyri.info/ddbdp/', $ddb)" />
<xsl:variable name="test" select="doc-available(pi:get-filename(concat($link, '/source'), 'xml'))"/>
<xsl:if test="$test">
<xsl:value-of select="$link" />
Expand Down
2 changes: 1 addition & 1 deletion pn-xslt/pi-functions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<xsl:choose>
<xsl:when test="contains($url, 'ddbdp')">
<xsl:choose>
<xsl:when test="matches($url, 'https?://papyri.info/ddbdp')"><xsl:sequence select="concat($base, '/DDB_EpiDoc_XML/index.html')"/></xsl:when>
<xsl:when test="matches($url, '^https?://papyri.info/ddbdp$')"><xsl:sequence select="concat($base, '/DDB_EpiDoc_XML/index.html')"/></xsl:when>
<xsl:when test="ends-with($url, '/source')">
<xsl:variable name="id" select="tokenize(substring-before(substring-after($url, 'papyri.info/ddbdp/'), '/'), ';')"/>
<xsl:choose>
Expand Down

0 comments on commit d796460

Please sign in to comment.