JSON MARC decoding + tests
[yaz-moved-to-github.git] / test / marc7.json
diff --git a/test/marc7.json b/test/marc7.json
new file mode 100644 (file)
index 0000000..97cc6da
--- /dev/null
@@ -0,0 +1,370 @@
+{
+       "leader":"03114cam  2200349 i 4500",
+       "fields":
+       [
+               {
+                       "001":"   77123332 "
+               },
+               {
+                       "003":"DLC"
+               },
+               {
+                       "005":"20051218154744.0"
+               },
+               {
+                       "008":"981008b2001    ilu           000 0 eng  "
+               },
+               {
+                       "035":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"57779"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "035":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"90490"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "035":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"93202"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "040":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"DLC"
+                                       },
+                                       {
+                                               "c":"DLC"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "906":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"0"
+                                       },
+                                       {
+                                               "b":"und"
+                                       },
+                                       {
+                                               "c":"orignew"
+                                       },
+                                       {
+                                               "d":"u"
+                                       },
+                                       {
+                                               "e":"ncip"
+                                       },
+                                       {
+                                               "f":"19"
+                                       },
+                                       {
+                                               "g":"y-gencatlg"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "010":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"   77123332 "
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "245":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"Voyager Diacritic test -- New input 001 (SBIE)."
+                                       }
+                               ],
+                               "ind1":"0",
+                               "ind2":"0"
+                       }
+
+               },
+               {
+                       "260":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"ny :"
+                                       },
+                                       {
+                                               "b":"ny,"
+                                       },
+                                       {
+                                               "c":"2001."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "300":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"100 p. ;"
+                                       },
+                                       {
+                                               "c":"12 cm."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"New copy imported from file (8/12/99)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 0  (NEW):  Degree sign (°);  Phono Copyright mark (℗);  Copyright mark (©);  Sharp (♯);  Inverted Question mark (¿);  Inverted Exclamation mark (¡)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 1:  Script L (ℓ);  Polish L (Ł);  Scandanavian O (Ø);  D with Crossbar (Đ);  Icelandic Thorn (Þ);  AE Digraph (Æ); OE Digraph (Œ);  Miagkii Znak (ʹ);  Dot at Midline (·)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 2:  Musical Flat (♭);  Patent Mark (®);  Plus or Minus (±);  O Hook (Ơ);  U Hook (Ư);  Alif (ʼ);  alpha α;  Ayn (ʻ);  Polish l (ł)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 3:  Scandanavian o (ø);  d with crossbar (đ);  Icelandic Thorn (þ);  ae Digraph (æ);  oe Digraph (œ);  Tverdii Znak (ʺ);  Turkish i (ı);  British Pound (£);  eth (ð)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 4:  Dagger (DO NOT USE);  o Hook (ơ);  u Hook (ư);  Beta β;  Gamma γ;  Superscript 0 (⁰);  Superscript 1 (¹);  Superscript 2 (²);  Superscript 3 (³)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 5:  Superscript 4 (⁴);  Superscript 5 (⁵);  Superscript 6 (⁶);  Superscript 7 (⁷);  Superscript 8 (⁸);  Superscript 9 (⁹);  Superscript + (⁺);  Superscript - (⁻);  Superscript ( (⁽)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 6:  Superscript ) (⁾);  Subscript 0 (₀);  Subscript  1 (₁);  Subscript 2 (₂);  Subscript 3 (₃);  Subscript 4 (₄);  Subscript 5 (₅);  Subscript 6 (₆);  Subscript 7 (₇)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 7:  Subscript 8 (₈);  Subscript 9 (₉);  Subscript + (₊);  Subscript - (₋);  Subscript ( (₍);  Subscript ) (₎);  Pseudo Question Mark (ỏ);  Grave (ò);  Acute (ó)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 8:  Circumflex (ô);  Tilde (õ);  Macron (ō);  Breve (ŏ);  Superior Dot (ȯ);  Umlaut (ö);  Hacek (ǒ);  Circle Above (o̊);  Ligature left (o͡)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 9:  Ligature right (o) ;  High Comma off center (o̕);  Double Acute (ő);  Candrabindu (o̐);  Cedilla (o̧);  Right Hook (ǫ);  Dot Below (ọ);  Double Dot Below (o̤);  Circle Below (o̥)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER COLUMN 10:  Double Underscore (o̳);  Underscore (o̲);  Left Hook (o̦);  Right Cedilla (o̜);  Upadhmaniya (o̮);  Double Tilde 1st half (o͠);  Double Tilde 2nd half (o) ;  High Comma centered (o̓)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"VOYAGER PC Keyboard:  Spacing Circumflex (^); Spacing Underscore (_); Spacing Grave (`); Open Curly Bracket ({); Close Curly Bracket (}); Spacing Tilde (~)."
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               },
+               {
+                       "500":
+                       {
+                               "subfields":
+                               [
+                                       {
+                                               "a":"Standard PC Keyboard:   1234567890-=   !@#$%^&*()_+   qwertyuiop[]\\   QWERTYUIOP{}|   asdfghjkl;'  ASDFGHJKL:\"   zxcvbnm,./   ZXCVBNM<>?"
+                                       }
+                               ],
+                               "ind1":" ",
+                               "ind2":" "
+                       }
+
+               }
+       ]
+}