From 7430e6cbfb76ee2ccb6675e63b88a954117dd31f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 17 Feb 2018 23:31:33 +0100 Subject: Fixtures importers: add importer for sites --- ishtar_common/fixtures/initial_importtypes-fr.json | 190 ++++++++++++++++++++- 1 file 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 @@ -397,6 +397,26 @@ "created_models": [] } }, +{ + "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": { @@ -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 } }, { @@ -3875,6 +3895,62 @@ "export_field_name": "localisation_6" } }, +{ + "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": { @@ -4323,6 +4399,22 @@ "many_split": "&" } }, +{ + "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": { @@ -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": "" + } } ] -- cgit v1.2.3