An error has occurred

An error has been generated by the application.

exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: functx:contains-case-insensitive($arg as xs:string?, $substring as xs:string) xs:boolean. Expected cardinality: zero or one, got 2. [at line 1885, column 47, source: /db/apps/famineanddearth/modules/app.xql]
In function:
	functx:contains-case-insensitive(xs:string?, xs:string) [1885:13:/var/lib/eXist/data/expathrepo/functx-1.0.1/functx/functx.xq]
	app:displayselection(node(), map(*), xs:string?) [-1:-1:/db/apps/famineanddearth/modules/app.xql]
	templates:process-output(element(), map(*), item()*, element(function)) [211:9:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:call(item(), element(), map(*)) [145:37:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [148:81:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [148:81:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [148:81:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [148:81:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [428:17:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process-output(element(), map(*), item()*) [230:9:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process-output(element(), map(*), item()*, element(function)) [211:9:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:call(item(), element(), map(*)) [137:36:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [133:51:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:process(node()*, map(*)) [90:9:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]
	templates:apply(node()+, function(*), map(*)?, map(*)?) [51:5:/var/lib/eXist/data/expathrepo/shared-0.9.1/content/templates.xql]

For more information about the project, contact Dr Ayesha Mukherjee at the University of Exeter.

Acknowledgements