Details
-
Sub-task
-
Resolution: Fixed
-
None
-
Critical
-
All available data type attributes for term collection are saved in database.
-
Empty show more show less
Description
In the front end we need to know and query efficiently, what types of attributes exist in a specific termCollection and if they are of type textfield, picklist, textarea (currently only definition and note (the comment field)), reference (only the crossreference field on entry-level and the crossreference field on term-level) or image (only the images).
For this a new table should be created and filled with a migration script based on the data in the new table structure created for the new termPortal
Additional to be implemented:
The old unique definition for "attribute labels/new AttributeDataType" with attribute name and type is not enough, since there can be attributes with same name but on different level and different name (ex: <admin type= "source"> . For more info see the tbxbasic standard for this attribute).
Because of the above problem, the current AttributeDataType saveOrCreate needs to be adjusted to support that.
Maybe migration script to remove duplicates from the labels table (new attribute data type) will be required.