@natlibfi/marc-record-merge 6.0.0-beta.5 → 6.0.0-beta.8
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.
- package/README.md +14 -0
- package/dist/reducers/copy.js +59 -3
- package/dist/reducers/copy.js.map +1 -1
- package/dist/reducers/copy.spec.js +15 -17
- package/dist/reducers/copy.spec.js.map +1 -1
- package/dist/reducers/select.js +10 -2
- package/dist/reducers/select.js.map +1 -1
- package/dist/reducers/select.spec.js +6 -8
- package/dist/reducers/select.spec.js.map +1 -1
- package/package.json +6 -6
- package/src/reducers/copy.js +51 -3
- package/src/reducers/copy.spec.js +18 -10
- package/src/reducers/select.js +7 -4
- package/src/reducers/select.spec.js +7 -3
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/03/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/03/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/03/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/03/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/04/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/04/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/04/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/04/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/05/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/05/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/05/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/05/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/06/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/06/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/06/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/06/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/07/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/07/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/07/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/07/source.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/08/base.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/08/merged.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/08/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{basic copy → 01 - copy}/08/source.json +0 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/01/base.json +17 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/01/merged.json +20 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/01/metadata.json +6 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/01/source.json +20 -0
- package/test-fixtures/reducers/copy/{copyUnless/01 → 02 - doNotCopyIfFieldPresent/02}/base.json +0 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/02/merged.json +20 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/02/metadata.json +6 -0
- package/test-fixtures/reducers/copy/02 - doNotCopyIfFieldPresent/02/source.json +20 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{compareTagsOnly → 03 - compareTagsOnly}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{compareWithoutIndicators → 04 - compareWithoutIndicators}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/05 - copyUnless/01/base.json +9 -0
- package/test-fixtures/reducers/copy/{copyUnless → 05 - copyUnless}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{copyUnless → 05 - copyUnless}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{copyUnless → 05 - copyUnless}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/03/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/03/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/03/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/03/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/04/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/04/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/04/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/04/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/05/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/05/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/05/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/05/source.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/06/base.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/06/merged.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/06/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{subfieldsMustBeIdentical → 06 - subfieldsMustBeIdentical}/06/source.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{excludeSubfields → 07 - excludeSubfields}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/01/base.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/01/merged.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/01/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/01/source.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/02/base.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/02/merged.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/02/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/02/source.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/03/base.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/03/merged.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/03/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/03/source.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/04/base.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/04/merged.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/04/metadata.json +0 -0
- package/test-fixtures/reducers/copy/{dropSubfields → 08 - dropSubfields}/04/source.json +0 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/01/base.json +9 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/01/merged.json +20 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/01/metadata.json +6 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/01/source.json +20 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/02/base.json +9 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/02/merged.json +20 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/02/metadata.json +6 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/02/source.json +20 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/03/base.json +9 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/03/merged.json +31 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/03/metadata.json +6 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/03/source.json +31 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/04/base.json +9 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/04/merged.json +42 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/04/metadata.json +6 -0
- package/test-fixtures/reducers/copy/09 - swapSubfieldCode/04/source.json +42 -0
- package/test-fixtures/reducers/copy/10 - swapTag/01/base.json +17 -0
- package/test-fixtures/reducers/copy/10 - swapTag/01/merged.json +28 -0
- package/test-fixtures/reducers/copy/10 - swapTag/01/metadata.json +6 -0
- package/test-fixtures/reducers/copy/10 - swapTag/01/source.json +20 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"leader": "01331cam a22003494i 4500",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"tag": "001",
|
|
6
|
+
"value": "007346734"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"tag": "010",
|
|
10
|
+
"ind1": " ",
|
|
11
|
+
"ind2": " ",
|
|
12
|
+
"subfields": [
|
|
13
|
+
{
|
|
14
|
+
"code": "a",
|
|
15
|
+
"value": "##2002021346"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tag": "010",
|
|
21
|
+
"ind1": " ",
|
|
22
|
+
"ind2": " ",
|
|
23
|
+
"subfields": [
|
|
24
|
+
{
|
|
25
|
+
"code": "a",
|
|
26
|
+
"value": "##2002021f46"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"leader": "01331cam a22003494i 4500",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"tag": "001",
|
|
6
|
+
"value": "007346734"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"tag": "010",
|
|
10
|
+
"ind1": " ",
|
|
11
|
+
"ind2": " ",
|
|
12
|
+
"subfields": [
|
|
13
|
+
{
|
|
14
|
+
"code": "a",
|
|
15
|
+
"value": "##2002021a46"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tag": "010",
|
|
21
|
+
"ind1": " ",
|
|
22
|
+
"ind2": " ",
|
|
23
|
+
"subfields": [
|
|
24
|
+
{
|
|
25
|
+
"code": "b",
|
|
26
|
+
"value": "##2002021b46"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"tag": "010",
|
|
32
|
+
"ind1": " ",
|
|
33
|
+
"ind2": " ",
|
|
34
|
+
"subfields": [
|
|
35
|
+
{
|
|
36
|
+
"code": "c",
|
|
37
|
+
"value": "##2002021c46"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"leader": "01331cam a22003494i 4500",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"tag": "001",
|
|
6
|
+
"value": "007346734"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"tag": "010",
|
|
10
|
+
"ind1": " ",
|
|
11
|
+
"ind2": " ",
|
|
12
|
+
"subfields": [
|
|
13
|
+
{
|
|
14
|
+
"code": "x",
|
|
15
|
+
"value": "##2002021a46"
|
|
16
|
+
}
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"tag": "010",
|
|
21
|
+
"ind1": " ",
|
|
22
|
+
"ind2": " ",
|
|
23
|
+
"subfields": [
|
|
24
|
+
{
|
|
25
|
+
"code": "b",
|
|
26
|
+
"value": "##2002021b46"
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"tag": "010",
|
|
32
|
+
"ind1": " ",
|
|
33
|
+
"ind2": " ",
|
|
34
|
+
"subfields": [
|
|
35
|
+
{
|
|
36
|
+
"code": "c",
|
|
37
|
+
"value": "##2002021c46"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"leader": "01331cam a22003494i 4500",
|
|
3
|
+
"fields": [
|
|
4
|
+
{
|
|
5
|
+
"tag": "001",
|
|
6
|
+
"value": "007346734"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"tag": "100",
|
|
10
|
+
"ind1": " ",
|
|
11
|
+
"ind2": " ",
|
|
12
|
+
"subfields": [
|
|
13
|
+
{"code": "a", "value": "original"}
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"tag": "700",
|
|
18
|
+
"ind1": " ",
|
|
19
|
+
"ind2": " ",
|
|
20
|
+
"subfields": [
|
|
21
|
+
{
|
|
22
|
+
"code": "a",
|
|
23
|
+
"value": "test"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|