Skip to content

Commit

Permalink
Merge branch 'main' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Aug 10, 2024
2 parents 06181a7 + fbe63c3 commit 6cc3f7c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions install/upgrade/8.6.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,18 @@ SELECT
'GND stands for Gemeinsame Normdatei (Integrated Authority File) and offers a broad range of elements to describe authorities.',
'reference_system'
WHERE NOT EXISTS (
SELECT 1 FROM model.entity WHERE name='GND'
SELECT 1 FROM model.entity WHERE name='GND' AND openatlas_class_name = 'reference_system'
);

INSERT INTO web.reference_system (system, name, entity_id, resolver_url, website_url, identifier_example)
SELECT
VALUES (
true,
'GND',
(SELECT id FROM model.entity WHERE name = 'GND' AND cidoc_class_code = 'E32'),
(SELECT id FROM model.entity WHERE name = 'GND' AND openatlas_class_name = 'reference_system'),
'https://lobid.org/gnd/',
'https://d-nb.info/standards/elementset/gnd',
'119338467'
WHERE NOT EXISTS (
SELECT 1 FROM web.reference_system WHERE name='GND'
);
'119338467')
ON CONFLICT (name) DO UPDATE SET resolver_url = 'https://lobid.org/gnd/', system=true;

INSERT INTO web.reference_system_openatlas_class (reference_system_id, openatlas_class_name)
SELECT (SELECT entity_id FROM web.reference_system WHERE name='GND'), 'person'
Expand Down

0 comments on commit 6cc3f7c

Please sign in to comment.