*Caution: This is really just a proof of concept for adding support for the HTML5 video tag to xmlui. It's based on the Classic XMLUI theme, so some things may be different for your application.
<xsl:template match="dim:dim" mode="itemSummaryView-DIM"> |
<table class="ds-includeSet-table"> |
<xsl:choose> <xsl:when test="ancestor::mets:METS/mets:fileSec/mets:fileGrp[@USE='CONTENT']/mets:file[@MIMETYPE='video/ogg']"> <tr class="ds-table-row odd"> <td><span class="bold"><i18n:text>xmlui.dri2xhtml.METS-1.0.item-preview</i18n:text>:</span></td> <td> <xsl:attribute name="href"><xsl:value-of select="@OBJID"/></xsl:attribute> <video> <xsl:attribute name="src"> <xsl:value-of select="ancestor::mets:METS/mets:fileSec/mets:fileGrp[@USE='CONTENT']/mets:file/mets:FLocat[@LOCTYPE='URL']/@xlink:href"/> </xsl:attribute> <xsl:attribute name="width"> <xsl:value-of select="320" /> </xsl:attribute> <xsl:attribute name="height"> <xsl:value-of select="240" /> </xsl:attribute> <xsl:attribute name="controls" /> <xsl:attribute name="autobuffer" /> </video> </td> </tr> </xsl:when> <xsl:otherwise> </xsl:otherwise> </xsl:choose> |