pulibrary / BlueMountain

Project to digitize avant-garde periodicals
12 stars 6 forks source link

urn:PUL:bluemountain:bmtnabg causes error #375

Closed cwulfman closed 7 years ago

cwulfman commented 7 years ago

Dear team, again an error occurs when this page is accessed. http://bluemountain.princeton.edu/title.html?titleURN=urn:PUL:bluemountain:bmtnabg Please correct the problem. Thank you. Best regards Peter M. Sporer An error has occurred An error has been generated by the application.

exerr:ERROR The actual return type does not match the sequence type declared in the function's signature: title:title-doc(xs:string) element(). Expected cardinality: exactly one, got 0. [at line 16, column 33, source: /db/apps/bluemountain/modules/title.xqm] In function: title:title-doc(xs:string) [32:26:/db/apps/bluemountain/modules/title.xqm] title:selected-title(node(), map, xs:string?) [40:9:/db/apps/bluemountain/modules/title.xqm] templates:call-with-args(function, function, element(), map) [208:13:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:call(item(), element(), map) [135:36:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [146:81:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [146:81:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [146:81:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [462:17:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:surround(node(), map, xs:string, xs:string?, xs:string?, xs:string?) [40:9:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:call-with-args(function, function, element(), map) [208:13:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:call(item(), element(), map) [135:36:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [131:51:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:process(node(), map) [88:9:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql] templates:apply(node()+, function, map?, map?) [51:5:/opt/local/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.0/content/templates.xql]

cwulfman commented 7 years ago

http://bluemountain.princeton.edu/exist/apps/bluemountain/title.html?titleURN=bmtnabg is the proper url (User is using an outdated url).