mjanez / ckanext-schemingdcat

Improved ckanext-scheming with DCAT, DCAT-AP and GeoDCAT-AP/INSPIRE custom schemas and tools.
https://github.com/mjanez/ckan-docker
GNU Affero General Public License v3.0
0 stars 2 forks source link

Fix - organizations/groups multilang fields output #64

Open mjanez opened 3 months ago

mjanez commented 3 months ago

The output of information in the API needs to be fixed to show more information about groups and organisations, or to generate a specific action.

Extensible to tags.

Concretely the multilingual fields.

Example

https://hermes.tragsatec.es/catalogo/api/3/action/group_list?all_fields=True

{
            "approval_status": "approved",
            "created": "2023-10-18T16:12:32.494529",
            "description": "",
            "display_name": "",
            "id": "64b56bd3-27da-4d20-b3c7-4cd3de945789",
            "image_display_url": "https://hermes.tragsatec.es/catalogo/dataset/6439fa33-1fe9-43ce-adf3-3a2e3177246a/resource/523a3d6a-9dbd-4059-b74e-20cce785f9c9/download/af_2.jpg",
            "image_url": "https://hermes.tragsatec.es/catalogo/dataset/6439fa33-1fe9-43ce-adf3-3a2e3177246a/resource/523a3d6a-9dbd-4059-b74e-20cce785f9c9/download/af_2.jpg",
            "is_organization": false,
            "name": "7_alternative-fuels",
            "num_followers": 0,
            "package_count": 10,
            "state": "active",
            "title": "",
            "type": "group"
        }

tags

{
            "id": "96d4a6d8-b9d2-470e-aad6-57689396882d",
            "name": "theme",
            "tags": [
                {
                    "id": "e50c57e9-54c5-4400-806f-3e30b313abd9",
                    "name": "ac",
                    "vocabulary_id": "96d4a6d8-b9d2-470e-aad6-57689396882d",
                    "display_name": "ac"
                },
                {
                    "id": "228741b0-c86c-4ee4-8f8a-3c83e45aaa71",
                    "name": "ad",
                    "vocabulary_id": "96d4a6d8-b9d2-470e-aad6-57689396882d",
                    "display_name": "ad"
                },
                {
                    "id": "a5f92a8d-0f07-4c8b-8241-516fb985d8d2",
                    "name": "af",
                    "vocabulary_id": "96d4a6d8-b9d2-470e-aad6-57689396882d",
                    "display_name": "af"
                },
}