[ckan-dev] Scheming - adding group
many_yammy at yahoo.com
Sat Aug 17 12:52:29 UTC 2019
I need help on expanding my metadata using ckanext-scheming.
I want to add one field to my metadata schema / json file. This is group. So in fact I want while the user is populating a dataset form, choose the related group (not after creating the dataset add the group). So, in fact for a specific schema the group is a mandatory field and it should be included in the schema from the beginning. I wonder whether it is possible or not (similar to organisation for example) and if yes how?.
I have another question, if this is possible to add a field for group, can I have two fields for group in a way that half of group entries will be selected as obligatory and the other half as optional? to make it clear here is an example:
I have 5 groups: a, b, c, d, e
Now in the dataset metadata I want to add two fields with the name "Group". for the 1st field "Group*" which is obligatory i have values "a", "b" and "c" which I need to add only one of them. For the 2nd field "Group" which is optional I have the values "d", and "e" which 0.. 2 can be chosen. I mean 0, 1 or both values can be given as the group categories.I can imagine using select and hard coding is the simplest solution. But I am more interested in a modular and dynamic solution.
I really appreciate your help in advanceBest regardsMani
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ckan-dev