Commit 1adf235f authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

catch needs a return value

parent cad55d01
......@@ -9,7 +9,7 @@ module namespace fconfig="https://fontane-nb.dariah.eu/fontane-config";
import module namespace config="http://exist-db.org/xquery/apps/config-params" at "config.xql";
declare variable $fconfig:project :=
let $value:= try { request:get-url() => substring-after("SADE/") => substring-before("/") } catch * {}
let $value:= try { request:get-url() => substring-after("SADE/") => substring-before("/") } catch * { "" }
return if($value="") then "textgrid" else $value;
declare variable $fconfig:configDoc := doc( $config:projects-dir || $fconfig:project || "/config.xml" );
declare variable $fconfig:configMap := map:new(
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment