Ignore:
Timestamp:
25/05/06 16:42:02 (14 years ago)
Author:
lawrence
Message:

More discovery (from browse) related improvments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/DIF.py

    r1006 r1020  
    1717        self.metadataType='DIF' 
    1818        self.xml=xml 
    19         self.elem=ET.fromstring(xml) 
     19        try: 
     20            self.elem=ET.fromstring(xml) 
     21        except: 
     22            # for some reason we can't parse the document ... 
     23            self.elem=None 
     24            return 
    2025        self.renderMethod=renderMethod 
    2126        self.type='DIF' 
     27        self.entryID=wrapGetText(self.elem,'Entry_ID') 
    2228         
    2329        self.abstract=wrapGetText(self.elem,'Summary') 
Note: See TracChangeset for help on using the changeset viewer.