last page not-wl version
[librarian.git] / librarian / epub / xsltLast.xsl
index dd44a30..4c66bb9 100644 (file)
@@ -9,7 +9,7 @@
   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
 
-  <xsl:template match="/">
+  <xsl:template match="utwor">
     <html>
       <head>
         <link rel="stylesheet" href="style.css" type="text/css" />
@@ -43,7 +43,8 @@
               </xsl:choose>
           </p>
 
-          <p class="info">Źródło: <a>
+          <xsl:if test="not(utwor/@not-wl)">
+            <p class="info">Źródło: <a>
               <xsl:attribute name="href">
                   <xsl:value-of select="//dc:identifier.url" />
               </xsl:attribute>
                   <xsl:value-of select="wl:person_name(//dc:creator/text())" />, <xsl:value-of select="//dc:title" />
               </xsl:attribute>
               <xsl:value-of select="//dc:identifier.url" />
-          </a></p>
+            </a></p>
+          </xsl:if>
+          
+          
 
           <xsl:if test="//dc:source" >
             <p class="info">Tekst opracowany na podstawie: <xsl:value-of select="//dc:source" /></p>
 
           <xsl:call-template name="editors" />
 
+          <xsl:if test="@data-cover-by">
+            <p class="info">Okładka na podstawie: 
+            <xsl:choose>
+            <xsl:when test="@data-cover-source">
+                <a>
+                <xsl:attribute name="href">
+                  <xsl:value-of select="@data-cover-source" />
+                </xsl:attribute>
+                <xsl:value-of select="@data-cover-by" />
+                </a>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:value-of select="@data-cover-by" />
+            </xsl:otherwise>
+            </xsl:choose>
+            </p>
+          </xsl:if>
+
+          <xsl:if test="not(utwor/@not-wl)">
+              <div class="info">
+              <img src="jedenprocent.png" alt="Logo 1%" />
+              <div>Przekaż 1% podatku na rozwój Wolnych Lektur.</div>
+              <div>Nazwa organizacji: Fundacja Nowoczesna Polska</div>
+              <div>KRS 0000070056</div>
+              </div>
+          </xsl:if>
+
           <p class="info">&#160;</p>
           <p class="minor info">
               Plik wygenerowany dnia <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>.