Changeset 2086


Ignore:
Timestamp:
08/14/12 16:28:54 (12 years ago)
Author:
sanmai
Message:
  • Rework of lrt2cmdi.py to deal better with optional elements within the LrtInventoryResource? component.
  • Fix <tags/> location in CMDI XML tree and remove <tags/> in case it would end up empty.
Location:
metadata/trunk/toolkit/scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • metadata/trunk/toolkit/scripts/cmdi-lrt-template.xml

    r2078 r2086  
    5252                <Description></Description>
    5353                <ContactPerson></ContactPerson>
    54             </LrtIPR>
    55                
     54            </LrtIPR>
     55
     56            <LrtCollectionDetails/>
     57   
     58            <LrtLexiconDetails/>
     59   
     60            <LrtServiceDetails/>
     61   
    5662            <tags/>
    5763
  • metadata/trunk/toolkit/scripts/lrt2cmdi.py

    r2078 r2086  
    226226                tag_XML_element.text    = tag
    227227                tags_XML_element.append(tag_XML_element)
    228 
     228        else :
     229            self.xmlTree.remove("tags")
    229230
    230231def addChildNode(parent, tag, content) :
Note: See TracChangeset for help on using the changeset viewer.