Mollywhite has uploaded a new change for review.
https://gerrit.wikimedia.org/r/84921
Change subject: Update to new version of schema
......................................................................
Update to new version of schema
This uses "*-field" in the i18n fields.
Change-Id: I6a3980f83740a2f80d5ea56be7ceef4db0a1805a
---
M schemas/bookschema.json
1 file changed, 45 insertions(+), 38 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BookManagerv2
refs/changes/21/84921/1
diff --git a/schemas/bookschema.json b/schemas/bookschema.json
index f95aff2..acd4952 100644
--- a/schemas/bookschema.json
+++ b/schemas/bookschema.json
@@ -6,7 +6,7 @@
"type": "string",
"required": true,
"additionalProperties": {
- "i18n": "bookmanagerv2-title"
+ "i18n": "bookmanagerv2-title-field"
}
},
"alternate_titles": {
@@ -20,7 +20,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-alternate-titles"
+ "i18n": "bookmanagerv2-alternate-titles-field"
}
},
"authors": {
@@ -34,7 +34,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-authors"
+ "i18n": "bookmanagerv2-authors-field"
}
},
"translators": {
@@ -48,7 +48,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-translators"
+ "i18n": "bookmanagerv2-translators-field"
}
},
"editors": {
@@ -62,7 +62,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-editors"
+ "i18n": "bookmanagerv2-editors-field"
}
},
"illustrators": {
@@ -76,7 +76,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-illustrators"
+ "i18n": "bookmanagerv2-illustrators-field"
}
},
"subtitle": {
@@ -84,7 +84,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-subtitle"
+ "i18n": "bookmanagerv2-subtitle-field"
}
},
"series_title": {
@@ -92,7 +92,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-series-title"
+ "i18n": "bookmanagerv2-series-title-field"
}
},
"volume": {
@@ -100,7 +100,7 @@
"type": "number",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-volume"
+ "i18n": "bookmanagerv2-volume-field"
}
},
"edition": {
@@ -108,7 +108,7 @@
"type": "number",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-edition"
+ "i18n": "bookmanagerv2-edition-field"
}
},
"publisher": {
@@ -116,7 +116,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-publisher"
+ "i18n": "bookmanagerv2-publisher-field"
}
},
"printer": {
@@ -124,16 +124,31 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-printer"
+ "i18n": "bookmanagerv2-printer-field"
}
},
- "publication_date": {
- "description": "Date of publication of the work",
- "type": "string",
+ "publication_year": {
+ "description": "Year of publication of the work",
+ "type": "integer",
"required": false,
"additionalProperties": {
- "date_format": "YMD",
- "i18n": "bookmanagerv2-publication-date"
+ "i18n": "bookmanagerv2-publication-year-field"
+ }
+ },
+ "publication_month": {
+ "description": "Month of publication of the work",
+ "type": "integer",
+ "required": false,
+ "additionalProperties": {
+ "i18n": "bookmanagerv2-publication-month-field"
+ }
+ },
+ "publication_day": {
+ "description": "Day of publication of the work",
+ "type": "integer",
+ "required": false,
+ "additionalProperties": {
+ "i18n": "bookmanagerv2-publication-day-field"
}
},
"publication_city": {
@@ -141,7 +156,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-publication-city"
+ "i18n": "bookmanagerv2-publication-city-field"
}
},
"language": {
@@ -149,7 +164,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-language"
+ "i18n": "bookmanagerv2-language-field"
}
},
"description": {
@@ -157,7 +172,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-description"
+ "i18n": "bookmanagerv2-description-field"
}
},
"source": {
@@ -165,7 +180,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-source"
+ "i18n": "bookmanagerv2-source-field"
}
},
"permission": {
@@ -173,7 +188,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-permission"
+ "i18n": "bookmanagerv2-permission-field"
}
},
"other_versions": {
@@ -187,7 +202,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-other-versions"
+ "i18n": "bookmanagerv2-other-versions-field"
}
},
"isbn": {
@@ -195,7 +210,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-isbn"
+ "i18n": "bookmanagerv2-isbn-field"
}
},
"lccn": {
@@ -203,7 +218,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-lccn"
+ "i18n": "bookmanagerv2-lccn-field"
}
},
"oclc": {
@@ -211,7 +226,7 @@
"type": "string",
"required": false,
"additionalProperties": {
- "i18n": "bookmanagerv2-oclc"
+ "i18n": "bookmanagerv2-oclc-field"
}
},
"sections": {
@@ -228,7 +243,7 @@
"type": "string",
"required": true,
"additionalProperties": {
- "i18n": "bookmanagerv2-name"
+ "i18n": "bookmanagerv2-name-field"
}
},
"link": {
@@ -236,7 +251,7 @@
"type": "string",
"required": true,
"additionalProperties": {
- "i18n": "bookmanagerv2-link"
+ "i18n": "bookmanagerv2-link-field"
}
},
"source": {
@@ -244,15 +259,7 @@
"required": false,
"type": "string",
"additionalProperties": {
- "i18n": "bookmanagerv2-source"
- }
- },
- "indentation": {
- "description": "The level of indentation for this
section",
- "required": false,
- "type": "integer",
- "aditionalProperties": {
- "i18n": "bookmanagerv2-indentation-field"
+ "i18n": "bookmanagerv2-source-field"
}
}
},
@@ -260,7 +267,7 @@
}
],
"additionalProperties": {
- "i18n": "bookmanagerv2-sections"
+ "i18n": "bookmanagerv2-sections-field"
}
}
},
--
To view, visit https://gerrit.wikimedia.org/r/84921
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6a3980f83740a2f80d5ea56be7ceef4db0a1805a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BookManagerv2
Gerrit-Branch: master
Gerrit-Owner: Mollywhite <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits