samvera / questioning_authority

Question your authorities
Other
54 stars 30 forks source link

Expand context when the value is an URI and expasion was requested in the config #204

Closed elrayle closed 5 years ago

elrayle commented 5 years ago

Adds:

Fixes:

Examples:

Regular context (from previous PR)

{
    property: "Authoritative Label",
    values: [
        "Science films"
    ],
    selectable: true,
    drillable: false
},

Expanding URI values in context (with this PR)

{
    group: "Hierarchy",
    property: "Narrower",
    values: [
        {
            uri: "http://id.loc.gov/authorities/genreForms/gf2011026416",
            id: "gf2011026416",
            label: "Nature films"
        }
    ],
    selectable: true,
    drillable: true
},