Changeset 703 for MDRepository


Ignore:
Timestamp:
09/17/10 08:09:57 (14 years ago)
Author:
ljo
Message:

Removed possiblity to query for path in getCollection.

File:
1 edited

Legend:

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

    r654 r703  
    2828      for $coll in $collection-params
    2929      return
    30         if (starts-with($coll, "test-")) then
     30        if (starts-with($coll, "test-") or starts-with($coll, "clarin-")) then
    3131          $coll
    3232        else
     
    3434    $query-collections :=
    3535    if (fn:empty($collection-params)) then
    36       $collection
     36      "root"
    3737    else
    38       for $coll in $collection-params
    39       return
    40         if (starts-with($coll, "test-")) then
    41           $coll
    42         else
    43           fn:concat($collection, "/", $coll),
     38      $collection-params,
    4439    $max-depth as xs:integer := xs:integer(request:get-parameter("maxdepth", 1))
    4540    return
Note: See TracChangeset for help on using the changeset viewer.