From a14894fce7253202f1991ffd6b2e24743c63ace2 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Tue, 4 Aug 2015 08:38:15 -0400 Subject: [PATCH] ExportCSV: allow lowercase matching of place type --- gramps/plugins/importer/importcsv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/plugins/importer/importcsv.py b/gramps/plugins/importer/importcsv.py index 6daedfda5..0face0cbc 100644 --- a/gramps/plugins/importer/importcsv.py +++ b/gramps/plugins/importer/importcsv.py @@ -137,11 +137,13 @@ class CSVParser(object): # Build reverse dictionary, name to type number for items in PlaceType().get_map().items(): # (0, 'Custom') self.place_types[items[1]] = items[0] + self.place_types[items[1].lower()] = items[0] if _(items[1]) != items[1]: self.place_types[_(items[1])] = items[0] # Add custom types: for custom_type in self.db.get_place_types(): self.place_types[custom_type] = 0 + self.place_types[custom_type.lower()] = 0 column2label = { "surname": ("Lastname", "Surname", _("Surname"), "lastname", "last_name", "surname", _("surname")),