Commit ec9143c0 authored by barth23's avatar barth23
Browse files

remove renaming of collection-template.xconf; comment out reindex

parent 9619740e
......@@ -81,16 +81,12 @@ as xs:string {
let $project-name := tokenize($target, "/")[last()]
let $log := util:log-system-out("installing " || $project-name)
let $data-root := "/db/data/" || $project-name;
let $data-root := "/db/data/" || $project-name
let $fileSeparator := util:system-property("file.separator")
let $system-path := system:get-exist-home() || $fileSeparator
let $use-template :=
if(doc-available($data-root || "/textgrid/data/collection-template.xconf"))
then xmldb:rename($data-root || "/textgrid/data", "collection-template.xconf", "collection.xconf")
else true()
let $data-xconf := $data-root || "/textgrid/data/collection.xconf"
let $store-xconf := xmldb:store("/db/system/config" || $data-root || "/textgrid/data", "collection.xconf", doc( $data-xconf ))
let $reindex := xmldb:reindex($data-root || "/textgrid/data")
(: REINDEX SHOULD BE ACTIVATED IF DATA IS DIRECTLY PUBLISHED FROM THE REPOSITORY :)
(: let $reindex := xmldb:reindex($data-root || "/textgrid/data") :)
(: we have to test for writable path :)
let $path := $system-path
......
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