SearchDoc.kt 3.72 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
/*
 * search-doc-service
 * Copyright (C) 2020 Memoriav
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */

package org.memobase.model

import com.fasterxml.jackson.annotation.JsonInclude

@JsonInclude(JsonInclude.Include.NON_EMPTY)
data class SearchDoc(
    // Titles
    val title: List<LanguageContainer>,
    val seriesTitle: List<LanguageContainer>,
    val broadcastTitle: List<LanguageContainer>,

    // Datatype properties
    val type: String,
    val sourceID: String,
    val id: String,
    val abstract: List<LanguageContainer>,
    val descriptiveNote: List<LanguageContainer>,
    val scopeAndContent: List<LanguageContainer>,
    val source: List<LanguageContainer>,
    val relatedMaterial: List<LanguageContainer>,
    val rightsHolder: List<LanguageContainer>,
    val sameAs: List<String>,

    // Concepts
    val genre: List<NameContainer>,
    val keywords: List<NameContainer>,
    val languageContent: List<LanguageContainer>,
    val languageCaption: List<LanguageContainer>,
    val language: List<NameContainer>,

    // Agents
    val personSubject: List<LanguageContainer>,
    val personCreator: List<CreatorNameContainer>,
    val personContributor: List<CreatorNameContainer>,
    val personPublisher: List<LanguageContainer>,
    val personProducer: List<LanguageContainer>,
    val persons: List<NameContainer>,

    val corporateBodySubject: List<LanguageContainer>,
    val corporateBodyCreator: List<CreatorNameContainer>,
    val corporateBodyContributor: List<CreatorNameContainer>,
    val corporateBodyPublisher: List<LanguageContainer>,
    val corporateBodyProducer: List<LanguageContainer>,
    val corporateBodies: List<NameContainer>,

    val agentSubject: List<LanguageContainer>,
    val agentCreator: List<CreatorNameContainer>,
    val agentContributor: List<CreatorNameContainer>,
    val agentPublisher: List<LanguageContainer>,
    val agentProducer: List<LanguageContainer>,
    val agents: List<NameContainer>,

    // Places
    val placeRelated: List<LanguageContainer>,
    val placeCapture: List<LanguageContainer>,
    val place: List<NameContainer>,

    // Dates
    val temporal: List<DateContainer>,
    val dateCreated: List<DateContainer>,
    val dateIssued: List<DateContainer>,

    val institution: List<NameContainer>,
    val recordSet: NameContainer,

84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
    val memoriavClaim: Boolean,

    // Digital Object
    val durationDigital: List<String>,
    val colourDigital: List<String>,
    val locator: List<String>,
    val accessDigital: List<String>,
    val usageDigital: List<String>,
    val usageDigitalGroup: List<String>,
    val digitalObjectNote: List<LanguageContainer>,
    val usageConditionsDigital: List<LanguageContainer>,

    // Physical Object
    val durationPhysical: List<String>,
    val callNumber: List<String>,
    val accessPhysical: List<String>,
    val usagePhysical: List<String>,
    val physicalCharacteristics: List<LanguageContainer>,
    val colourPhysical: List<LanguageContainer>,
    val usageConditionsPhysical: List<LanguageContainer>,
    val physicalObjectNote: List<LanguageContainer>,
105
    val format: List<NameContainer>,
106 107 108

    // Combined
    val access: List<String>
Jonas Waeber's avatar
Jonas Waeber committed
109
)