Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facet quirks #45

Open
stephenwf opened this issue Nov 2, 2021 · 1 comment
Open

Facet quirks #45

stephenwf opened this issue Nov 2, 2021 · 1 comment
Assignees

Comments

@stephenwf
Copy link
Member

The following are metadata values from IIIF, and the resulting facets.

Example 1

This is an ideal case. Where each label/value pair has a matching label/value language. This is where the filtering could work and only show the facet. However it does produce 3 facets for what is conceptually one value. Having some equivalency could help filter (server or client side)

{
    "label": {
        "en": ["Title (en)"],
        "nl": ["Title (nl)"],
        "none": ["Title"]
    },
    "value": {
        "en": ["Dumfriesshire (en)"],
        "nl": ["Dumfriesshire (nl)"],
        "none": ["Dumfriesshire"]
    }
}

Screenshot 2021-11-02 at 11 07 49

Example 2

Distinct to the above example, where there is only one language in the label, these facets appear grouped together again, with each value distinct in the facet list. I suspect that a mix of this and example 1 may fragment facets. A facet list that was previously working could be broken by adding a language (split into 2).

{
    "label": {
        "en": ["Second test"]
    },
    "value": {
        "en": ["Second test (en)"],
        "nl": ["Second test (nl)"]
    }
}

Screenshot 2021-11-02 at 11 09 04

Example 3

This is straight up a bug or undefined behaviour. There are english 2 values for label, and search seems to pick neither.

{
    "label": {
        "en": ["Third test", "Third test (en2)"]
    },
    "value": {
        "none": ["Third test"]
    }
}

Screenshot 2021-11-02 at 11 10 01

Example 4

This is the opposite to Example 2 where we have 2 labels instead of 2 values. Here the facet is not split. There are not 2 values for each.

{
    "label": {
        "en": ["Fourth test (en)"],
        "nl": ["Fourth test (nl)"]
    },
    "value": {
        "en": ["Fourth test"]
    }
}

Screenshot 2021-11-02 at 11 11 13

@stephenwf
Copy link
Member Author

Note: In all of these cases, the ideal format would be a single label/heading and a single value (in one or more languages).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants