Add series index to calibredb's stanza output. Fixes #1502 (Add more metadata to calibredb's Stanza output)

This commit is contained in:
Kovid Goyal 2009-01-06 09:35:51 -08:00
parent 4b6f8abf70
commit 50645efe8e

View File

@ -85,7 +85,9 @@ STANZA_TEMPLATE='''\
<div xmlns="http://www.w3.org/1999/xhtml">
<py:for each="f in ('authors', 'publisher', 'rating', 'tags', 'series', 'isbn')">
<py:if test="record[f]">
${f.capitalize()}:${unicode(', '.join(record[f]) if f=='tags' else record[f])}<br/>
${f.capitalize()}:${unicode(', '.join(record[f]) if f=='tags' else record[f])}
<py:if test="f =='series'"># ${str(record['series_index'])}</py:if>
<br/>
</py:if>
</py:for>
<py:if test="record['comments']">