Changeset 3163


Ignore:
Timestamp:
18/12/07 16:08:55 (12 years ago)
Author:
lawrence
Message:

Fixes for creation time of exist directory contents

Location:
exist/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • exist/trunk/python/ndgUtils/ndgDirectory.py

    r3162 r3163  
    4545        return self.members 
    4646         
    47     def __loadxml(self,id,i,created=0): 
     47    def __loadxml(self,id,i): 
    4848        ''' Returns the i'th xml document name in result set id ''' 
    4949        r=self.xmldb.retrieve(id,i) 
     
    5151        fn=e.findtext('{%s}fileName'%self.ns) 
    5252        eid=e.findtext('{%s}repositoryID'%self.ns) 
    53         c=e.findtext('created') 
    54         #if created: 
    55         #    return {'fileName':fn,'EntryID':eid,'created':self.created(fn)} 
    56         #else: return {'fileName':fn,'EntryID':eid} 
     53        c=e.findtext('{%s}created'%self.ns) 
    5754        return {'fileName':fn,'EntryID':eid,'created':c} 
    5855    
  • exist/trunk/xquery/DIFList.xq

    r3128 r3163  
    11(: This is a DIF listing query for TargetCollection - returns EntryIDs and the files in which they exist :) 
    22declare default element namespace 'http://gcmd.gsfc.nasa.gov/Aboutus/xml/dif/'; 
    3 for $DE in collection('TargetCollection')/DIF/Entry_ID return  
     3declare variable $targetCollection as xs:string {'TargetCollection'}; 
     4for $DE in collection($targetCollection)/DIF/Entry_ID let $f:=util:document-name($DE) return  
    45<dgMetadataRecord> 
    56    <repositoryID>{string($DE)}</repositoryID> 
    6     <fileName>{util:document-name($DE)}</fileName> 
     7    <fileName>{$f}</fileName> 
     8    <created>{xmldb:created(util:collection-name($DE),$f)}</created> 
    79</dgMetadataRecord> 
Note: See TracChangeset for help on using the changeset viewer.