X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/e93fbf2edc7fa6905dbcca3b2c6f6c76f306d71a..7feccce4659f48b0f9a131d8de0d983075a33378:/librarian/epub/xsltLast.xsl?ds=inline diff --git a/librarian/epub/xsltLast.xsl b/librarian/epub/xsltLast.xsl index dd44a30..5288443 100644 --- a/librarian/epub/xsltLast.xsl +++ b/librarian/epub/xsltLast.xsl @@ -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" /> @@ -63,6 +63,31 @@ <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> + + <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"> </p> <p class="minor info"> Plik wygenerowany dnia <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>. @@ -78,22 +103,13 @@ </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>Opracowanie redakcyjne i przypisy: </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:value-of select="@editors" />.</p> </xsl:if> </xsl:template> - <xsl:template match="dc:contributor.editor|dc:contributor.technical_editor"> - <br /><xsl:apply-templates mode='person' /> - </xsl:template> - <xsl:template match="text()" mode="person"> <xsl:value-of select="wl:person_name(.)" /> </xsl:template>