search results: error after click on kwic search term if variable $config:search-default is set to "tei:body"
- a click on the search term in the kwic view of the search results works fine when $config:search-default is set to "tei:div"
- when $config:search-default is set to "tei:body", something is going wrong:
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 231, column 46, source: /db/apps/test1/modules/lib/pages.xql] In function: pages:get-content(map, element()) [231:46:/db/apps/test1/modules/lib/pages.xql] (...)