@natlibfi/marc-record-validators-melinda 11.3.6 → 11.3.7-alpha.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 (100) hide show
  1. package/dist/punctuation2.js +42 -10
  2. package/dist/punctuation2.js.map +1 -1
  3. package/dist/urn.js +15 -6
  4. package/dist/urn.js.map +1 -1
  5. package/dist/urn.spec.js +45 -276
  6. package/dist/urn.spec.js.map +1 -1
  7. package/package.json +10 -10
  8. package/src/punctuation2.js +27 -10
  9. package/src/urn.js +17 -3
  10. package/src/urn.spec.js +49 -264
  11. package/test-fixtures/cyrillux/f09/expectedResult.json +4 -4
  12. package/test-fixtures/punctuation2/787/expectedResult.json +14 -0
  13. package/test-fixtures/punctuation2/787/metadata.json +5 -0
  14. package/test-fixtures/punctuation2/787/record.json +13 -0
  15. package/test-fixtures/sort-fields/05/input.json +11 -10
  16. package/test-fixtures/sort-fields/05/result.json +10 -10
  17. package/test-fixtures/strip-punctuation/787/expectedResult.json +14 -0
  18. package/test-fixtures/strip-punctuation/787/metadata.json +5 -0
  19. package/test-fixtures/strip-punctuation/787/record.json +13 -0
  20. package/test-fixtures/urn/f01/input.json +15 -0
  21. package/test-fixtures/urn/f01/metadata.json +6 -0
  22. package/test-fixtures/urn/f01/result.json +16 -0
  23. package/test-fixtures/urn/f02/input.json +11 -0
  24. package/test-fixtures/urn/f02/metadata.json +7 -0
  25. package/test-fixtures/urn/f02/result.json +15 -0
  26. package/test-fixtures/urn/f03/input.json +8 -0
  27. package/test-fixtures/urn/f03/metadata.json +7 -0
  28. package/test-fixtures/urn/f03/result.json +12 -0
  29. package/test-fixtures/urn/f04/input.json +9 -0
  30. package/test-fixtures/urn/f04/metadata.json +7 -0
  31. package/test-fixtures/urn/f04/result.json +13 -0
  32. package/test-fixtures/urn/f05/input.json +9 -0
  33. package/test-fixtures/urn/f05/metadata.json +9 -0
  34. package/test-fixtures/urn/f05/result.json +13 -0
  35. package/test-fixtures/urn/f06/input.json +17 -0
  36. package/test-fixtures/urn/f06/metadata.json +6 -0
  37. package/test-fixtures/urn/f06/result.json +18 -0
  38. package/test-fixtures/urn/f07/input.json +17 -0
  39. package/test-fixtures/urn/f07/metadata.json +6 -0
  40. package/test-fixtures/urn/f07/result.json +18 -0
  41. package/test-fixtures/urn/f08/input.json +11 -0
  42. package/test-fixtures/urn/f08/metadata.json +6 -0
  43. package/test-fixtures/urn/f08/result.json +17 -0
  44. package/test-fixtures/urn/f09/input.json +7 -0
  45. package/test-fixtures/urn/f09/metadata.json +7 -0
  46. package/test-fixtures/urn/f09/result.json +8 -0
  47. package/test-fixtures/urn/f10/input.json +7 -0
  48. package/test-fixtures/urn/f10/metadata.json +7 -0
  49. package/test-fixtures/urn/f10/result.json +8 -0
  50. package/test-fixtures/urn/f11/input.json +7 -0
  51. package/test-fixtures/urn/f11/metadata.json +7 -0
  52. package/test-fixtures/urn/f11/result.json +8 -0
  53. package/test-fixtures/urn/f12/input.json +8 -0
  54. package/test-fixtures/urn/f12/metadata.json +6 -0
  55. package/test-fixtures/urn/f12/result.json +14 -0
  56. package/test-fixtures/urn/f13/input.json +14 -0
  57. package/test-fixtures/urn/f13/metadata.json +6 -0
  58. package/test-fixtures/urn/f13/result.json +20 -0
  59. package/test-fixtures/urn/f14/input.json +14 -0
  60. package/test-fixtures/urn/f14/metadata.json +6 -0
  61. package/test-fixtures/urn/f14/result.json +20 -0
  62. package/test-fixtures/urn/f15/input.json +11 -0
  63. package/test-fixtures/urn/f15/metadata.json +7 -0
  64. package/test-fixtures/urn/f15/result.json +17 -0
  65. package/test-fixtures/urn/v01/input.json +14 -0
  66. package/test-fixtures/urn/v01/metadata.json +6 -0
  67. package/test-fixtures/urn/v01/result.json +3 -0
  68. package/test-fixtures/urn/v02/input.json +18 -0
  69. package/test-fixtures/urn/v02/metadata.json +6 -0
  70. package/test-fixtures/urn/v02/result.json +3 -0
  71. package/test-fixtures/urn/v03/input.json +18 -0
  72. package/test-fixtures/urn/v03/metadata.json +6 -0
  73. package/test-fixtures/urn/v03/result.json +3 -0
  74. package/test-fixtures/urn/v04/input.json +18 -0
  75. package/test-fixtures/urn/v04/metadata.json +6 -0
  76. package/test-fixtures/urn/v04/result.json +3 -0
  77. package/test-fixtures/urn/v05/input.json +18 -0
  78. package/test-fixtures/urn/v05/metadata.json +6 -0
  79. package/test-fixtures/urn/v05/result.json +3 -0
  80. package/test-fixtures/urn/v06/input.json +16 -0
  81. package/test-fixtures/urn/v06/metadata.json +6 -0
  82. package/test-fixtures/urn/v06/result.json +3 -0
  83. package/test-fixtures/urn/v07/input.json +16 -0
  84. package/test-fixtures/urn/v07/metadata.json +6 -0
  85. package/test-fixtures/urn/v07/result.json +3 -0
  86. package/test-fixtures/urn/v08/input.json +15 -0
  87. package/test-fixtures/urn/v08/metadata.json +6 -0
  88. package/test-fixtures/urn/v08/result.json +3 -0
  89. package/test-fixtures/urn/v09/input.json +13 -0
  90. package/test-fixtures/urn/v09/metadata.json +6 -0
  91. package/test-fixtures/urn/v09/result.json +3 -0
  92. package/test-fixtures/urn/v10/input.json +13 -0
  93. package/test-fixtures/urn/v10/metadata.json +6 -0
  94. package/test-fixtures/urn/v10/result.json +3 -0
  95. package/test-fixtures/urn/v11/input.json +21 -0
  96. package/test-fixtures/urn/v11/metadata.json +6 -0
  97. package/test-fixtures/urn/v11/result.json +3 -0
  98. package/test-fixtures/urn/v12/input.json +12 -0
  99. package/test-fixtures/urn/v12/metadata.json +6 -0
  100. package/test-fixtures/urn/v12/result.json +3 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "description": "F05. Missing 856, and is non-legal deposit, two 020 fields; Adds 856 with urn from first 020 (https)",
3
+ "comment": "should we actually add non-resolvable urns?",
4
+ "fix": true,
5
+ "only": false,
6
+ "isLegalDeposit": false,
7
+ "comment #2": "we should think about how to choose the isbn to use in case of several ISBNs",
8
+ "skip": true
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "9789519155470"} ]},
8
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
9
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
10
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-951-9155-47-0"}
11
+ ]}
12
+ ]
13
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "9789519155470"} ]},
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "http://foo.bar/"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
12
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"},
13
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
14
+ {"code": "5", "value": "FI-Vapaa"}
15
+ ]}
16
+ ]
17
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F06. 856 with urn and legal deposit fields, and is legal deposit; Nothing to add",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "9789519155470"} ]},
7
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
8
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
9
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
10
+ {"code": "u", "value": "http://foo.bar/"}
11
+ ]},
12
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
13
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"},
14
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
15
+ {"code": "5", "value": "FI-Vapaa"}
16
+ ]}
17
+ ]
18
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "9789519155470"} ]},
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "http://foo.bar/"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
12
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"},
13
+ {"code": "z", "value": "Käytettävissä vapaakappalekirjastoissa"},
14
+ {"code": "5", "value": "FI-Vapaa"}
15
+ ]}
16
+ ]
17
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F07. 856 with urn and legal deposit fields, and is legal deposit but phrase is old; change phrase to new",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "9789519155470"} ]},
7
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
8
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
9
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
10
+ {"code": "u", "value": "http://foo.bar/"}
11
+ ]},
12
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
13
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"},
14
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
15
+ {"code": "5", "value": "FI-Vapaa"}
16
+ ]}
17
+ ]
18
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
7
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
8
+ {"code": "u", "value": "http://foo.bar/"}
9
+ ]}
10
+ ]
11
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F08. 856 without urn, and is legal deposit; Adds 856 with urn (https) and legal deposit fields",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "http://foo.bar/"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
12
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-951-9155-47-0"},
13
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
14
+ {"code": "5", "value": "FI-Vapaa"}
15
+ ]}
16
+ ]
17
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "we should test generating the URN in case of no ISBN",
3
+ "skip": true,
4
+ "fix": true,
5
+ "only": false,
6
+ "isLegalDeposit": true
7
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
7
+ ]
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "we should test creating Melinda-temp field",
3
+ "skip": true,
4
+ "fix": true,
5
+ "only": false,
6
+ "isLegalDeposit": true
7
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
7
+ ]
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
6
+ ]
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "We shouldn't lock the open URN for legal deposit use",
3
+ "skip": true,
4
+ "fix": true,
5
+ "only": false,
6
+ "isLegalDeposit": true
7
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "500", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "Test-to-do."} ]}
7
+ ]
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] }
7
+ ]
8
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F08. 856 without urn, and is legal deposit; Adds 856 with urn (https) and legal deposit fields",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-951-9155-47-0"},
10
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
11
+ {"code": "5", "value": "FI-Vapaa"}
12
+ ]}
13
+ ]
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
7
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
8
+ {"code": "u", "value": "http://foo.bar/"}
9
+ ]},
10
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
11
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
12
+ ]}
13
+ ]
14
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F13. 856 with urn, and is legal deposit; Adds another f856 with URN and legal deposit fields",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "http://foo.bar/"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
12
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
13
+ ]},
14
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
15
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-951-9155-47-0"},
16
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
17
+ {"code": "5", "value": "FI-Vapaa"}
18
+ ]}
19
+ ]
20
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
7
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
8
+ {"code": "u", "value": "http://foo.bar/"}
9
+ ]},
10
+ { "tag": "856", "ind1": "4", "ind2": "1", "subfields": [
11
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
12
+ ]}
13
+ ]
14
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "F14: 856 with non-resource-urn, and is legal deposit; Adds another f856 with URN and legal deposit fields",
3
+ "fix": true,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
7
+ { "tag": "337", "ind1": " ", "ind2": " ", "subfields": [ {"code": "b", "value": "c"}, {"code": "2", "value": "rdamedia"} ] },
8
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
9
+ {"code": "u", "value": "http://foo.bar/"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "1", "subfields": [
12
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
13
+ ]},
14
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
15
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-951-9155-47-0"},
16
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
17
+ {"code": "5", "value": "FI-Vapaa"}
18
+ ]}
19
+ ]
20
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-952-11-4478-3"} ]},
6
+ { "tag": "856", "ind1": "4", "ind2": "1", "subfields": [
7
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-952-11-4478-3"},
8
+ {"code": "y", "value": "Linkki verkkoaineistoon"}
9
+ ]}
10
+ ]
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "description": "F15: MET-573. Similar to F14.",
3
+ "fix": true,
4
+ "skip": false,
5
+ "only": false,
6
+ "isLegalDeposit": true
7
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "_validationOptions": {},
3
+ "leader": "01331cam a22003494i 4500",
4
+ "fields": [
5
+ { "tag": "001", "value": "000000001" },
6
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-952-11-4478-3"} ]},
7
+ { "tag": "856", "ind1": "4", "ind2": "1", "subfields": [
8
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-952-11-4478-3"},
9
+ {"code": "y", "value": "Linkki verkkoaineistoon"}
10
+ ]},
11
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
12
+ {"code": "u", "value": "https://urn.fi/URN:ISBN:978-952-11-4478-3"},
13
+ {"code": "z", "value": "Käytettävissä vapaakappaletyöasemilla"},
14
+ {"code": "5", "value": "FI-Vapaa"}
15
+ ]}
16
+ ]
17
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "337",
6
+ "ind1": " ",
7
+ "ind2": " ",
8
+ "subfields": [
9
+ {"code": "b", "value": "n"},
10
+ {"code": "2", "value": "rdamedia"}
11
+ ]
12
+ }
13
+ ]
14
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record valid; non-electronic record",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": false
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": true
3
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "337",
6
+ "ind1": " ",
7
+ "ind2": " ",
8
+ "subfields": [
9
+ {"code": "b", "value": "c"},
10
+ {"code": "2", "value": "rdamedia"}
11
+ ]
12
+ },
13
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [
14
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
15
+ ]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record valid; 856 with urn, and is non-legal deposit",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": false
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": true
3
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "337",
6
+ "ind1": " ",
7
+ "ind2": " ",
8
+ "subfields": [
9
+ {"code": "b", "value": "c"},
10
+ {"code": "2", "value": "rdamedia"}
11
+ ]
12
+ },
13
+ { "tag": "856", "ind1": "4", "ind2": "1", "subfields": [
14
+ {"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}
15
+ ]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record invalid; 856 ind2: 1 with urn, and is non-legal deposit",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": false
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": false
3
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "337",
6
+ "ind1": " ",
7
+ "ind2": " ",
8
+ "subfields": [
9
+ {"code": "b", "value": "c"},
10
+ {"code": "2", "value": "rdamedia"}
11
+ ]
12
+ },
13
+ { "tag": "856", "ind1": "4", "ind2": "o", "subfields": [
14
+ {"code": "u", "value": "http://foo.bar"}
15
+ ]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record invalid; 856 without urn, and is non-legal deposit",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": false
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": false
3
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "337",
6
+ "ind1": " ",
7
+ "ind2": " ",
8
+ "subfields": [
9
+ {"code": "b", "value": "c"},
10
+ {"code": "2", "value": "rdamedia"}
11
+ ]
12
+ },
13
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [
14
+ {"code": "a", "value": "978-951-9155-47-0"}
15
+ ]
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record invalid; 856 without urn, and is non-legal deposit",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": false
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": false
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337",
7
+ "ind1": " ",
8
+ "ind2": " ",
9
+ "subfields": [
10
+ {"code": "b", "value": "c"},
11
+ {"code": "2", "value": "rdamedia"}
12
+ ]
13
+ },
14
+ { "tag": "856", "ind1": "4", "ind2": "0", "subfields": [{"code": "u", "value": "http://urn.fi/URN:ISBN:978-951-9155-47-0"}]}
15
+ ]
16
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "description": "Finds the record invalid; 856 with urn, and is legal deposit",
3
+ "fix": false,
4
+ "only": false,
5
+ "isLegalDeposit": true
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "valid": false
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "leader": "01331cam a22003494i 4500",
3
+ "fields": [
4
+ { "tag": "001", "value": "000000001" },
5
+ { "tag": "020", "ind1": " ", "ind2": " ", "subfields": [ {"code": "a", "value": "978-951-9155-47-0"} ]},
6
+ { "tag": "337",
7
+ "ind1": " ",
8
+ "ind2": " ",
9
+ "subfields": [
10
+ {"code": "b", "value": "c"},
11
+ {"code": "2", "value": "rdamedia"}
12
+ ]
13
+ },
14
+ { "tag": "856", "ind1": "4", "ind2": "o", "subfields": [ {"code": "u", "value": "http://foo.bar"} ] }
15
+ ]
16
+ }