Ignore:
Timestamp:
10/04/07 16:49:33 (13 years ago)
Author:
lawrence
Message:

Tiny modification to citation handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/PythonCode/wsgi/DIF.py

    r2386 r2392  
    136136        #Data Creators 
    137137        self.creators=[] 
    138         # use author here because a full dif entry for creator wont necessarily exist in citation ... 
    139         self.authors=DIFAuthors(self.tree,helper) 
     138        # Let's first see if we get an author out of the citation, 
     139        self.authors=helper.getText(self.tree,'Data_Set_Citation/Dataset_Creator')  
    140140        self.date=dateParse(helper.getText(self.tree,'Data_Set_Citation/Dataset_Release_Date'),'YYYY') 
    141         if self.date=='': self.date='XXXX' 
     141        #if self.date=='': self.date='XXXX' 
    142142        self.title=helper.getText(self.tree,'Data_Set_Citation/Dataset_Title') 
    143         self.briefCitation=None 
     143        self.briefCitation='' 
    144144        if (self.authors!='' and self.date!='' and self.title!=''): 
    145145            self.briefCitation='%s (%s): %s'%(self.authors,self.date,self.title) 
     146        #for now 
     147        self.citation=self.briefCitation 
     148         
     149        self.personnel=[DIFcontact(helper,f) for f in helper.findall(self.tree,'Personnel')] 
     150         
    146151        #services 
    147152        self.services=[] 
Note: See TracChangeset for help on using the changeset viewer.