Changeset 619 for MDRepository


Ignore:
Timestamp:
08/12/10 12:03:48 (14 years ago)
Author:
ljo
Message:

Added missing maxdepth on cached collection values.

File:
1 edited

Legend:

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

    r618 r619  
    9191          <c n="{$parent}" cnt="{sum($child-results/@cnt)}">{$child-results}</c>
    9292      else
    93       <c n="{$parent}" cnt="{count($collection//CMD)}"></c>
     93      <c n="{$parent}" cnt="{count(collection(concat(util:collection-name($collection/CMD[1]/root()), "/../"))//CMD)}"></c>
    9494};
    9595
     
    254254    ($cmd-model:commonFreqsPath, cmd-model:make-compound-doc-name($collections, "collection", $max-depth))
    255255  else
    256     ($collections, $cmd-model:collectionDocName),
     256    ($collections, concat($cmd-model:collectionDocName, xs:string($max-depth))),
    257257 $dummy :=   
    258258      if (cmd-model:is-doc-available($names[1], $names[2])) then
Note: See TracChangeset for help on using the changeset viewer.