Changeset 1336

Show
Ignore:
Timestamp:
07/13/08 14:21:44 (5 months ago)
Author:
thomase
Message:

postfix Inss. Ins. and fl. onto alternate/variant names, but only in their citations, not in their geogname elements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • BADataMunger/trunk/batlaspipe.py

    r1333 r1336  
    296296                            txt = "BAtlas %s %s %s" % (self.map_number, p.grid, txt) 
    297297                        if len(txt) > 0: 
     298                            if 'island-group' in p.types: 
     299                                txt = "%s Inss." % txt 
     300                            elif 'island' in p.types: 
     301                                txt = "%s Ins." % txt 
     302                            elif 'river' in p.types: 
     303                                txt = "%s fl." % txt 
    298304                            q = etree.SubElement(e, 'citation') 
    299305                            q.text = txt