Skip to content

Commit

Permalink
tags and links
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Jun 14, 2024
1 parent 25ecfbb commit 45ef235
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file modified alix-cli/lib/alix-0.9.1-SNAPSHOT.jar
Binary file not shown.
13 changes: 13 additions & 0 deletions src/main/resources/com/github/oeuvres/alix/xml/alix.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
select="/*/tei:teiHeader/tei:encodingDesc/tei:refsDecl/tei:citeStructure/@use = '@xml:id'"/>
<!-- Name of file, provided by caller -->
<xsl:param name="filename"/>
<!-- For links in TOC -->
<xsl:variable name="split" select="true()"/>
<!-- clean url -->
<xsl:variable name="_ext"/>
<!-- Get metas as a global var to insert fields in all chapters -->
<xsl:variable name="info">
<alix:field name="title" type="category" value="{normalize-space($doctitle)}"/>
Expand All @@ -51,6 +55,15 @@
<xsl:copy-of select="$byline"/>
</alix:field>
</xsl:if>
<xsl:for-each select="/*/tei:teiHeader/tei:profileDesc/tei:textClass/tei:keywords//tei:term">
<xsl:variable name="value">
<xsl:apply-templates select="." mode="key"/>
</xsl:variable>
<alix:field name="term" type="facet" value="{normalize-space($value)}"/>
<xsl:if test="@type">
<alix:field name="{@type}" type="facet" value="{normalize-space($value)}"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<!-- an html bibliographic line -->
<xsl:variable name="bibl-book">
Expand Down

0 comments on commit 45ef235

Please sign in to comment.