summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-03-13 01:09:21 +0200
committerAlon Levy <alon@pobox.com>2015-03-13 01:09:21 +0200
commitfd9db4ca9bde08e04cbf8da8ae8f85a0153702b6 (patch)
tree4c65e97ea06805c7cafd4209ca29b713fe076285
parent9657c9656f3414d2520bbe1a04e421352f3db32e (diff)
cri/from_csv: add missing
-rwxr-xr-xsrc/local/domain/cri/from_csv13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/local/domain/cri/from_csv b/src/local/domain/cri/from_csv
index 3cc1651f..c11babd0 100755
--- a/src/local/domain/cri/from_csv
+++ b/src/local/domain/cri/from_csv
@@ -227,11 +227,20 @@ class StudentInternshipsCSV(CSV):
if len(title) == 0:
print("skipping empty internship field")
continue
- input_dict = {LABEL_SET:[INTERNSHIP_LABEL],
+ input_dict = {
+ LABEL_SET:[INTERNSHIP_LABEL],
'name': title,
'description': descriptionTemplate % (d[self.internshipNatureField], d[self.abstractField]),
'startdate': d[self.dateStartField],
- 'enddate': d[self.dateEndField]}
+ 'enddate': d[self.dateEndField],
+ 'internship-type': d[self.internshipNatureField],
+ 'cnrs-inserm-unit-code': d[self.unitCodeField],
+ 'city': d[self.cityField],
+ 'country': d[self.countryField],
+ 'street-address': d[self.streetField] + d[self.streetSecondPartField],
+ 'facility': d[self.laboratoryNameField],
+ 'facility-affiliation': d[self.laboratoryAffiliationField],
+ }
internship_node = node_dict(the_id=internship_id, **input_dict)
self.append_id_node(internship_id, internship_node)
person_email = cleanEmailField(d[self.emailField])