Changeset de0b4ed in osmose-backend


Ignore:
Timestamp:
Oct 11, 2014 3:11:15 PM (5 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Branches:
master
Children:
5dfd2ec
Parents:
a53a7ca
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (11/10/2014 14:23:26)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (11/10/2014 15:11:15)
Message:

analyser_merge_pharmacy_FR more lower case

File:
1 edited

Legend:

Unmodified
Added
Removed
  • analysers/analyser_merge_pharmacy_FR.py

    rdd4f80a rde0b4ed  
    4747                        "source": "Celtipharm - 10/2014"}, 
    4848                    mapping = { 
    49                         "name": lambda res: res['CTPM_NOMUSAGE'].replace('PHARMACIE', 'Pharmacie').replace(' D ', " d'").replace(' DE ', ' de ').replace(' DU ', ' du ').replace(' DES ', ' des ').replace(' LA ', ' la ').replace(' LES ', ' les ').replace(' ET ', ' et '), 
     49                        "name": lambda res: res['CTPM_NOMUSAGE'].replace('PHARMACIE', 'Pharmacie').replace(' D ', " d'").replace(' L ', " l'").replace(' DE ', ' de ').replace(' DU ', ' du ').replace(' DES ', ' des ').replace(' LA ', ' la ').replace(' LES ', ' les ').replace(' ET ', ' et ').replace(' SAINT ', ' Saint-').replace(' SAINTE ', ' Sainte-'), 
    5050                        "ref:FR:FINESS": "CTPM_FINESSGEOGRAPHIQUE"}, 
    5151                text = lambda tags, fields: {"en": ', '.join(filter( lambda x: x and x != 'None', [fields["CTPM_ADR1"], fields["CTPM_ADR2"], fields["CTPM_ADR3"], fields["CTPM_CP"], fields["CTPM_VILLE"]]))} ))) 
Note: See TracChangeset for help on using the changeset viewer.