Changeset 710 for MDRepository


Ignore:
Timestamp:
09/20/10 15:44:56 (14 years ago)
Author:
ljo
Message:

cmd-model - some initial cleanup before new refactoring.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDRepository/trunk/xquery/cmd-model.xql

    r709 r710  
    2121      $cmd-index,
    2222    $format := request:get-parameter("format", $cmd-model:responseFormatXml),
    23     $collection := "/db/cmdi-mirror",
    2423    $collection-params := request:get-parameter("collection", $cmd-model:collectionRoot),
    25     $query-model-collection :=
    26     if (fn:empty($collection-params)) then fn:concat($collection, "/")
    27     else
    28       for $coll in $collection-params
    29       return
    30         if (starts-with($coll, "test-") or starts-with($coll, "clarin-")) then
    31           $coll
    32         else
    33           fn:concat($collection, "/", $coll),
    3424    $query-collections :=
    3525    if (matches($collection-params, "^root$") or $collection-params eq "") then
     
    4232        cmd-model:get-collections($query-collections, $format, $max-depth)
    4333      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)
    4535    else if ($operation eq $cmd-model:searchRetrieve) then
    4636      let $cql-query := request:get-parameter("query", "MDGroup/Actors/Actor"),
Note: See TracChangeset for help on using the changeset viewer.