[ckan-dev] ckanext-scheming

Armin Retterath armin.retterath at gmail.com
Thu Dec 8 13:36:02 UTC 2016


hello together,

i tried to use a select option by using choices at resource level and
altered the solr schema as it have to be done for package level choices.
the problem is, that the facet don't work as expected. the editor shows up
the select box and the value is stored, but neither the translation of the
facet title is done nor does the value show up in the filter :-( .

snippet from json file:
...
 "resource_fields": [
    {
      "field_name": "res_transparency_document_change_classification",
      "preset": "select",
      "label": {
        "en": "Change classification",
        "de": "Änderungsstatus"
      },
      "choices": [
        {
          "value": "unaltered",
          "label": {
            "en": "unaltered",
            "de": "unverändert"
           }
         },
         {
          "value": "blackened",
          "label": {
            "en": "blackened",
            "de": "geschwärzt"
          }
     },
         {
          "value": "created_for_publication",
          "label": {
            "en": "created for publication",
            "de": "speziell für Publikation erstellt"
          }
        }
      ]
    },
...

thanx in advance

armin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161208/5ab5d264/attachment-0002.html>


More information about the ckan-dev mailing list