Allow using remote cache for image downloading. Also, DRY in book2* scripts
[librarian.git] / librarian / fb2 / fb2.xslt
index 915bad4..2a07e35 100644 (file)
@@ -7,10 +7,10 @@
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:wl="http://wolnelektury.pl/functions"
 -->
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:wl="http://wolnelektury.pl/functions"
-       xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
        xmlns:l="http://www.w3.org/1999/xlink">
 
        xmlns="http://www.gribuser.ru/xml/fictionbook/2.0"
        xmlns:l="http://www.w3.org/1999/xlink">
 
+       <xsl:include href="description.xslt"/>
        <xsl:include href="footnotes.xslt"/>
        <xsl:include href="inline.xslt"/>
        <xsl:include href="paragraphs.xslt"/>
        <xsl:include href="footnotes.xslt"/>
        <xsl:include href="inline.xslt"/>
        <xsl:include href="paragraphs.xslt"/>
                </FictionBook>
        </xsl:template>
 
                </FictionBook>
        </xsl:template>
 
-       <xsl:template match="dc:*" mode="outer">
-       </xsl:template>
-
        <!-- we can't handle lyrics nicely yet -->
        <!-- we can't handle lyrics nicely yet -->
-       <xsl:template match="powiesc|opowiadanie" mode="outer">
+       <xsl:template match="powiesc|opowiadanie|liryka_l|liryka_lp" mode="outer">
                <body> <!-- main body for main book flow -->
                        <xsl:if test="autor_utworu or nazwa_utworu">
                                <title>
                <body> <!-- main body for main book flow -->
                        <xsl:if test="autor_utworu or nazwa_utworu">
                                <title>
                                </title>
                        </xsl:if>
 
                                </title>
                        </xsl:if>
 
+                       <epigraph>
+                               <p>
+                                       Utwór opracowany został w&#160;ramach projektu
+                                               <a l:href="http://www.wolnelektury.pl/">Wolne Lektury</a>
+                                       przez <a l:href="http://www.nowoczesnapolska.org.pl/">fundację
+                                               Nowoczesna Polska</a>.
+                               </p>
+                       </epigraph>
+
                        <xsl:variable name="sections" select="count(naglowek_rozdzial)"/>
                        <section>
                                <xsl:choose>
                        <xsl:variable name="sections" select="count(naglowek_rozdzial)"/>
                        <section>
                                <xsl:choose>