more rights flexibility
[librarian.git] / librarian / xslt / book2html.xslt
index 682ed9b..441f641 100755 (executable)
@@ -15,7 +15,7 @@
         <xsl:when test="@full-page">
             <html>
             <head>
-                <title>Książka z serwisu WolneLektury.pl</title>
+                <title><xsl:apply-templates mode="inline" select="//nazwa_utworu" /></title>
                 <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
             </head>
             <style>
@@ -45,6 +45,7 @@
 
                 img {
                     border: none;
+                    max-width: 100%;
                 }
 
 
                         <a href="{concat('#anchor-', generate-id(.))}" class="annotation">[<xsl:number value="count(preceding::*[self::pa or self::pe or self::pr or self::pt]) + 1" />]</a>
                         <xsl:choose>
                             <xsl:when test="count(akap|akap_cd|strofa) = 0">
-                                <p><xsl:apply-templates select="text()|*" mode="inline" /></p>
+                                <p><xsl:apply-templates select="text()|*" mode="inline" />
+                                <xsl:if test="name()='pa'"> [przypis autorski]</xsl:if>
+                                </p>
                             </xsl:when>
                             <xsl:otherwise>
                                 <xsl:apply-templates select="text()|*" mode="inline" />
     <hr class="spacer-line" />
 </xsl:template>
 
+<xsl:template match="ilustr">
+    <div xmlns="http://www.w3.org/1999/xhtml" class="ilustr">
+      <img xmlns="http://www.w3.org/1999/xhtml" alt="ilustracja">
+        <xsl:attribute name="src">
+          <xsl:value-of select="@src" />
+        </xsl:attribute>
+        <xsl:attribute name="alt">
+          <xsl:apply-templates mode="inline" />
+        </xsl:attribute>
+        <xsl:attribute name="title">
+          <xsl:apply-templates mode="inline" />
+        </xsl:attribute>
+      </img>
+    </div>
+</xsl:template>
+
 
 <!-- ================ -->
 <!-- = SPECIAL TAGS = -->