From 9f728453eff6041a3becee2a093fb3479af2d317 Mon Sep 17 00:00:00 2001 From: stevenferey Date: Wed, 7 Feb 2024 17:12:46 +0100 Subject: [PATCH] update of the keywordVocabularyURI metadata to make it consistent with its name Controlled Vocabulary URL --- scripts/api/data/metadatablocks/citation.tsv | 2 +- src/main/java/propertyFiles/citation.properties | 2 +- .../V6.1.0.2__10288-update_keywordVocabularyURI_metadata.sql | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/main/resources/db/migration/V6.1.0.2__10288-update_keywordVocabularyURI_metadata.sql diff --git a/scripts/api/data/metadatablocks/citation.tsv b/scripts/api/data/metadatablocks/citation.tsv index 0d8378d8512..39a763db9d9 100644 --- a/scripts/api/data/metadatablocks/citation.tsv +++ b/scripts/api/data/metadatablocks/citation.tsv @@ -25,7 +25,7 @@ keywordValue Term A key term that describes important aspects of the Dataset text 21 #VALUE TRUE FALSE FALSE TRUE TRUE FALSE keyword citation keywordTermURI Term URI Keyword URI points to the web presence of the term. Enter an absolute URI, starting by https:// https:// url 22 #VALUE FALSE FALSE FALSE FALSE TRUE FALSE keyword citation keywordVocabulary Controlled Vocabulary Name The controlled vocabulary used for the keyword term (e.g. LCSH, MeSH) text 23 (#VALUE) FALSE FALSE FALSE FALSE TRUE FALSE keyword citation - keywordVocabularyURI Controlled Vocabulary URL The URL where one can access information about the term's controlled vocabulary https:// url 24 #VALUE FALSE FALSE FALSE FALSE TRUE FALSE keyword citation + keywordVocabularyURL Controlled Vocabulary URL The URL where one can access information about the term's controlled vocabulary https:// url 24 #VALUE FALSE FALSE FALSE FALSE TRUE FALSE keyword citation topicClassification Topic Classification Indicates a broad, important topic or subject that the Dataset covers and information about any controlled vocabulary used none 25 FALSE FALSE TRUE FALSE FALSE FALSE citation topicClassValue Term A topic or subject term text 26 #VALUE TRUE FALSE FALSE TRUE FALSE FALSE topicClassification citation topicClassVocab Controlled Vocabulary Name The controlled vocabulary used for the keyword term (e.g. LCSH, MeSH) text 27 (#VALUE) FALSE FALSE FALSE FALSE FALSE FALSE topicClassification citation diff --git a/src/main/java/propertyFiles/citation.properties b/src/main/java/propertyFiles/citation.properties index 45caabb990a..4c5f05fec81 100644 --- a/src/main/java/propertyFiles/citation.properties +++ b/src/main/java/propertyFiles/citation.properties @@ -25,7 +25,7 @@ datasetfieldtype.keyword.title=Keyword datasetfieldtype.keywordTermURI.title=Term URI datasetfieldtype.keywordValue.title=Term datasetfieldtype.keywordVocabulary.title=Controlled Vocabulary Name -datasetfieldtype.keywordVocabularyURI.title=Controlled Vocabulary URL +datasetfieldtype.keywordVocabularyURL.title=Controlled Vocabulary URL datasetfieldtype.topicClassification.title=Topic Classification datasetfieldtype.topicClassValue.title=Term datasetfieldtype.topicClassVocab.title=Controlled Vocabulary Name diff --git a/src/main/resources/db/migration/V6.1.0.2__10288-update_keywordVocabularyURI_metadata.sql b/src/main/resources/db/migration/V6.1.0.2__10288-update_keywordVocabularyURI_metadata.sql new file mode 100644 index 00000000000..ee47d3e9a28 --- /dev/null +++ b/src/main/resources/db/migration/V6.1.0.2__10288-update_keywordVocabularyURI_metadata.sql @@ -0,0 +1,5 @@ +-- update of the "keywordVocabularyURI" metadata to make it consistent with its name "Controlled Vocabulary URL" +UPDATE datasetfieldtype SET name = 'keywordVocabularyURL' +WHERE name = 'keywordVocabularyURI' +AND parentdatasetfieldtype_id = ( + SELECT id FROM datasetfieldtype WHERE name = 'keyword') ; \ No newline at end of file