[ckan-dev] ckanext-scheming

Armin Retterath armin.retterath at gmail.com
Thu Dec 8 14:27:09 UTC 2016


hi ian,

thanx for the information. i will deactivate the facet for the first time
and will look at the problem when i get some time later on ;-) .

armin

2016-12-08 14:54 GMT+01:00 Ian Ward <ian at excess.org>:

> Facet interfaces aren't generated for you by Scheming (yet) For now
> you'll need to override your templates to get the display you're
> looking for, or if you'd like, help contribute that as a new feature.
>
> On Thu, Dec 8, 2016 at 8:36 AM, Armin Retterath
> <armin.retterath at gmail.com> wrote:
> > 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
> >
> > _______________________________________________
> > ckan-dev mailing list
> > ckan-dev at lists.okfn.org
> > https://lists.okfn.org/mailman/listinfo/ckan-dev
> > Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
> >
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161208/3416fb9c/attachment-0003.html>


More information about the ckan-dev mailing list