as_person, salias='editor', multiple=True, default=[]),
Field( DCNS('contributor.technical_editor'), 'technical_editors',
as_person, salias='technical_editor', multiple=True, default=[]),
+ Field( DCNS('contributor.funding'), 'funders',
+ salias='funder', multiple=True, default=[]),
Field( DCNS('date'), 'created_at', as_date),
Field( DCNS('date.pd'), 'released_to_public_domain_at', as_date, required=False),
# add editors info
document.edoc.getroot().set('editors', u', '.join(sorted(
editor.readable() for editor in document.editors())))
+ if document.book_info.funders:
+ document.edoc.getroot().set('funders', u', '.join(
+ document.book_info.funders))
opf = xslt(document.book_info.to_etree(), get_resource('epub/xsltContent.xsl'))
manifest = opf.find('.//' + OPFNS('manifest'))
margin-right: 2em;
}
-p.minor {
+p.minor-info {
+ text-align: center;
+ margin-bottom: 1em;
font-size: 0.75em;
}
p.footer {
<xsl:call-template name="editors" />
+ <xsl:call-template name="funders" />
+
<xsl:if test="@data-cover-by">
<p class="info">Okładka na podstawie:
<xsl:choose>
</xsl:if>
<p class="info"> </p>
- <p class="minor info">
+ <p class="minor-info">
Plik wygenerowany dnia <span id="file_date"><xsl:value-of select="substring(date:date(), 1, 10)" /></span>.
</p>
</xsl:if>
</xsl:template>
+ <xsl:template name="funders">
+ <xsl:if test="@funders">
+ <p class="minor-info">Publikację ufundowali i ufundowały:
+ <xsl:value-of select="@funders" />.</p>
+ </xsl:if>
+ </xsl:template>
+
<xsl:template match="text()" mode="person">
<xsl:value-of select="wl:person_name(.)" />
</xsl:template>
# add editors info
root.set('editors', u', '.join(sorted(
editor.readable() for editor in document.editors())))
+ if document.book_info.funders:
+ root.set('funders', u', '.join(document.book_info.funders))
# hack the tree
move_motifs_inside(document.edoc)
\editors
+ \ifdefined\funders
+ \vspace{.6em}
+ \funders
+ \fi
+
\ifdefined\coverby
\vspace{.6em}
\coverby
</xsl:choose>
}
</xsl:if>
- \def\editors{<xsl:call-template name="editors" />}
+ \def\editors{<TeXML escape="1"><xsl:call-template name="editors" /></TeXML>}
+ <xsl:if test="@funders">
+ \def\funders{Publikację ufundowali i ufundowały:
+ <TeXML escape="1"><xsl:value-of select="@funders" /></TeXML>.}
+ </xsl:if>
</TeXML>
<cmd name="editorialsection" />