diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-17 23:31:33 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-02-17 23:31:33 +0100 |
commit | 7430e6cbfb76ee2ccb6675e63b88a954117dd31f (patch) | |
tree | cb43e85cf0b21d8c8e29aa5671b3aa58217f1bfc /ishtar_common | |
parent | b789b4f38160c4acf288f046565e5b86010f4dab (diff) | |
download | Ishtar-7430e6cbfb76ee2ccb6675e63b88a954117dd31f.tar.bz2 Ishtar-7430e6cbfb76ee2ccb6675e63b88a954117dd31f.zip |
Fixtures importers: add importer for sites
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/fixtures/initial_importtypes-fr.json | 190 |
1 files changed, 181 insertions, 9 deletions
diff --git a/ishtar_common/fixtures/initial_importtypes-fr.json b/ishtar_common/fixtures/initial_importtypes-fr.json index f0949b126..b6e653447 100644 --- a/ishtar_common/fixtures/initial_importtypes-fr.json +++ b/ishtar_common/fixtures/initial_importtypes-fr.json @@ -398,6 +398,26 @@ } }, { + "model": "ishtar_common.importertype", + "fields": { + "name": "Ishtar - Entit\u00e9s Arch\u00e9ologiques", + "slug": "ishtar-sites", + "description": "Import complet standard entit\u00e9s arch\u00e9ologiques", + "associated_models": [ + "archaeological_files.models.File" + ], + "is_template": true, + "unicity_keys": "reference", + "available": true, + "users": [], + "created_models": [ + [ + "archaeological_operations.models.ArchaeologicalSite" + ] + ] + } +}, +{ "model": "ishtar_common.regexp", "fields": { "name": "Num\u00e9ro INSEE", @@ -1720,7 +1740,7 @@ { "model": "ishtar_common.importercolumn", "fields": { - "label": "Date limite pour le versement de la documentation", + "label": "Date limite pour le rendu de la documentation", "importer_type": [ "ishtar-operations" ], @@ -1748,7 +1768,7 @@ { "model": "ishtar_common.importercolumn", "fields": { - "label": "Date limite versement du mobilier", + "label": "Date limite rendu du mobilier", "importer_type": [ "ishtar-operations" ], @@ -3186,7 +3206,7 @@ "description": "Code INSEE des communes concern\u00e9es (s\u00e9par\u00e9es par un \u00ab & \u00bb).", "regexp_pre_filter": null, "required": false, - "export_field_name": "" + "export_field_name": null } }, { @@ -3876,6 +3896,62 @@ } }, { + "model": "ishtar_common.importercolumn", + "fields": { + "label": "R\u00e9f\u00e9rence", + "importer_type": [ + "ishtar-sites" + ], + "col_number": 1, + "description": "Identifiants des sites (entit\u00e9s arch\u00e9ologiques)", + "regexp_pre_filter": null, + "required": true, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Nom", + "importer_type": [ + "ishtar-sites" + ], + "col_number": 2, + "description": "Nom usuel", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "P\u00e9riodes", + "importer_type": [ + "ishtar-sites" + ], + "col_number": 3, + "description": "P\u00e9riodes concern\u00e9es (s\u00e9par\u00e9es par un \u00ab & \u00bb). Exemple : \"Gallo-romain & Fer & Med\".", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ + "model": "ishtar_common.importercolumn", + "fields": { + "label": "Types de vestige", + "importer_type": [ + "ishtar-sites" + ], + "col_number": 4, + "description": "Types de vestiges (s\u00e9par\u00e9s par un \u00ab & \u00bb). Exemple : \"four & fosses & villa\".", + "regexp_pre_filter": null, + "required": false, + "export_field_name": null + } +}, +{ "model": "ishtar_common.formatertype", "fields": { "formater_type": "IntegerFormater", @@ -4324,6 +4400,22 @@ } }, { + "model": "ishtar_common.formatertype", + "fields": { + "formater_type": "UnicodeFormater", + "options": "20", + "many_split": "&" + } +}, +{ + "model": "ishtar_common.formatertype", + "fields": { + "formater_type": "UnicodeFormater", + "options": "10", + "many_split": "&" + } +}, +{ "model": "ishtar_common.importerduplicatefield", "fields": { "column": [ @@ -6694,11 +6786,11 @@ "formater_type": [ "UnicodeFormater", "20", - "" + "&" ], "force_new": false, "concat": false, - "concat_str": "", + "concat_str": null, "comment": "" } }, @@ -9213,12 +9305,12 @@ "regexp_filter": null, "formater_type": [ "UnicodeFormater", - "6", + "10", "&" ], "force_new": false, "concat": false, - "concat_str": "", + "concat_str": null, "comment": "" } }, @@ -9513,12 +9605,12 @@ "regexp_filter": null, "formater_type": [ "UnicodeFormater", - "5", + "20", "" ], "force_new": false, "concat": false, - "concat_str": "", + "concat_str": null, "comment": "" } }, @@ -10201,5 +10293,85 @@ "concat_str": null, "comment": "" } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "ishtar-sites", + 1 + ], + "target": "reference", + "regexp_filter": null, + "formater_type": [ + "UnicodeFormater", + "200", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "ishtar-sites", + 2 + ], + "target": "name", + "regexp_filter": null, + "formater_type": [ + "UnicodeFormater", + "200", + "" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "ishtar-sites", + 3 + ], + "target": "periods", + "regexp_filter": null, + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.Period", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } +}, +{ + "model": "ishtar_common.importtarget", + "fields": { + "column": [ + "ishtar-sites", + 4 + ], + "target": "remains", + "regexp_filter": null, + "formater_type": [ + "TypeFormater", + "archaeological_operations.models.RemainType", + "&" + ], + "force_new": false, + "concat": false, + "concat_str": null, + "comment": "" + } } ] |