I am using transmogrifier to import data into a Plone 5.1.4 site. However, the subject field is not being imported. I have tried using csv and json source files.
My csv source:
_type,_folder,title,description,subject
Link,/path/to/folder,Some Title,"This is the description",http://www.somesite.com/link/url,"tag one,tag two"
The pipeline where 'categories' is used is just a remnant of an experiment. The source key from the json file was named as such so I can process the value and assign the processed value to a new key, subject.
I am using a copied json source pipeline from ftw.inflator which allows a json file to contain several items to import. AFAIK, jsonsource from c.jsonmigrator expects 1 item for each json file. ftw.inflator adds a custom "Add Plone" button in the ZMI and I did not want it so I just copied the relevant code.
I tried using c.jsonmigrator but I get the same results. The values for subject is still being left out in the imported items.
The correct key to use is subjects (with an s) and not just subject in the data source. The ICategorization behavior uses subjects. However, the attribute persisted in the item is just subject.