following search result links for documents with just one pb generates an error
For a document like the one attached searching for a word (e.g. cognovissemus) and following the search result KWIC link results in an error. It only manifests itself if a document has just one <pb>
element.
<exception>
<path>/db/apps/tei-publisher/modules/lib/components.xql</path>
<message>
exerr:ERROR XPTY0004: The actual cardinality for parameter 2 does not match the cardinality declared in the function's signature: pages:get-content($config as map(*), $div as element()) item()*. Expected cardinality: exactly one, got 0. [at line 116, column 49, source: /db/apps/tei-publisher/modules/lib/components.xql] In function: pages:get-content(map(*), element()) [115:40:/db/apps/tei-publisher/modules/lib/pages.xql]
</message>
</exception>