From 5c72b12a61d9fd2237b1c6ce4063de1cb3630cc2 Mon Sep 17 00:00:00 2001 From: Dominick Leppich Date: Fri, 20 Sep 2024 11:30:49 +0200 Subject: [PATCH] task: extend book sample --- install/samples/books/2_types/Date.json | 4 ++++ install/samples/books/2_types/ISBN13.json | 4 ++++ .../samples/books/5_schemas/Books_Schema.json | 20 +++++++++++++++++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 install/samples/books/2_types/Date.json create mode 100644 install/samples/books/2_types/ISBN13.json diff --git a/install/samples/books/2_types/Date.json b/install/samples/books/2_types/Date.json new file mode 100644 index 0000000..1543f26 --- /dev/null +++ b/install/samples/books/2_types/Date.json @@ -0,0 +1,4 @@ +{ + "name": "Datum", + "validation": "\\d{2}\\.\\d{2}\\.\\d{4}" +} \ No newline at end of file diff --git a/install/samples/books/2_types/ISBN13.json b/install/samples/books/2_types/ISBN13.json new file mode 100644 index 0000000..dee6026 --- /dev/null +++ b/install/samples/books/2_types/ISBN13.json @@ -0,0 +1,4 @@ +{ + "name": "ISBN-13", + "validation": "\\d{3}\\-\\d{1}\\-\\d{2}\\-\\d{6}\\-\\d{1}" +} \ No newline at end of file diff --git a/install/samples/books/5_schemas/Books_Schema.json b/install/samples/books/5_schemas/Books_Schema.json index f34770f..6401e6c 100644 --- a/install/samples/books/5_schemas/Books_Schema.json +++ b/install/samples/books/5_schemas/Books_Schema.json @@ -5,7 +5,7 @@ "typeId": {{types_Number}}, "required": true, "unique": true, - "mainEntry": true, + "mainEntry": false, "titleField": false }, { @@ -13,7 +13,7 @@ "typeId": {{types_Anything}}, "required": true, "unique": true, - "mainEntry": false, + "mainEntry": true, "titleField": true, "translationDefinitions": [ { @@ -33,6 +33,22 @@ } ] }, + { + "name": "ISBN", + "typeId": {{types_ISBN13}}, + "required": true, + "unique": true, + "mainEntry": false, + "titleField": false + }, + { + "name": "Veröffentlichung", + "typeId": {{types_Date}}, + "required": false, + "unique": false, + "mainEntry": false, + "titleField": false + }, { "name": "Autoren", "referenceVocabularyId": {{vocabularies_Authors}},