Window fails on local:getWindowTitle in getLinkTarget.xql
Created by: bwbohl
<?xml version="1.0" ?>
<exception>
<path>/db/apps/Edirom-Online/data/xql/getLinkTarget.xql</path>
<message>err:XPTY0004 checking function parameter 1 in call
string-join(untyped-value-check[xs:anyAtomicType,
(eutil:getLocalizedTitle($doc/descendant::mei:manifestation[1]/child::mei:titleStmt[1],
untyped-value-check[xs:string, $lang]),
$doc/descendant::mei:manifestation[1]/descendant::mei:identifier[lower-case(untyped-value-check[xs:string, attribute::{}type]) = "shelfmark"][1]
)], " | "): XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: eutil:getLocalizedTitle($node as node(), $lang as xs:string?) xs:string. Expected cardinality: exactly one, got 0. [at line 151, column 21, source: /db/apps/Edirom-Online/data/xql/getLinkTarget.xql]
In function:
eutil:getLocalizedTitle(node(), xs:string?) [151:21:/db/apps/Edirom-Online/data/xqm/util.xqm]
local:getWindowTitle(node()+, xs:string) [237:18:/db/apps/Edirom-Online/data/xql/getLinkTarget.xql]</message></exception>