From cb17e68dc2581094cc61879b43dbad2359e7c7ed Mon Sep 17 00:00:00 2001 From: Jacob Benz <jacob.benz@stud.h-da.de> Date: Mon, 18 Sep 2023 10:16:54 +0200 Subject: [PATCH] set gnd as first sorce for authorities --- packages/core/src/overmind/editor/state.ts | 30 +++++++++++----------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/packages/core/src/overmind/editor/state.ts b/packages/core/src/overmind/editor/state.ts index 85d5fc92..592a713e 100644 --- a/packages/core/src/overmind/editor/state.ts +++ b/packages/core/src/overmind/editor/state.ts @@ -90,13 +90,22 @@ export const state: EditorStateType = { schemasList: derived((state: EditorStateType) => Object.values(state.schemas)), schemaMappings: ['cwrcEntry', 'orlando', 'tei', 'teiLite'], authorityServices: { + gnd: { + enabled: true, + entities: { person: true, place: true, organization: true, title: true, rs: true }, + find: gndFind, + id: 'gnd', + name: 'GND', + priority: 0, + lookupService: 'internal', + }, viaf: { enabled: true, entities: { person: true, place: true, organization: true, title: true, rs: true }, find: viafFind, id: 'viaf', name: 'VIAF', - priority: 0, + priority: 1, lookupService: 'internal', }, wikidata: { @@ -105,7 +114,7 @@ export const state: EditorStateType = { find: wikidataFind, id: 'wikidata', name: 'Wikidata', - priority: 1, + priority: 2, lookupService: 'internal', }, dbpedia: { @@ -114,16 +123,7 @@ export const state: EditorStateType = { find: dbpediaFind, id: 'dbpedia', name: 'DBpedia', - priority: 2, - lookupService: 'internal', - }, - gnd: { - enabled: true, - entities: { person: true, place: true, organization: true, title: true, rs: true }, - find: gndFind, - id: 'gnd', - name: 'GND', - priority: 2, + priority: 3, lookupService: 'internal', }, getty: { @@ -132,7 +132,7 @@ export const state: EditorStateType = { find: gettyFind, id: 'getty', name: 'Getty', - priority: 3, + priority: 4, lookupService: 'internal', }, geonames: { @@ -141,7 +141,7 @@ export const state: EditorStateType = { find: geonamesFind, id: 'geonames', name: 'Geonames', - priority: 4, + priority: 5, requireAuth: true, lookupService: 'internal', }, @@ -151,7 +151,7 @@ export const state: EditorStateType = { find: lgpnFind, id: 'lgpn', name: 'LGPN', - priority: 5, + priority: 6, lookupService: 'internal', }, }, -- GitLab