Skip to content

Instantly share code, notes, and snippets.

@boutros
Last active July 5, 2019 09:38
Show Gist options
  • Save boutros/636c24c114d61bf924497122468b4ec2 to your computer and use it in GitHub Desktop.
Save boutros/636c24c114d61bf924497122468b4ec2 to your computer and use it in GitHub Desktop.
publication based search

The new search result format is going to be roughly like this, with each hit representing a publication:

{
    ...properties on publication...
    work: {
        ...properties on work...
    }
    otherPublications: {
        ...properties on other publications on the same work...
    }
}

Other notable changes:

Example:

{
    id: "p1234",
    uri: "http://data.deichman.no/publication/p1234",
    title: "Døveleksikon for Oslo og omegn",
    mediaType: "Bok",
    languages: ["Norsk (bokmål)"],
    publicationYear: "2018",
    availableInBranch: ["hutl","fgry"],
    ownedByBranch: ["hutl","fgry","fmaj"],
    sellingPoint: "Illustrert utgave",
    agents: {
        illustrator: ["Hansen, Hans"]
    },
    work: {
        id: "w1234",
        uri: "http://data.deichman.no/work/w1234",
        publicationYear: "2018",
        mainEntry: "Ramvik, Beryl K.",
        agents: {
            authors: ["Ramvik, Beryl K."]
        },
        subjects: ["Oslo Døveforening"],
        genres: ["Kriminal"],
        literaryForms: ["Roman"],
        fiction: true,
        nonFiction: false
    },
    otherPublications: {
        languages: ["Somali", "French"]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment