Skip to content

Commit

Permalink
[XSLT] Adds support for media using youtu.be urls
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromsl authored and ajrbyers committed Aug 3, 2022
1 parent b775908 commit 6db2b7b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/transform/xsl/default.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3119,6 +3119,12 @@
<xsl:apply-templates select="." mode="youtube"/>
</div>
</xsl:when>
<xsl:otherwise>
<xsl:when test="contains(./@xlink:href, 'youtu.be')">
<div class="media" data-doi="{$data-doi}">
<xsl:apply-templates select="." mode="youtube"/>
</div>
</xsl:when>
<xsl:otherwise>
<a href="{@xlink:href}">Video URL</a>
</xsl:otherwise>
Expand Down

0 comments on commit 6db2b7b

Please sign in to comment.