%(license_description)s.%(source)s%(publisher)s
-%(description)s%(contributors)s%(funders)s
+%(description)s%(contributors)s%(funders)s%(isbn)s
"""
if funders:
funders = u"\n\nPublikację wsparli i wsparły: %s." % funders
publisher = '\n\nWydawca: ' + ', '.join(parsed_dc.publisher)
+ isbn_element = document.edoc.find("//meta[@id='txt-id']")
+ if isbn_element is not None:
+ isbn = isbn_element.text.replace('ISBN-', '\n\nISBN ')
+ else:
+ isbn = ''
else:
description = 'Publikacja zrealizowana w ramach projektu Wolne Lektury (http://wolnelektury.pl).'
url = '*' * 10
contributors = ""
funders = ""
publisher = ""
+ isbn = ""
result = (TEMPLATE % {
'description': description,
'url': url,
'contributors': contributors,
'funders': funders,
'publisher': publisher,
+ 'isbn': isbn,
}).encode('utf-8')
else:
result = unicode(result).encode('utf-8')
<xsl:if test="not (../@raw-text) and nazwa_utworu">
<xsl:apply-templates select="autor_utworu|dzielo_nadrzedne|nazwa_utworu|podtytul" mode="header" />
<xsl:call-template name="translators" />
+ <xsl:call-template name="isbn" />
<xsl:text>
</xsl:text>
</xsl:if>
</xsl:if>
</xsl:template>
+<xsl:template name="isbn">
+ <xsl:if test="//meta[@id='txt-id']">
+ <xsl:variable name="isbn" select="//meta[@id='txt-id']"/>
+ <text>
+ISBN </text><xsl:value-of select="substring-after($isbn, 'ISBN-')"/>
+ </xsl:if>
+</xsl:template>
+
<!-- ================ -->
<!-- = IGNORED TAGS = -->