Skip to content

Commit

Permalink
include expression/extent in filter_put expression template, include …
Browse files Browse the repository at this point in the history
…perfDuration in HTML output; fixes #158

* include perfDuration ("Duration") in html output

* apply templates for extent in expression template; otherwise extent will not be saved

* display perfDuration in component expression html

---------

Co-authored-by: Peter Provaznik <[email protected]>
  • Loading branch information
peterprovaznik and Peter Provaznik authored Nov 28, 2023
1 parent da27438 commit 8d88658
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions filter/xsl/filter_put.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
<xsl:apply-templates select="m:langUsage"/>
<xsl:apply-templates select="m:perfMedium"/>
<xsl:apply-templates select="m:perfDuration"/>
<xsl:apply-templates select="m:extent"/>
<xsl:apply-templates select="m:contents"/>
<xsl:apply-templates select="m:context"/>
<xsl:apply-templates select="m:biblList"/>
Expand Down
13 changes: 13 additions & 0 deletions style/mei_to_html.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,7 @@
<xsl:apply-templates select="m:meter"/>
<xsl:apply-templates select="m:key[normalize-space(concat(@pname,@accid,@mode,string(.)))]"/>
<xsl:apply-templates select="m:extent"/>
<xsl:apply-templates select="m:perfDuration"/>
<xsl:apply-templates select="m:incip"/>
<!-- external relation links -->
<xsl:apply-templates select="m:relationList[m:relation[@target!='']]"/>
Expand Down Expand Up @@ -850,6 +851,7 @@
<xsl:apply-templates select="m:meter"/>
<xsl:apply-templates select="m:key[normalize-space(concat(@pname,@accid,@mode,string(.)))]"/>
<xsl:apply-templates select="m:extent"/>
<xsl:apply-templates select="m:perfDuration"/>
<xsl:apply-templates select="m:incip"/>
<xsl:apply-templates select="m:contributor[m:persName]"/>
<xsl:apply-templates select="m:perfMedium[m:perfResList[m:perfRes or m:perfResList] or m:castList/m:castItem]" mode="subLevel"/>
Expand Down Expand Up @@ -1202,6 +1204,17 @@
</xsl:if>.</p>
</xsl:template>

<xsl:template match="m:expression/m:perfDuration[text()]">
<p>
<span class="label">
<xsl:value-of select="$l/duration"/>
<xsl:text>: </xsl:text>
</span>
<xsl:text> </xsl:text>
<xsl:apply-templates/>
<xsl:text>.</xsl:text>
</p>
</xsl:template>

<!-- colophon -->
<xsl:template match="*" mode="colophon">
Expand Down

0 comments on commit 8d88658

Please sign in to comment.