X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/30aeb8412da3bb4d9dfc7f659f94fd64f5e26876..245ee64cc85bfc2c1a27c30139d9e7c1268168d9:/librarian/fb2/footnotes.xslt?ds=inline

diff --git a/librarian/fb2/footnotes.xslt b/librarian/fb2/footnotes.xslt
index 37f467f..2fe3d4e 100644
--- a/librarian/fb2/footnotes.xslt
+++ b/librarian/fb2/footnotes.xslt
@@ -12,21 +12,33 @@
 	xmlns:l="http://www.w3.org/1999/xlink">
 
 	<!-- footnote body mode -->
-	<xsl:template match="pe" mode="footnotes">
+	<xsl:template match="pa|pe|pr|pt" mode="footnotes">
 		<!-- we number them absolutely -->
-		<xsl:variable name="n" select="count(preceding::pe) + 1"/>
+		<xsl:variable name="n" select="count(preceding::pa) + count(preceding::pe) + count(preceding::pr) + count(preceding::pt) + 1"/>
 
 		<xsl:element name="section">
 			<xsl:attribute name="id">fn<xsl:value-of select="$n"/></xsl:attribute>
 
-			<p><xsl:apply-templates mode="inline"/></p>
+			<p><xsl:apply-templates mode="inline"/>
+                <xsl:if test="local-name() = 'pa'">
+                    <xsl:text> [przypis autorski]</xsl:text>
+                </xsl:if>
+                <xsl:if test="local-name() = 'pt'">
+                    <xsl:text> [przypis tłumacza]</xsl:text>
+                </xsl:if>
+                <xsl:if test="local-name() = 'pr'">
+                    <xsl:text> [przypis redakcyjny]</xsl:text>
+                </xsl:if>
+                <xsl:if test="local-name() = 'pe'">
+                    <xsl:text> [przypis edytorski]</xsl:text>
+                </xsl:if></p>
 		</xsl:element>
 	</xsl:template>
 	<xsl:template match="text()" mode="footnotes"/>
 
 	<!-- footnote links -->
-	<xsl:template match="pe" mode="inline">
-		<xsl:variable name="n" select="count(preceding::pe) + 1"/>
+	<xsl:template match="pa|pe|pr|pt" mode="inline">
+		<xsl:variable name="n" select="count(preceding::pa) + count(preceding::pe) + count(preceding::pr) + count(preceding::pt) + 1"/>
 		<xsl:element name="a">
 			<xsl:attribute name="type">note</xsl:attribute>
 			<xsl:attribute name="l:href">#fn<xsl:value-of select="$n"/></xsl:attribute>