Mollywhite has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/72559


Change subject: Bug 50674: Adding an example JSON book structure.
......................................................................

Bug 50674: Adding an example JSON book structure.

This patch adds an example of a valid JSON block that could
be used to represent a book. I'm using it to test the
validation against the JSON schema.

Bug: 50674
Change-Id: I0d0091feced79c41ef2de2d15d5490f21f90fb4a
---
A examples/book.json
1 file changed, 55 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BookManagerv2 
refs/changes/59/72559/1

diff --git a/examples/book.json b/examples/book.json
new file mode 100644
index 0000000..15f6f60
--- /dev/null
+++ b/examples/book.json
@@ -0,0 +1,55 @@
+{
+       "title": "The Interpretation of Dreams",
+       "authors": [ "Sigmund Freud" ],
+       "translators": [ "A. A. Brill" ],
+       "edition": 3,
+       "publisher": "The Macmillan Company",
+       "publication_year": 1913,
+       "publication_city": "New York",
+       "language": "en",
+       "description": "A book describing Sigmund Freud's theory of the 
unconcious with respect to dream interpretation.",
+       "source": "Freud - The interpretation of dreams.djvu",
+       "permission": "PD-US",
+       "sections": [
+               {
+                       "name": "The Interpretation of Dreams",
+                       "pages": [ 7, [ 9, 16 ] ]
+               },
+               {
+                       "name": "The Scientific Literature on the Problems of 
the Dream",
+                       "pages": [ [ 19, 97 ] ]
+               },
+               {
+                       "name": "Method of Dream Interpretation: The Analysis 
of a Sample Dream",
+                       "pages": [ [ 98, 120 ] ]
+               },
+               {
+                       "name": "The Dream is the Fulfilment of a Wish",
+                       "pages": [ [ 121, 130 ] ]
+               },
+               {
+                       "name": "Distortion in Dreams",
+                       "pages": [ [ 131, 155 ] ]
+               },
+               {
+                       "name": "The Material and Sources of Dreams",
+                       "pages": [ [ 156, 277 ] ]
+               },
+               {
+                       "name": "The Dream-Work",
+                       "pages": [ [ 278, 420 ] ]
+               },
+               {
+                       "name": "The Psychology of the Dream Activities",
+                       "pages": [ [ 421, 511 ] ]
+               },
+               {
+                       "name": "Literary Index",
+                       "pages": [ [ 512, 517 ] ]
+               },
+               {
+                       "name": "Index",
+                       "pages": [ [ 519, 528 ] ]
+               }
+       ]
+}

-- 
To view, visit https://gerrit.wikimedia.org/r/72559
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0d0091feced79c41ef2de2d15d5490f21f90fb4a
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

Reply via email to