Changeset 959 for MDRepository


Ignore:
Timestamp:
12/03/10 14:57:20 (13 years ago)
Author:
vronk
Message:

minor in getCollections resource-count

File:
1 edited

Legend:

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

    r834 r959  
    252252:)
    253253declare function cmd-model:get-resource-count($handle as xs:string) as xs:string {
    254         xs:string(count(collection($cmd-model:cmdiMirrorPath)//IsPartOf[. eq $handle]/ancestor::CMD[descendant::ResourceType[. = "Resource"] or not(exists(descendant::ResourceType)) ]))
    255 };
     254 (:     xs:string(count(collection($cmd-model:cmdiMirrorPath)//IsPartOf[. eq $handle]/ancestor::CMD[descendant::ResourceType[. = "Resource"] or not(exists(descendant::ResourceType)) ])):)
     255        xs:string(count(collection($cmd-model:cmdiMirrorPath)//IsPartOf[. eq $handle]/ancestor::CMD[not(descendant::ResourceType eq 'Metadata') ]))
     256};
     257
    256258
    257259(:
Note: See TracChangeset for help on using the changeset viewer.