@natlibfi/marc-record-validators-melinda 12.0.0 → 12.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/dist/disambiguateSeriesStatements.test.js +1 -7
  2. package/dist/disambiguateSeriesStatements.test.js.map +2 -2
  3. package/dist/drop-terms.js +122 -0
  4. package/dist/drop-terms.js.map +7 -0
  5. package/dist/drop-terms.test.js +56 -0
  6. package/dist/drop-terms.test.js.map +7 -0
  7. package/dist/field-008-18-34-character-groups.test.js +1 -7
  8. package/dist/field-008-18-34-character-groups.test.js.map +2 -2
  9. package/dist/field-505-separators.test.js +1 -7
  10. package/dist/field-505-separators.test.js.map +2 -2
  11. package/dist/field-521-fix.test.js +1 -7
  12. package/dist/field-521-fix.test.js.map +2 -2
  13. package/dist/fix-33X.test.js +1 -1
  14. package/dist/fix-33X.test.js.map +1 -1
  15. package/dist/fix-country-codes.test.js +1 -7
  16. package/dist/fix-country-codes.test.js.map +2 -2
  17. package/dist/fix-sami-041.js +87 -0
  18. package/dist/fix-sami-041.js.map +7 -0
  19. package/dist/fix-sami-041.test.js +40 -0
  20. package/dist/fix-sami-041.test.js.map +7 -0
  21. package/dist/fixRelatorTerms.test.js +1 -7
  22. package/dist/fixRelatorTerms.test.js.map +2 -2
  23. package/dist/index.js +7 -1
  24. package/dist/index.js.map +2 -2
  25. package/dist/indicator-fixes.js +10 -0
  26. package/dist/indicator-fixes.js.map +2 -2
  27. package/dist/indicator-fixes.test.js +1 -7
  28. package/dist/indicator-fixes.test.js.map +2 -2
  29. package/dist/merge-fields.test.js +2 -7
  30. package/dist/merge-fields.test.js.map +2 -2
  31. package/dist/mergeField500Lisapainokset.test.js +1 -7
  32. package/dist/mergeField500Lisapainokset.test.js.map +2 -2
  33. package/dist/mergeRelatorTermFields.test.js +1 -7
  34. package/dist/mergeRelatorTermFields.test.js.map +2 -2
  35. package/dist/multiple-subfield-0.test.js +1 -7
  36. package/dist/multiple-subfield-0.test.js.map +2 -2
  37. package/dist/normalize-dashes.test.js +1 -7
  38. package/dist/normalize-dashes.test.js.map +2 -2
  39. package/dist/normalize-identifiers.test.js +1 -7
  40. package/dist/normalize-identifiers.test.js.map +2 -2
  41. package/dist/normalize-qualifying-information.test.js +1 -7
  42. package/dist/normalize-qualifying-information.test.js.map +2 -2
  43. package/dist/normalize-utf8-diacritics.test.js +1 -7
  44. package/dist/normalize-utf8-diacritics.test.js.map +2 -2
  45. package/dist/punctuation.test.js +1 -7
  46. package/dist/punctuation.test.js.map +2 -2
  47. package/dist/punctuation2.test.js +1 -7
  48. package/dist/punctuation2.test.js.map +2 -2
  49. package/dist/reindexSubfield6OccurenceNumbers.test.js +1 -7
  50. package/dist/reindexSubfield6OccurenceNumbers.test.js.map +2 -2
  51. package/dist/remove-041-zxx.js +56 -0
  52. package/dist/remove-041-zxx.js.map +7 -0
  53. package/dist/remove-041-zxx.test.js +40 -0
  54. package/dist/remove-041-zxx.test.js.map +7 -0
  55. package/dist/removeDuplicateDataFields.test.js +1 -7
  56. package/dist/removeDuplicateDataFields.test.js.map +2 -2
  57. package/dist/removeInferiorDataFields.js +1 -9
  58. package/dist/removeInferiorDataFields.js.map +2 -2
  59. package/dist/removeInferiorDataFields.test.js +1 -7
  60. package/dist/removeInferiorDataFields.test.js.map +2 -2
  61. package/dist/resolveOrphanedSubfield6s.js +1 -3
  62. package/dist/resolveOrphanedSubfield6s.js.map +2 -2
  63. package/dist/resolveOrphanedSubfield6s.test.js +1 -7
  64. package/dist/resolveOrphanedSubfield6s.test.js.map +2 -2
  65. package/dist/sanitize-vocabulary-source-codes.test.js +1 -7
  66. package/dist/sanitize-vocabulary-source-codes.test.js.map +2 -2
  67. package/dist/sortFields.js +16 -1
  68. package/dist/sortFields.js.map +2 -2
  69. package/dist/sortFields.test.js +1 -7
  70. package/dist/sortFields.test.js.map +2 -2
  71. package/dist/sortRelatorTerms.test.js +1 -7
  72. package/dist/sortRelatorTerms.test.js.map +2 -2
  73. package/dist/sortSubfields.js +3 -1
  74. package/dist/sortSubfields.js.map +2 -2
  75. package/dist/sortSubfields.test.js +1 -7
  76. package/dist/sortSubfields.test.js.map +2 -2
  77. package/dist/stripPunctuation.js +7 -4
  78. package/dist/stripPunctuation.js.map +2 -2
  79. package/dist/stripPunctuation.test.js +1 -7
  80. package/dist/stripPunctuation.test.js.map +2 -2
  81. package/dist/subfield6Utils.js +1 -13
  82. package/dist/subfield6Utils.js.map +2 -2
  83. package/dist/subfieldValueNormalizations.test.js +1 -7
  84. package/dist/subfieldValueNormalizations.test.js.map +2 -2
  85. package/dist/sync-007-and-300.test.js +1 -7
  86. package/dist/sync-007-and-300.test.js.map +2 -2
  87. package/dist/sync-language.js +103 -0
  88. package/dist/sync-language.js.map +7 -0
  89. package/dist/sync-language.test.js +40 -0
  90. package/dist/sync-language.test.js.map +7 -0
  91. package/dist/translate-terms.js +121 -85
  92. package/dist/translate-terms.js.map +3 -3
  93. package/dist/translate-terms.test.js +5 -8
  94. package/dist/translate-terms.test.js.map +2 -2
  95. package/dist/update-field-540.test.js +1 -7
  96. package/dist/update-field-540.test.js.map +2 -2
  97. package/dist/urn.test.js +1 -7
  98. package/dist/urn.test.js.map +2 -2
  99. package/package.json +8 -6
  100. package/src/disambiguateSeriesStatements.test.js +3 -8
  101. package/src/drop-terms.js +162 -0
  102. package/src/drop-terms.test.js +81 -0
  103. package/src/field-008-18-34-character-groups.test.js +3 -8
  104. package/src/field-505-separators.test.js +3 -8
  105. package/src/field-521-fix.test.js +3 -8
  106. package/src/fix-33X.test.js +1 -1
  107. package/src/fix-country-codes.test.js +3 -8
  108. package/src/fix-sami-041.js +113 -0
  109. package/src/fix-sami-041.test.js +52 -0
  110. package/src/fixRelatorTerms.test.js +3 -8
  111. package/src/index.js +8 -1
  112. package/src/indicator-fixes.js +12 -0
  113. package/src/indicator-fixes.test.js +3 -8
  114. package/src/merge-fields.test.js +3 -8
  115. package/src/mergeField500Lisapainokset.test.js +3 -8
  116. package/src/mergeRelatorTermFields.test.js +3 -8
  117. package/src/multiple-subfield-0.test.js +3 -8
  118. package/src/normalize-dashes.test.js +3 -8
  119. package/src/normalize-identifiers.test.js +3 -8
  120. package/src/normalize-qualifying-information.test.js +3 -8
  121. package/src/normalize-utf8-diacritics.test.js +3 -8
  122. package/src/punctuation.test.js +3 -8
  123. package/src/punctuation2.test.js +3 -8
  124. package/src/reindexSubfield6OccurenceNumbers.test.js +3 -8
  125. package/src/remove-041-zxx.js +85 -0
  126. package/src/remove-041-zxx.test.js +52 -0
  127. package/src/removeDuplicateDataFields.test.js +3 -8
  128. package/src/removeInferiorDataFields.js +7 -7
  129. package/src/removeInferiorDataFields.test.js +3 -8
  130. package/src/resolveOrphanedSubfield6s.js +3 -3
  131. package/src/resolveOrphanedSubfield6s.test.js +3 -8
  132. package/src/sanitize-vocabulary-source-codes.test.js +3 -8
  133. package/src/sortFields.js +20 -1
  134. package/src/sortFields.test.js +3 -8
  135. package/src/sortRelatorTerms.test.js +3 -8
  136. package/src/sortSubfields.js +3 -1
  137. package/src/sortSubfields.test.js +3 -8
  138. package/src/stripPunctuation.js +9 -6
  139. package/src/stripPunctuation.test.js +3 -8
  140. package/src/subfield6Utils.js +13 -13
  141. package/src/subfieldValueNormalizations.test.js +3 -8
  142. package/src/sync-007-and-300.test.js +3 -8
  143. package/src/sync-language.js +148 -0
  144. package/src/sync-language.test.js +52 -0
  145. package/src/translate-terms.js +158 -103
  146. package/src/translate-terms.test.js +12 -16
  147. package/src/update-field-540.test.js +3 -8
  148. package/src/urn.test.js +3 -8
  149. package/test-fixtures/drop-terms/01/expectedResult.json +31 -0
  150. package/test-fixtures/drop-terms/01/metadata.json +6 -0
  151. package/test-fixtures/drop-terms/01/record.json +35 -0
  152. package/test-fixtures/drop-terms/02/expectedResult.json +7 -0
  153. package/test-fixtures/drop-terms/02/metadata.json +6 -0
  154. package/test-fixtures/drop-terms/02/record.json +40 -0
  155. package/test-fixtures/drop-terms/03/expectedResult.json +6 -0
  156. package/test-fixtures/drop-terms/03/metadata.json +18 -0
  157. package/test-fixtures/drop-terms/03/record.json +39 -0
  158. package/test-fixtures/drop-terms/04/expectedResult.json +6 -0
  159. package/test-fixtures/drop-terms/04/metadata.json +19 -0
  160. package/test-fixtures/drop-terms/04/record.json +24 -0
  161. package/test-fixtures/fix-language-codes/02/metadata.json +1 -1
  162. package/test-fixtures/fix-sami-041/01/expectedResult.json +6 -0
  163. package/test-fixtures/fix-sami-041/01/metadata.json +4 -0
  164. package/test-fixtures/fix-sami-041/01/record.json +13 -0
  165. package/test-fixtures/fix-sami-041/02/expectedResult.json +10 -0
  166. package/test-fixtures/fix-sami-041/02/metadata.json +4 -0
  167. package/test-fixtures/fix-sami-041/02/record.json +8 -0
  168. package/test-fixtures/fix-sami-041/03/expectedResult.json +5 -0
  169. package/test-fixtures/fix-sami-041/03/metadata.json +5 -0
  170. package/test-fixtures/fix-sami-041/03/record.json +8 -0
  171. package/test-fixtures/fix-sami-041/04/expectedResult.json +7 -0
  172. package/test-fixtures/fix-sami-041/04/metadata.json +4 -0
  173. package/test-fixtures/fix-sami-041/04/record.json +10 -0
  174. package/test-fixtures/fix-sami-041/05/expectedResult.json +10 -0
  175. package/test-fixtures/fix-sami-041/05/metadata.json +6 -0
  176. package/test-fixtures/fix-sami-041/05/record.json +8 -0
  177. package/test-fixtures/indicator-fixes/11/expectedResult.json +10 -0
  178. package/test-fixtures/indicator-fixes/11/metadata.json +4 -0
  179. package/test-fixtures/indicator-fixes/11/record.json +10 -0
  180. package/test-fixtures/merge-fields/f05/metadata.json +1 -1
  181. package/test-fixtures/remove-041-zxx/01/expectedResult.json +5 -0
  182. package/test-fixtures/remove-041-zxx/01/metadata.json +5 -0
  183. package/test-fixtures/remove-041-zxx/01/record.json +10 -0
  184. package/test-fixtures/remove-041-zxx/02/expectedResult.json +7 -0
  185. package/test-fixtures/remove-041-zxx/02/metadata.json +5 -0
  186. package/test-fixtures/remove-041-zxx/02/record.json +9 -0
  187. package/test-fixtures/remove-041-zxx/11/expectedResult.json +10 -0
  188. package/test-fixtures/remove-041-zxx/11/metadata.json +5 -0
  189. package/test-fixtures/remove-041-zxx/11/record.json +9 -0
  190. package/test-fixtures/remove-041-zxx/12/expectedResult.json +10 -0
  191. package/test-fixtures/remove-041-zxx/12/metadata.json +5 -0
  192. package/test-fixtures/remove-041-zxx/12/record.json +9 -0
  193. package/test-fixtures/sort-fields/15/input.json +9 -0
  194. package/test-fixtures/sort-fields/15/metadata.json +5 -0
  195. package/test-fixtures/sort-fields/15/result.json +10 -0
  196. package/test-fixtures/sync-language/01/expectedResult.json +5 -0
  197. package/test-fixtures/sync-language/01/metadata.json +5 -0
  198. package/test-fixtures/sync-language/01/record.json +7 -0
  199. package/test-fixtures/sync-language/02/expectedResult.json +6 -0
  200. package/test-fixtures/sync-language/02/metadata.json +5 -0
  201. package/test-fixtures/sync-language/02/record.json +10 -0
  202. package/test-fixtures/sync-language/03/expectedResult.json +6 -0
  203. package/test-fixtures/sync-language/03/metadata.json +5 -0
  204. package/test-fixtures/sync-language/03/record.json +6 -0
  205. package/test-fixtures/sync-language/10/expectedResult.json +10 -0
  206. package/test-fixtures/sync-language/10/metadata.json +5 -0
  207. package/test-fixtures/sync-language/10/record.json +8 -0
  208. package/test-fixtures/sync-language/11/expectedResult.json +10 -0
  209. package/test-fixtures/sync-language/11/metadata.json +5 -0
  210. package/test-fixtures/sync-language/11/record.json +7 -0
  211. package/test-fixtures/sync-language/12/expectedResult.json +9 -0
  212. package/test-fixtures/sync-language/12/metadata.json +6 -0
  213. package/test-fixtures/sync-language/12/record.json +6 -0
  214. package/test-fixtures/sync-language/13/expectedResult.json +10 -0
  215. package/test-fixtures/sync-language/13/metadata.json +5 -0
  216. package/test-fixtures/sync-language/13/record.json +8 -0
  217. package/test-fixtures/sync-language/14/expectedResult.json +9 -0
  218. package/test-fixtures/sync-language/14/metadata.json +5 -0
  219. package/test-fixtures/sync-language/14/record.json +7 -0
  220. package/test-fixtures/sync-language/15/expectedResult.json +9 -0
  221. package/test-fixtures/sync-language/15/metadata.json +5 -0
  222. package/test-fixtures/sync-language/15/record.json +7 -0
  223. package/test-fixtures/translate-terms/05/expectedResult.json +12 -0
  224. package/test-fixtures/translate-terms/05/metadata.json +7 -0
  225. package/test-fixtures/translate-terms/05/record.json +11 -0
  226. package/test-fixtures/translate-terms/06/expectedResult.json +12 -0
  227. package/test-fixtures/translate-terms/06/metadata.json +7 -0
  228. package/test-fixtures/translate-terms/06/record.json +11 -0
  229. package/test-fixtures/translate-terms-data.js +23 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "fields" : [
3
+ { "tag": "005", "value": "20220202020202.0" },
4
+ { "tag": "008", "value": "860616s1985 azu|||||||||||||||||swe||"}
5
+ ]
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "",
4
+ "fields" : [
5
+ { "tag": "005", "value": "20220202020202.0" },
6
+ { "tag": "008", "value": "860616s1985 fi |||||||||||||||||fin||"},
7
+ { "tag": "041", "ind1": " ", "ind2": "0", "subfields": [{"code": "a", "value": "fin"}, {"code": "h", "value": "eng"}]},
8
+ { "tag": "041", "ind1": " ", "ind2": "0", "subfields": [{"code": "a", "value": "nno"}, {"code": "h", "value": "nob"}, {"code": "2", "value": "ISO639-2"}]}
9
+ ]
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "description": "Fix language codes: nothing to do",
3
+ "fix": true,
4
+ "only": false
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "fields" : [
3
+ { "tag": "005", "value": "20220202020202.0" },
4
+ { "tag": "008", "value": "860616s1985 fi |||||||||||||||||fin||"},
5
+ { "tag": "041", "ind1": " ", "ind2": "0", "subfields": [{"code": "a", "value": "fin"}, {"code": "h", "value": "eng"}]},
6
+ { "tag": "041", "ind1": " ", "ind2": "0", "subfields": [{"code": "a", "value": "nno"}, {"code": "h", "value": "nob"}, {"code": "2", "value": "ISO639-2"}]}
7
+ ]
8
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01234ci78901234567890123",
4
+ "fields" : [
5
+ { "tag": "005", "value": "20220202020202.0" },
6
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||foo||"},
7
+ { "tag": "041", "ind1": " ", "ind2": " ", "subfields": [{"code": "d", "value": "foo"}]}
8
+ ]
9
+
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "description": "11: Copy 008/35-37 to 041$d",
3
+ "fix": true,
4
+ "only": false
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01234ci78901234567890123",
3
+ "fields" : [
4
+ { "tag": "005", "value": "20220202020202.0" },
5
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||foo||"}
6
+ ]
7
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "fields" : [
4
+ { "tag": "005", "value": "20220202020202.0" },
5
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||bar||"},
6
+ { "tag": "041", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "bar"}]}
7
+ ]
8
+
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "12: Copy 008/35-37 to 041$a",
3
+ "comment": "No leader, 041 subfield selection defaults to '$a'",
4
+ "fix": true,
5
+ "only": false
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "fields" : [
3
+ { "tag": "005", "value": "20220202020202.0" },
4
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||bar||"}
5
+ ]
6
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "",
4
+ "fields" : [
5
+ { "tag": "005", "value": "20220202020202.0" },
6
+ { "tag": "008", "value": "860616s1985 fi |||||||||||||||||swe||"},
7
+ { "tag": "041", "ind1": " ", "ind2": "7", "subfields": [{"code": "a", "value": "fin"}, {"code": "2", "value": "iso-639-3"}]},
8
+ { "tag": "041", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "nno"}, {"code": "h", "value": "nob"}, {"code": "2", "value": "ISO639-2"}]}
9
+ ]
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "description": "Fix language codes: nothing to do as first 041 has $2",
3
+ "fix": true,
4
+ "only": false
5
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "fields" : [
3
+ { "tag": "005", "value": "20220202020202.0" },
4
+ { "tag": "008", "value": "860616s1985 fi |||||||||||||||||swe||"},
5
+ { "tag": "041", "ind1": " ", "ind2": "7", "subfields": [{"code": "a", "value": "fin"}, {"code": "2", "value": "iso-639-3"}]},
6
+ { "tag": "041", "ind1": " ", "ind2": " ", "subfields": [{"code": "a", "value": "nno"}, {"code": "h", "value": "nob"}, {"code": "2", "value": "ISO639-2"}]}
7
+ ]
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01234ci78901234567890123",
4
+ "fields" : [
5
+ { "tag": "005", "value": "20220202020202.0" },
6
+ { "tag": "008", "value": "860616s1985 tma||||||||||||||||||||||"}
7
+ ]
8
+
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "description": "11: Don't copy 008/35-37 '|||' to 041$d",
3
+ "fix": true,
4
+ "only": false
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01234ci78901234567890123",
3
+ "fields" : [
4
+ { "tag": "005", "value": "20220202020202.0" },
5
+ { "tag": "008", "value": "860616s1985 tma||||||||||||||||||||||"}
6
+ ]
7
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01234ci78901234567890123",
4
+ "fields" : [
5
+ { "tag": "005", "value": "20220202020202.0" },
6
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||zxx||"}
7
+ ]
8
+
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "description": "11: Don't copy 008/35-37 'zxx' to 041$d",
3
+ "fix": true,
4
+ "only": false
5
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01234ci78901234567890123",
3
+ "fields" : [
4
+ { "tag": "005", "value": "20220202020202.0" },
5
+ { "tag": "008", "value": "860616s1985 tma|||||||||||||||||zxx||"}
6
+ ]
7
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "fields": [
4
+ { "tag": "650", "ind1": " ", "ind2": "7", "subfields": [
5
+ { "code": "a", "value": "ruotsinnukseton valetermi, joka toimii vain mockina'" },
6
+ { "code": "2", "value": "yso/fin" },
7
+ { "code": "0", "value": "http://www.yso.fi/onto/yso/p666"}
8
+ ]}
9
+
10
+ ],
11
+ "leader": ""
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "05: yso/fin term that has not yet been translated into Swedish",
3
+ "comment": "No translation is added. Checks that nothing breaks.",
4
+ "fix": true,
5
+ "only": false,
6
+ "skip": false
7
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "",
4
+ "fields": [
5
+ { "tag": "650", "ind1": " ", "ind2": "7", "subfields": [
6
+ { "code": "a", "value": "ruotsinnukseton valetermi, joka toimii vain mockina'" },
7
+ { "code": "2", "value": "yso/fin" },
8
+ { "code": "0", "value": "http://www.yso.fi/onto/yso/p666"}
9
+ ]}
10
+ ]
11
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "fields": [
4
+ { "tag": "650", "ind1": " ", "ind2": "7", "subfields": [
5
+ { "code": "a", "value": "ravurit" },
6
+ { "code": "2", "value": "yso/fin" },
7
+ { "code": "0", "value": "http://www.yso.fi/onto/yso/p500"}
8
+ ]}
9
+
10
+ ],
11
+ "leader": ""
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "06: altLabel yso/fin term can not be translated",
3
+ "comment": "No translation is added. Checks that nothing breaks.",
4
+ "fix": true,
5
+ "only": false,
6
+ "skip": false
7
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "",
4
+ "fields": [
5
+ { "tag": "650", "ind1": " ", "ind2": "7", "subfields": [
6
+ { "code": "a", "value": "ravurit" },
7
+ { "code": "2", "value": "yso/fin" },
8
+ { "code": "0", "value": "http://www.yso.fi/onto/yso/p500"}
9
+ ]}
10
+ ]
11
+ }
@@ -7,6 +7,29 @@ const fakeTerms = {
7
7
  { lang: 'sv', value: 'bryggor'}
8
8
  ]
9
9
  },
10
+ {
11
+ uri: 'http://www.yso.fi/onto/yso/p444',
12
+ prefLabel: [
13
+ { lang: 'fi', value: 'marxismi' },
14
+ { lang: 'sv', value: 'marxism'}
15
+ ]
16
+ },
17
+ {
18
+ uri: 'http://www.yso.fi/onto/yso/p500',
19
+ prefLabel: [
20
+ { lang: 'fi', value: 'ravihevoset' },
21
+ { lang: 'sv', value: 'travhästar'}
22
+ ],
23
+ altLabel: [
24
+ { lang: 'fi', value: 'ravurit' }
25
+ ]
26
+ },
27
+ {
28
+ uri: 'http://www.yso.fi/onto/yso/p666',
29
+ prefLabel: [
30
+ { lang: 'fi', value: 'ruotsinnukseton valetermi, joka toimii vain mockina' },
31
+ ]
32
+ },
10
33
  {
11
34
  uri: 'http://www.yso.fi/onto/yso/p111739',
12
35
  prefLabel: [