Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function lookupFieldValue

    • The candidate's value behind a field: null means it has nothing to offer there.

      Parameters

      • candidate: {
            author: string | null;
            coverRef: string | null;
            series: string | null;
            seriesIndex: number | null;
            source: "musicbrainz" | "openlibrary";
            sourceId: string;
            title: string;
            year: number | null;
        }
        • author: string | null

          Artist credit (music) or author(s) (books), or null when the source has none.

        • coverRef: string | null

          The cover's id at its source, or null when the source has none — see isLookupCoverRef.

        • series: string | null

          The album (music) or series (books), or null. Open Library's search carries no series.

        • seriesIndex: number | null

          Track number on the album, or position in the series, or null.

        • source: "musicbrainz" | "openlibrary"
        • sourceId: string

          The match's id at its source: a MusicBrainz recording MBID, an Open Library work key.

        • title: string
        • year: number | null

          Shown to help pick, never stored: the library has no year column.

      • field: "title" | "author" | "series" | "seriesIndex" | "cover"

      Returns string | number | null