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}},