@WIP: Add validation to csv import based on content type.

#6054 

WIP

Validation of uploaded CSV file is performed according to the content type.
This was originally for the field offer year. The field offered year is not handled at all.