fnp
/
librarian.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix isbn for txt
[librarian.git]
/
librarian
/
xslt
/
book2txt.xslt
diff --git
a/librarian/xslt/book2txt.xslt
b/librarian/xslt/book2txt.xslt
index
a578492
..
89c9dfd
100644
(file)
--- a/
librarian/xslt/book2txt.xslt
+++ b/
librarian/xslt/book2txt.xslt
@@
-21,6
+21,7
@@
<xsl:if test="not (../@raw-text) and nazwa_utworu">
<xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu|podtytul" mode="header" />
<xsl:call-template name="translators" />
<xsl:if test="not (../@raw-text) and nazwa_utworu">
<xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu|podtytul" mode="header" />
<xsl:call-template name="translators" />
+ <xsl:call-template name="isbn" />
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:text>
</xsl:text>
</xsl:if>
@@
-233,7
+234,7
@@
<xsl:apply-templates mode="inline" />
</xsl:template>
<xsl:apply-templates mode="inline" />
</xsl:template>
-<xsl:template match="tabela">
+<xsl:template match="tabela
|tabelka
">
<xsl:text>
</xsl:text>
<xsl:text>
</xsl:text>
@@
-334,6
+335,14
@@
</xsl:if>
</xsl:template>
</xsl:if>
</xsl:template>
+<xsl:template name="isbn">
+ <xsl:if test="//meta[@id='txt-id']">
+ <xsl:variable name="isbn" select="//meta[@id='txt-id']"/>
+ <text>
+ISBN </text><xsl:value-of select="substring-after($isbn, 'ISBN-')"/>
+ </xsl:if>
+</xsl:template>
+
<!-- ================ -->
<!-- = IGNORED TAGS = -->
<!-- ================ -->
<!-- = IGNORED TAGS = -->
@@
-342,6
+351,7
@@
<xsl:template match="extra|uwaga" mode="inline" />
<xsl:template match="nota_red" />
<xsl:template match="extra|uwaga" mode="inline" />
<xsl:template match="nota_red" />
+<xsl:template match="abstrakt" />
<!-- ======== -->
<!-- = TEXT = -->
<!-- ======== -->
<!-- = TEXT = -->