Changeset 710 for MDRepository
- Timestamp:
- 09/20/10 15:44:56 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MDRepository/trunk/xquery/cmd-model.xql
r709 r710 21 21 $cmd-index, 22 22 $format := request:get-parameter("format", $cmd-model:responseFormatXml), 23 $collection := "/db/cmdi-mirror",24 23 $collection-params := request:get-parameter("collection", $cmd-model:collectionRoot), 25 $query-model-collection :=26 if (fn:empty($collection-params)) then fn:concat($collection, "/")27 else28 for $coll in $collection-params29 return30 if (starts-with($coll, "test-") or starts-with($coll, "clarin-")) then31 $coll32 else33 fn:concat($collection, "/", $coll),34 24 $query-collections := 35 25 if (matches($collection-params, "^root$") or $collection-params eq "") then … … 42 32 cmd-model:get-collections($query-collections, $format, $max-depth) 43 33 else if ($operation eq $cmd-model:queryModel) then 44 cmd-model:query-model($cmd-index-path, $query- model-collection, $format, $max-depth)34 cmd-model:query-model($cmd-index-path, $query-collections, $format, $max-depth) 45 35 else if ($operation eq $cmd-model:searchRetrieve) then 46 36 let $cql-query := request:get-parameter("query", "MDGroup/Actors/Actor"),
Note: See TracChangeset
for help on using the changeset viewer.