Edirom / MerMEId

Metadata Editor and Repository for MEI Data

Home Page:https://mermeid.edirom.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

two author entries for genre "web site" break the HTML rendering

peterstadler opened this issue · comments

as reported by Claudio Bacciagaluppi.

Error is confirmed:

<exception>
  <path>/db/apps/mermeid/modules/present.xq</path>
  <message>
    exerr:ERROR Exception while transforming node: A sequence of more than one item is not allowed as the first argument of fn:normalize-space() ("Peter van Tour", "Paolo Sullo") [at line 43, column 1]
  </message>
</exception>

This originates from

MerMEId/style/mei_to_html.xsl

Lines 2564 to 2577 in 043358d

<xsl:when test="m:genre='web site'">
<!-- show entry only if a title or URI is stated -->
<xsl:if test="normalize-space(concat(m:title,m:ptr))">
<xsl:if test="normalize-space(m:author)!=''">
<xsl:apply-templates select="m:author"/>: </xsl:if>
<xsl:apply-templates select="m:title[text()]" mode="bibl_title">
<xsl:with-param name="quotes" select="'false'"/>
<xsl:with-param name="italic" select="'true'"/>
</xsl:apply-templates>
<xsl:if test="normalize-space(m:imprint/m:date) and normalize-space(m:title)">. </xsl:if>
<xsl:apply-templates select="m:imprint/m:date"/>
<xsl:text> </xsl:text>
</xsl:if>
</xsl:when>
and is likely simple to fix but there are other occurrences that I want to fix in passing. Will file a PR asap

Heads up: there's no check for empty authors anymore because I think this is a problem in the data and should be made transparent to the human editor.