Solved one rendering bug
Posted by mholmes on 20 Mar 2007 in Activity log
Addressed this bug: "In the Farfan article, there are reference items which have no publisher or publication place, but because they have a publication date, the <imprint>
tag is not empty, so a period is triggered (see line 284 of tei_scancan_xhtml_bibliography.xsl for instance). However, the date has been shifted to after the author, so there's no need for the period. Figure this one out. Perhaps a test on whether the date has been shifted would be appropriate."
I fixed the problem by elaborating the test which attempts to determine if there is any usable content in the <imprint>
tag, as follows:
<xsl:if test="(string-length($TheParent/imprint) > 0) and ((string-length($TheParent/imprint) != string-length($TheParent/imprint/date)) and ($PutDateAfterAuthor != 'true'))"><xsl:text>. </xsl:text></xsl:if>
This change appears in both the PDF and XHTML rendering code.