Skip to content

Commit 9f8a01c

Browse files
committed
replace label with preferredName + add new keys to full text search config
1 parent 559a031 commit 9f8a01c

4 files changed

Lines changed: 118 additions & 179 deletions

File tree

l10n/custom-data-type-gnd.csv

Lines changed: 16 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,12 @@ server.config.parameter.system.update_gnd.to_time.label,Stunde bis (Zahl 0-24),H
7575
server.config.parameter.system.update_gnd.default_language.label,Standard-Datensprache als Fallback für Update (ISO 639-1),Default-data-language (as fallback) for update (ISO 639-1)
7676
server.config.parameter.system.update_gnd.custom_expires_days.label,Datengültigkeit (in Tagen),Data expires in (in days)
7777
server.config.name.system.fulltext_gnd,GND-Volltextsuche-Einstellungen,GND-Fulltext-Search-Settings
78-
server.config.parameter.system.fulltext_gnd.oldAuthorityNumber.label,Alte Normnummer,Old Authority Number
79-
server.config.parameter.system.fulltext_gnd.oldAuthorityNumber.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
80-
server.config.parameter.system.fulltext_gnd.gndSubjectCategory.label,GND-Sachkategorie,GND Subject Category
81-
server.config.parameter.system.fulltext_gnd.gndSubjectCategory.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
8278
server.config.parameter.system.fulltext_gnd.variantName.label,Variantenname,Variant Name
8379
server.config.parameter.system.fulltext_gnd.variantName.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
8480
server.config.parameter.system.fulltext_gnd.biographicalOrHistoricalInformation.label,Biographische oder historische Angaben,Biographical or Historical Information
8581
server.config.parameter.system.fulltext_gnd.biographicalOrHistoricalInformation.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
8682
server.config.parameter.system.fulltext_gnd.dateOfEstablishment.label,Gründungsdatum,Date Of Establishment
8783
server.config.parameter.system.fulltext_gnd.dateOfEstablishment.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
88-
server.config.parameter.system.fulltext_gnd.dateOfPublication.label,Erscheinungsdatum,Date Of Publication
89-
server.config.parameter.system.fulltext_gnd.dateOfPublication.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
9084
server.config.parameter.system.fulltext_gnd.dateOfBirth.label,Geburtsdatum,Date Of Birth
9185
server.config.parameter.system.fulltext_gnd.dateOfBirth.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
9286
server.config.parameter.system.fulltext_gnd.dateOfProduction.label,Herstellungsdatum,Date Of Production
@@ -95,10 +89,6 @@ server.config.parameter.system.fulltext_gnd.dateOfDeath.label,Sterbedatum,Date O
9589
server.config.parameter.system.fulltext_gnd.dateOfDeath.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
9690
server.config.parameter.system.fulltext_gnd.dateOfTermination.label,Auflösungsdatum,Date Of Termination
9791
server.config.parameter.system.fulltext_gnd.dateOfTermination.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
98-
server.config.parameter.system.fulltext_gnd.author.label,Autor,Author
99-
server.config.parameter.system.fulltext_gnd.author.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
100-
server.config.parameter.system.fulltext_gnd.firstAuthor.label,Erstautor,First Author
101-
server.config.parameter.system.fulltext_gnd.firstAuthor.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
10292
server.config.parameter.system.fulltext_gnd.organizerOrHost.label,Veranstalter,Organizer Or Host
10393
server.config.parameter.system.fulltext_gnd.organizerOrHost.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
10494
server.config.parameter.system.fulltext_gnd.gender.label,Geschlecht,Gender
@@ -113,42 +103,34 @@ server.config.parameter.system.fulltext_gnd.placeOfBusiness.label,Firmen-/Gesch
113103
server.config.parameter.system.fulltext_gnd.placeOfBusiness.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
114104
server.config.parameter.system.fulltext_gnd.associatedPlace.label,Zugehöriger Ort,Associated Place
115105
server.config.parameter.system.fulltext_gnd.associatedPlace.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
116-
server.config.parameter.system.fulltext_gnd.topic.label,Thema,Topic
117-
server.config.parameter.system.fulltext_gnd.topic.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
118106
server.config.parameter.system.fulltext_gnd.predecessor.label,Vorgänger,Predecessor
119107
server.config.parameter.system.fulltext_gnd.predecessor.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
120-
server.config.parameter.system.fulltext_gnd.precedingCorporateBody.label,Vorgängerkörperschaft,Preceding Corporate Body
121-
server.config.parameter.system.fulltext_gnd.precedingCorporateBody.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
122108
server.config.parameter.system.fulltext_gnd.isA.label,Ist ein,Is A
123109
server.config.parameter.system.fulltext_gnd.isA.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
124-
server.config.parameter.system.fulltext_gnd.composer.label,Komponist,Composer
125-
server.config.parameter.system.fulltext_gnd.composer.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
126-
server.config.parameter.system.fulltext_gnd.relatedWork.label,Zugehöriges Werk,Related Work
127-
server.config.parameter.system.fulltext_gnd.relatedWork.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
128110
server.config.parameter.system.fulltext_gnd.relatedPerson.label,Zugehörige Person,Related Person
129111
server.config.parameter.system.fulltext_gnd.relatedPerson.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
130-
server.config.parameter.system.fulltext_gnd.precedingPlaceOrGeographicName.label,Vorgängerort oder geografischer Name,Preceding Place Or Geographic Name
131-
server.config.parameter.system.fulltext_gnd.precedingPlaceOrGeographicName.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
132-
server.config.parameter.system.fulltext_gnd.hierarchicalSuperiorOfTheCorporateBody.label,Übergeordnete Körperschaft,Hierarchical Superior Of The Corporate Body
133-
server.config.parameter.system.fulltext_gnd.hierarchicalSuperiorOfTheCorporateBody.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
134-
server.config.parameter.system.fulltext_gnd.broaderTermInstantial.label,Oberbegriff (instantiell),Broader Term Instantial
135-
server.config.parameter.system.fulltext_gnd.broaderTermInstantial.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
136-
server.config.parameter.system.fulltext_gnd.broaderTermGeneral.label,Oberbegriff (generisch),Broader Term General
137-
server.config.parameter.system.fulltext_gnd.broaderTermGeneral.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
138112
server.config.parameter.system.fulltext_gnd.professionOrOccupation.label,Beruf oder Tätigkeit,Profession Or Occupation
139113
server.config.parameter.system.fulltext_gnd.professionOrOccupation.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
140114
server.config.parameter.system.fulltext_gnd.architect.label,Architekt,Architect
141115
server.config.parameter.system.fulltext_gnd.architect.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
142-
server.config.parameter.system.fulltext_gnd.opusNumericDesignationOfMusicalWork.label,Opuszahl des Musikwerks,Opus Numeric Designation Of Musical Work
143-
server.config.parameter.system.fulltext_gnd.opusNumericDesignationOfMusicalWork.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
144-
server.config.parameter.system.fulltext_gnd.definition.label,Definition,Definition
145-
server.config.parameter.system.fulltext_gnd.definition.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
146-
server.config.parameter.system.fulltext_gnd.succeedingCorporateBody.label,Nachfolgende Körperschaft,Succeeding Corporate Body
147-
server.config.parameter.system.fulltext_gnd.succeedingCorporateBody.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
148-
server.config.parameter.system.fulltext_gnd.succeedingPlaceOrGeographicName.label,Nachfolgendes Geografikum,Succeeding Place Or Geographic Name
149-
server.config.parameter.system.fulltext_gnd.succeedingPlaceOrGeographicName.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
150116
server.config.parameter.system.fulltext_gnd.location.label,Koordinaten,Coordinates
151117
server.config.parameter.system.fulltext_gnd.location.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
118+
server.config.parameter.system.fulltext_gnd.id.label,ID,ID
119+
server.config.parameter.system.fulltext_gnd.id.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
120+
server.config.parameter.system.fulltext_gnd.gndIdentifier.label,GND-Kennung,GND Identifier
121+
server.config.parameter.system.fulltext_gnd.gndIdentifier.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
122+
server.config.parameter.system.fulltext_gnd.preferredName.label,Bevorzugter Name,Preferred Name
123+
server.config.parameter.system.fulltext_gnd.preferredName.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
124+
server.config.parameter.system.fulltext_gnd.completeName.label,Vollständiger Name,Complete Name
125+
server.config.parameter.system.fulltext_gnd.completeName.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
126+
server.config.parameter.system.fulltext_gnd.placeOfActivity.label,Wirkungsort,Place Of Activity
127+
server.config.parameter.system.fulltext_gnd.placeOfActivity.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
128+
server.config.parameter.system.fulltext_gnd.associatedCountry.label,Zugehöriges Land,Associated Country
129+
server.config.parameter.system.fulltext_gnd.associatedCountry.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
130+
server.config.parameter.system.fulltext_gnd.isPartOf.label,Ist Teil von,Is Part Of
131+
server.config.parameter.system.fulltext_gnd.isPartOf.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
132+
server.config.parameter.system.fulltext_gnd.successor.label,Nachfolger,Successor
133+
server.config.parameter.system.fulltext_gnd.successor.checkbox,In Volltextsuche aufnehmen,Include in fulltext search
152134
server.config.name.system.mapbox_gnd,Mapbox-Einstellungen,Mapbox-Config
153135
server.config.parameter.system.mapbox_gnd.mapbox_api_key.label,Mapbox-Api-Key (für Kartenanzeige benötigt),Mapbox Api-Key (required for map display)
154136
custom.data.type.gnd.config.parameter.mask.editor_display.value.label,Editor-Ansicht,Editor-Display

manifest.master.yml

Lines changed: 47 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -128,92 +128,117 @@ base_config:
128128
- name: fulltext_gnd
129129
group: include_in_fulltext_search
130130
parameters:
131-
variantName:
131+
id:
132132
type: bool
133133
default: true
134134
position: 1
135-
biographicalOrHistoricalInformation:
135+
gndIdentifier:
136136
type: bool
137137
default: true
138138
position: 2
139-
dateOfEstablishment:
139+
preferredName:
140140
type: bool
141141
default: true
142142
position: 3
143-
dateOfBirth:
143+
variantName:
144144
type: bool
145145
default: true
146146
position: 4
147-
dateOfProduction:
147+
completeName:
148148
type: bool
149149
default: true
150150
position: 5
151-
dateOfDeath:
151+
biographicalOrHistoricalInformation:
152152
type: bool
153153
default: true
154154
position: 6
155-
dateOfTermination:
155+
dateOfEstablishment:
156156
type: bool
157157
default: true
158158
position: 7
159-
organizerOrHost:
159+
dateOfBirth:
160160
type: bool
161161
default: true
162162
position: 8
163-
gender:
163+
dateOfProduction:
164164
type: bool
165165
default: true
166166
position: 9
167-
placeOfEvent:
167+
dateOfDeath:
168168
type: bool
169169
default: true
170170
position: 10
171-
placeOfBirth:
171+
dateOfTermination:
172172
type: bool
173173
default: true
174174
position: 11
175-
placeOfDeath:
175+
organizerOrHost:
176176
type: bool
177177
default: true
178178
position: 12
179-
placeOfBusiness:
179+
gender:
180180
type: bool
181181
default: true
182182
position: 13
183-
associatedPlace:
183+
placeOfEvent:
184184
type: bool
185185
default: true
186186
position: 14
187-
predecessor:
187+
placeOfBirth:
188188
type: bool
189189
default: true
190190
position: 15
191-
isA:
191+
placeOfDeath:
192192
type: bool
193193
default: true
194194
position: 16
195-
relatedPerson:
195+
placeOfBusiness:
196196
type: bool
197197
default: true
198198
position: 17
199-
isPartOf:
199+
placeOfActivity:
200200
type: bool
201201
default: true
202202
position: 18
203-
professionOrOccupation:
203+
associatedPlace:
204204
type: bool
205205
default: true
206206
position: 19
207-
architect:
207+
associatedCountry:
208208
type: bool
209209
default: true
210210
position: 20
211-
successor:
211+
predecessor:
212212
type: bool
213213
default: true
214214
position: 21
215-
location:
215+
isA:
216216
type: bool
217217
default: true
218218
position: 22
219+
relatedPerson:
220+
type: bool
221+
default: true
222+
position: 23
223+
isPartOf:
224+
type: bool
225+
default: true
226+
position: 24
227+
professionOrOccupation:
228+
type: bool
229+
default: true
230+
position: 25
231+
architect:
232+
type: bool
233+
default: true
234+
position: 26
235+
successor:
236+
type: bool
237+
default: true
238+
position: 27
239+
location:
240+
type: bool
241+
default: true
242+
position: 28
243+
219244

src/updater/gndUpdater.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ outputErr = (err2) => {
307307
});
308308
res.on('end', () => {
309309
const testVocab = JSON.parse(Buffer.concat(testData).toString());
310-
if (testVocab.gndIdentifier == "4284318-2") {
310+
if (testVocab['@id'] == "https://d-nb.info/gnd/4284318-2") {
311311
////////////////////////////////////////////////////////////////////////////
312312
// test successfull --> continue with custom-data-type-update
313313
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)