Skip to content
Snippets Groups Projects
Commit 3463e86c authored by Peter Stadler's avatar Peter Stadler
Browse files

fix function parameter data types

since the return value of `eutil:getDoc#1` in https://github.com/Edirom/Edirom-Online/blob/babd1c6076ba58214b85a9891c3c2215d9d1c9d6/add/data/xql/getLinkTarget.xql#L278 might be the empty sequence this should be reflected in the function signatures that consume this $doc variable.
parent a40e67f7
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ declare variable $uri := request:get-parameter('uri', '');
(:~
: Returns a view for an edirom object
:)
declare function local:getView($type as xs:string, $docUri as xs:string, $doc as node()+) as map(*)? {
declare function local:getView($type as xs:string, $docUri as xs:string, $doc as document-node()?) as map(*)? {
let $baseMap := map {
'type': substring-after($type, '_'),
'uri':if ($type = ('mei_textView', 'desc_xmlView')) then
......@@ -124,7 +124,7 @@ declare function local:getView($type as xs:string, $docUri as xs:string, $doc as
(:~
: Returns the views for an edirom object
:)
declare function local:getViews($type as xs:string, $docUri as xs:string, $doc as node()+) as map(*)* {
declare function local:getViews($type as xs:string, $docUri as xs:string, $doc as document-node()?) as map(*)* {
let $views := (
(:'desc_summaryView',:)
......@@ -154,7 +154,7 @@ declare function local:getViews($type as xs:string, $docUri as xs:string, $doc a
(:~
: Returns the window title for an edirom-object
:)
declare function local:getWindowTitle($doc as node(), $type as xs:string) as xs:string {
declare function local:getWindowTitle($doc as document-node()?, $type as xs:string) as xs:string {
(: Work :)
if ($type = 'work') then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment