Skip to content

Commit

Permalink
Update corpus_utterances_json.xslt
Browse files Browse the repository at this point in the history
u.audio should only populated with url when the audio is publicly available, which is indicated by tei:media[@type="distributionFile"][1]/@url, ':'),
  • Loading branch information
dasch124 authored Jan 10, 2025
1 parent 0bed899 commit 41a7613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xslt/corpus_utterances_json.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
<audio>
<xsl:if test="./tei:media[@mimeType='audio/mp3']">
<xsl:value-of select="replace(
replace(./tei:media[@mimeType='audio/mp3'][1]/@url, 'assets:', ''),
substring-after(./tei:media[@type="distributionFile"][1]/@url, ':'),
$assetsBaseURIpattern,
$assetsBaseURIto)" />
</xsl:if>
Expand Down

0 comments on commit 41a7613

Please sign in to comment.