-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add f110/710 generator that generates field from dc.contributor.group…
…author information
- Loading branch information
Showing
15 changed files
with
156 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
test-fixtures/transform/convert/common/generate1xx/generate110and710/01/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "creator", | ||
"value": "Esimerkki, Erkki" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate1xx/generate110and710/01/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Does not generate f110/710 if dc.creator is available and there are no dc.contributor.groupauthor entries", | ||
"only": false | ||
} |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate1xx/generate110and710/01/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
25 changes: 25 additions & 0 deletions
25
test-fixtures/transform/convert/common/generate1xx/generate110and710/02/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "creator", | ||
"value": "Esimerkki, Erkki" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "contributor", | ||
"qualifier": "groupauthor", | ||
"value": "Ryhmä Foo" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "contributor", | ||
"qualifier": "groupauthor", | ||
"value": "Ryhmä Bar" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate1xx/generate110and710/02/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Generate 710 for each dc.contributor.groupauthor if dc.creator is available", | ||
"only": false | ||
} |
16 changes: 16 additions & 0 deletions
16
test-fixtures/transform/convert/common/generate1xx/generate110and710/02/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"tag": "710", "ind1": "1", "ind2": "", | ||
"subfields": [ | ||
{"code": "a", "value": "Ryhmä Foo,"}, | ||
{"code": "e", "value": "kirjoittaja."} | ||
] | ||
}, | ||
{ | ||
"tag": "710", "ind1": "1", "ind2": "", | ||
"subfields": [ | ||
{"code": "a", "value": "Ryhmä Bar,"}, | ||
{"code": "e", "value": "kirjoittaja."} | ||
] | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
test-fixtures/transform/convert/common/generate1xx/generate110and710/03/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "contributor", | ||
"qualifier": "groupauthor", | ||
"value": "Ryhmä Foo" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "contributor", | ||
"qualifier": "groupauthor", | ||
"value": "Ryhmä Bar" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate1xx/generate110and710/03/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Generate f110 from first dc.contributor.groupauthor and f710 other dc.contributor.groupauthors if dc.creator is not available", | ||
"only": false | ||
} |
16 changes: 16 additions & 0 deletions
16
test-fixtures/transform/convert/common/generate1xx/generate110and710/03/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[ | ||
{ | ||
"tag": "110", "ind1": "1", "ind2": "", | ||
"subfields": [ | ||
{"code": "a", "value": "Ryhmä Foo,"}, | ||
{"code": "e", "value": "kirjoittaja."} | ||
] | ||
}, | ||
{ | ||
"tag": "710", "ind1": "1", "ind2": "", | ||
"subfields": [ | ||
{"code": "a", "value": "Ryhmä Bar,"}, | ||
{"code": "e", "value": "kirjoittaja."} | ||
] | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate1xx/generate110and710/04/input.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate1xx/generate110and710/04/metadata.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"description": "Empty input produces empty array as output", | ||
"only": false | ||
} |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate1xx/generate110and710/04/output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |