RecordSet.kt 4.7 KB
Newer Older
Jonas Waeber's avatar
Jonas Waeber committed
1
/*
Jonas Waeber's avatar
Jonas Waeber committed
2
 * Drupal Sync Service
Jonas Waeber's avatar
Jonas Waeber committed
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
 * 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/>.
 */
Jonas Waeber's avatar
Jonas Waeber committed
18
package org.memobase.model
Jonas Waeber's avatar
Jonas Waeber committed
19

20 21
import org.memobase.Util

22
data class RecordSet(
Jonas Waeber's avatar
Jonas Waeber committed
23 24 25
    /* Publikations Status */
    val status: Boolean,
    /* 0.1 Titel (Memobase) */
26
    val title_de: String,
27 28
    val title_fr: String,
    val title_it: String,
Jonas Waeber's avatar
Jonas Waeber committed
29 30 31
    /* 0.2.1 Thumbnail Searchresult */
    val computed_teaser_image_url: String?,
    /* 1.1 Inhalt */
32
    val field_content_de: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
33 34 35 36 37 38 39 40 41
    val field_content_fr: RichText?,
    val field_content_it: RichText?,
    /* 1.2 Entstehungszeitrum */
    val field_time_period: String?,
    /// 1.3 Sprache
    val field_language_de: String?,
    val field_language_fr: String?,
    val field_language_it: String?,
    /* 1.4 Zugang Memobase */
42 43 44
    val field_access_memobase_de: RichText?,
    val field_access_memobase_fr: RichText?,
    val field_access_memobase_it: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
45
    /* 2.1 Kontext */
46
    val field_context_de: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
47 48 49
    val field_context_fr: RichText?,
    val field_context_it: RichText?,
    /* 3.1 Titel (original) */
50
    val field_original_title_de: String?,
Jonas Waeber's avatar
Jonas Waeber committed
51 52 53
    val field_original_title_fr: String?,
    val field_original_title_it: String?,
    /* 3.2 Umfang */
54
    val field_scope_de: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
    val field_scope_fr: RichText?,
    val field_scope_it: RichText?,
    /* 3.3 Auswahl */
    val field_selection_de: RichText?,
    val field_selection_fr: RichText?,
    val field_selection_it: RichText?,
    // 3.4 Informationen zur Erschliessung
    val field_info_on_development_de: RichText?,
    val field_info_on_development_fr: RichText?,
    val field_info_on_development_it: RichText?,
    /* 3.5 Sprache Metadaten */
    val field_metadata_language_codes: List<String>,
    /* 3.6 Rechte */
    val field_rights_de: RichText?,
    val field_rights_fr: RichText?,
    val field_rights_it: RichText?,
    /* 3.7 Originaler Identifier */
    val field_original_id: String?,
    /* 3.8 Bestandes Signatur */
    val field_original_shelf_mark: String?,
    /* 3.9 Beschreibung */
76
    val field_text_de: RichText?,
77 78
    val field_text_fr: RichText?,
    val field_text_it: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
79 80
    /* 3.9 Original Bestandesbeschreibung (Titel) */
    /* 3.9.1 Original Bestandesbeschreibung (Link) */
81
    val field_original_description_de: Link?,
Jonas Waeber's avatar
Jonas Waeber committed
82 83 84
    val field_original_description_it: Link?,
    val field_original_description_fr: Link?,
    /* 4.1 Zugang */
85 86 87
    val field_access_de: RichText?,
    val field_access_fr: RichText?,
    val field_access_it: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
88 89 90 91 92 93 94 95
    /* 4.2 Original Institution */
    val field_resp_institution_original: List<String>,
    /* 4.3 Master Institution */
    val field_resp_institution_master: List<String>,
    /* 4.4 Zugangs Institution*/
    val field_resp_institution_access: List<String>,
    /* 5.1 Projektname */
    /* 5.2 Projektbeschreibung (Link) */
96
    val field_project_de: List<Link>,
Jonas Waeber's avatar
Jonas Waeber committed
97 98 99 100
    val field_project_fr: List<Link>,
    val field_project_it: List<Link>,
    /* 5.1 Verwandte Bestände (Titel) */
    /* 5.2 Verwandte Bestände (Link) */
101
    val field_related_record_sets_de: List<Link>,
Jonas Waeber's avatar
Jonas Waeber committed
102 103 104 105
    val field_related_record_sets_fr: List<Link>,
    val field_related_record_sets_it: List<Link>,
    /* 5.5 Puplikation (Titel) */
    /* 5.6 Publikation (Link) */
106
    val field_publications_de: List<Link>,
Jonas Waeber's avatar
Jonas Waeber committed
107 108 109 110
    val field_publications_fr: List<Link>,
    val field_publications_it: List<Link>,
    /* 5.7 Verwandte Dokumente (Titel) */
    /* 5.8 Verwandte Dokumente (Link) */
111 112 113
    val field_documents_de: List<Link>,
    val field_documents_fr: List<Link>,
    val field_documents_it: List<Link>,
Jonas Waeber's avatar
Jonas Waeber committed
114
    /* 6.1 Datenübernahme */
115
    val field_data_transfer_de: RichText?,
Jonas Waeber's avatar
Jonas Waeber committed
116 117 118 119 120
    val field_data_transfer_fr: RichText?,
    val field_data_transfer_it: RichText?,
    /* 6.2 Datum Übernahme (YYYY-MM-DD) */
    val field_transfer_date: String?,
    /* 6.4 Memobase ID (Neu)*/
121
    val field_memobase_id: String,
Jonas Waeber's avatar
Jonas Waeber committed
122
    /* 8.1 Unterstützt durch Memoriav */
123
    val field_supported_by_memoriav: Boolean,
Jonas Waeber's avatar
Jonas Waeber committed
124
    /* 8.2 Institution */
125
    val field_institution: List<String>,
Jonas Waeber's avatar
Jonas Waeber committed
126 127
    /* 9.3 Memobase ID (Alt)*/
    val field_old_memobase_id: String?
128
) : Input(Util.drupalRecordSetTypeIdentifier)