Merge changes from master to Aigrain publishing code - that will be used for new...
[librarian.git] / librarian / epub / xsltLast.xsl
index 09dbc15..f6802d8 100644 (file)
@@ -15,7 +15,7 @@
         <link rel="stylesheet" href="style.css" type="text/css" />
         <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
         <title>
-          <xsl:text>Editorial page</xsl:text>
+          <xsl:text>Strona redakcyjna</xsl:text>
         </title>
       </head>
       <body>
           <p class="info">
               <xsl:choose>
                   <xsl:when test="//dc:rights.license">
-                      This book is available under the terms of
+                      Ten utwór jest udostepniony na licencji
                       <a>
                           <xsl:attribute name="href">
                               <xsl:value-of select="//dc:rights.license" />
                           </xsl:attribute>
                           <xsl:value-of select="//dc:rights" />
-                      </a>.
+                      </a>
                   </xsl:when>
                   <xsl:otherwise>
                     Ten utwór nie jest chroniony prawem autorskim i znajduje się w domenie
               </xsl:choose>
           </p>
 
-          <p class="info">Published by <a href="http://nowoczesnapolska.org.pl">Modern Poland Foundation</a>, 2012.</p>
+          <p class="info">Źródło: <a>
+              <xsl:attribute name="href">
+                  <xsl:value-of select="//dc:identifier.url" />
+              </xsl:attribute>
+              <xsl:attribute name="title">
+                  <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>
+
+          <xsl:if test="//dc:source" >
+            <p class="info">Tekst opracowany na podstawie: <xsl:value-of select="//dc:source" /></p>
+          </xsl:if>
+
+          <xsl:if test="//dc:description" >
+            <p class="info"><xsl:value-of select="//dc:description" /></p>
+          </xsl:if>
 
           <xsl:call-template name="editors" />
 
           <xsl:if test="@data-cover-by">
-            <p class="info">Cover image: 
+            <p class="info">Okładka na podstawie: 
             <xsl:choose>
             <xsl:when test="@data-cover-source">
                 <a>
             </xsl:choose>
             </p>
           </xsl:if>
+
+          <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>
+
+          <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>.
+          </p>
+
         </div>
       </body>
     </html>
   </xsl:template>
 
   <xsl:template name="editors">
-    <xsl:if test="//dc:contributor.editor[text()]|//dc:contributor.technical_editor[text()]">
+    <xsl:if test="@editors">
         <p class="info">
-            <xsl:text>Technical editors: </xsl:text>
-            <xsl:for-each select="//dc:contributor.editor[text()]|//dc:contributor.technical_editor[text() and not(//dc:contributor.editor/text()=text())]">
-                <xsl:sort />
-                <xsl:if test="position() != 1">, </xsl:if>
-                <xsl:apply-templates mode="person" />
-            </xsl:for-each>.
-        </p>
+            <xsl:text>Opracowanie redakcyjne i przypisy: </xsl:text>
+            <xsl:value-of select="@editors" />.</p>
     </xsl:if>
   </xsl:template>