diff --git a/adsingestschema/Document.json b/adsingestschema/Document.json index 31d63bf..e8a79cb 100644 --- a/adsingestschema/Document.json +++ b/adsingestschema/Document.json @@ -55,21 +55,10 @@ } }, "title": { - "type": "object", - "properties": { - "textEnglish": { - "type": "string" - }, - "textNative": { - "type": "string" - }, - "langNative": { - "type": "string" - } - } + "$ref": "./Title.json" }, "subtitle": { - "type": "string" + "$ref": "./Title.json" }, "abstract": { "type": "object", diff --git a/adsingestschema/Title.json b/adsingestschema/Title.json new file mode 100644 index 0000000..6cec3f3 --- /dev/null +++ b/adsingestschema/Title.json @@ -0,0 +1,23 @@ +{ + "title": "Title", + "description": "Holds the title data, including multiple language fields, and a list to hold any notes/xrefs provided by the publisher", + "type": "object", + "properties": { + "textEnglish": { + "type": "string" + }, + "textNative": { + "type": "string" + }, + "langNative": { + "type": "string" + }, + "textNotes": { + "type": "array", + "description": "Footnotes and xrefs associated with title(s)", + "items": { + "type": "string" + } + } + } +}