adjust frame width
[librarian.git] / librarian / epub / xsltLast.xsl
index 67bea8e..e29c5f4 100644 (file)
@@ -8,6 +8,7 @@
   <xsl:output method="html" version="1.0" encoding="utf-8" />
   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
   <xsl:output method="html" version="1.0" encoding="utf-8" />
   <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" />
   <xsl:output doctype-public="-//W3C//DTD XHTML 1.1//EN" />
+  <xsl:param name="outputtype"/>
 
   <xsl:template match="utwor">
     <html>
 
   <xsl:template match="utwor">
     <html>
@@ -23,7 +24,7 @@
           <p class="info">
               <xsl:choose>
                   <xsl:when test="//dc:rights.license">
           <p class="info">
               <xsl:choose>
                   <xsl:when test="//dc:rights.license">
-                      Ten utwór jest udostepniony na licencji
+                      Ten utwór jest udostępniony na licencji
                       <a>
                           <xsl:attribute name="href">
                               <xsl:value-of select="//dc:rights.license" />
                       <a>
                           <xsl:attribute name="href">
                               <xsl:value-of select="//dc:rights.license" />
@@ -57,7 +58,7 @@
             <p class="info">Tekst opracowany na podstawie: <xsl:value-of select="//dc:source" /></p>
           </xsl:if>
 
             <p class="info">Tekst opracowany na podstawie: <xsl:value-of select="//dc:source" /></p>
           </xsl:if>
 
-          <xsl:if test=".//dc:publisher">
+          <xsl:if test="//dc:publisher">
             <p class="info">
               Wydawca:
               <xsl:for-each select="//dc:publisher/text()">
             <p class="info">
               Wydawca:
               <xsl:for-each select="//dc:publisher/text()">
             </p>
           </xsl:if>
 
             </p>
           </xsl:if>
 
+          <xsl:variable name="isbnId" select="concat($outputtype, '-id')"/>
+          <xsl:if test=".//meta[@id=$isbnId]">
+            <xsl:variable name="isbn" select=".//meta[@id=$isbnId]"/>
+            <p class="info">ISBN <xsl:value-of select="substring-after($isbn, 'ISBN-')"/></p>
+          </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>.
           <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>.
 
   <xsl:template name="funders">
     <xsl:if test="@funders">
 
   <xsl:template name="funders">
     <xsl:if test="@funders">
-        <p class="minor-info">Publikację ufundowali i ufundowały:
+        <p class="minor-info">Publikację wsparli i wsparły:
             <xsl:value-of select="@funders" />.</p>
     </xsl:if>
   </xsl:template>
             <xsl:value-of select="@funders" />.</p>
     </xsl:if>
   </xsl:template>