-
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.
* Update dependencies * Unify f506/856 evaluation regarding open access material * Fix broken tests * f490 generator now uses dc.relation.issn-l if dc.relation.issn does not exist or have valid value * f490 generator now validates format of ISSN information (note: validity of ISSN is not tested at this point) * f490 generator parses seemingly valid value from within a string that may contain any suffix or prefix
- Loading branch information
Showing
32 changed files
with
1,289 additions
and
2,781 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
10 changes: 10 additions & 0 deletions
10
test-fixtures/transform/convert/common/generate4xx/generate490/06/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,10 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn-l", | ||
"value": "1459-3467" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/06/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": "Value may be taken from dc.relation.issn-l if dc.relation.issn cannot be found", | ||
"only": false | ||
} |
8 changes: 8 additions & 0 deletions
8
test-fixtures/transform/convert/common/generate4xx/generate490/06/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,8 @@ | ||
[ | ||
{ | ||
"tag": "490", "ind1": "0", "ind2": " ", | ||
"subfields": [ | ||
{"code": "x", "value": "1459-3467"} | ||
] | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
test-fixtures/transform/convert/common/generate4xx/generate490/07/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": "relation", | ||
"qualifier": "issn-l", | ||
"value": "1234-4321" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "1459-3467" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/07/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": "Value may not be taken from dc.relation.issn-l if dc.relation.issn can be found", | ||
"only": false | ||
} |
8 changes: 8 additions & 0 deletions
8
test-fixtures/transform/convert/common/generate4xx/generate490/07/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,8 @@ | ||
[ | ||
{ | ||
"tag": "490", "ind1": "0", "ind2": " ", | ||
"subfields": [ | ||
{"code": "x", "value": "1459-3467"} | ||
] | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
test-fixtures/transform/convert/common/generate4xx/generate490/08/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,10 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "totally-not-valid-issn" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/08/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": "Won't use value from dc.relation.issn if it's not valid ISSN value (lax validation)", | ||
"only": false | ||
} |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate4xx/generate490/08/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 @@ | ||
[] |
10 changes: 10 additions & 0 deletions
10
test-fixtures/transform/convert/common/generate4xx/generate490/09/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,10 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn-l", | ||
"value": "totally-not-valid-issn" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/09/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": "Won't use value from dc.relation.issn-l if it's not valid ISSN value (lax validation)", | ||
"only": false | ||
} |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate4xx/generate490/09/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 @@ | ||
[] |
18 changes: 18 additions & 0 deletions
18
test-fixtures/transform/convert/common/generate4xx/generate490/10/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": "relation", | ||
"qualifier": "issn-l", | ||
"value": "1459-3467" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "totally-not-valid" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/10/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": "Value may be taken from dc.relation.issn-l if dc.relation.issn can be found but is invalid", | ||
"only": false | ||
} |
8 changes: 8 additions & 0 deletions
8
test-fixtures/transform/convert/common/generate4xx/generate490/10/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,8 @@ | ||
[ | ||
{ | ||
"tag": "490", "ind1": "0", "ind2": " ", | ||
"subfields": [ | ||
{"code": "x", "value": "1459-3467"} | ||
] | ||
} | ||
] |
18 changes: 18 additions & 0 deletions
18
test-fixtures/transform/convert/common/generate4xx/generate490/11/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": "relation", | ||
"qualifier": "issn-l", | ||
"value": "even-more-invalid" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "totally-not-valid" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/11/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": "If both dc.relation.issn-l and dc.relation.issn can be found but are invalid, field is not generated", | ||
"only": false | ||
} |
1 change: 1 addition & 0 deletions
1
test-fixtures/transform/convert/common/generate4xx/generate490/11/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 @@ | ||
[] |
10 changes: 10 additions & 0 deletions
10
test-fixtures/transform/convert/common/generate4xx/generate490/12/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,10 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "ISSN 1459-3467 NSSI" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/12/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": "If ISSN is contained within the value, it is correctly parsed from there", | ||
"only": false | ||
} |
8 changes: 8 additions & 0 deletions
8
test-fixtures/transform/convert/common/generate4xx/generate490/12/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,8 @@ | ||
[ | ||
{ | ||
"tag": "490", "ind1": "0", "ind2": " ", | ||
"subfields": [ | ||
{"code": "x", "value": "1459-3467"} | ||
] | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
test-fixtures/transform/convert/common/generate4xx/generate490/13/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,10 @@ | ||
[ | ||
{ | ||
"$": { | ||
"schema": "dc", | ||
"element": "relation", | ||
"qualifier": "issn", | ||
"value": "ISSN 1459-3467 NSSI 1234-4321" | ||
} | ||
} | ||
] |
4 changes: 4 additions & 0 deletions
4
test-fixtures/transform/convert/common/generate4xx/generate490/13/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": "If multiple ISSN is contained within one value, only first one is parsed and used for field generation", | ||
"only": false | ||
} |
8 changes: 8 additions & 0 deletions
8
test-fixtures/transform/convert/common/generate4xx/generate490/13/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,8 @@ | ||
[ | ||
{ | ||
"tag": "490", "ind1": "0", "ind2": " ", | ||
"subfields": [ | ||
{"code": "x", "value": "1459-3467"} | ||
] | ||
} | ||
] |
2 changes: 1 addition & 1 deletion
2
test-fixtures/transform/convert/common/generate5xx/generate506/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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"description": "Empty input produces empty output", | ||
"description": "Empty input produces open access field because lack of any dc.rights.accesslevel fields", | ||
"only": false | ||
} |
12 changes: 11 additions & 1 deletion
12
test-fixtures/transform/convert/common/generate5xx/generate506/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 |
---|---|---|
@@ -1 +1,11 @@ | ||
[] | ||
[ | ||
{ | ||
"tag": "506", "ind1": "0", "ind2": "", | ||
"subfields": [ | ||
{"code": "a", "value": "Aineisto on vapaasti saatavissa."}, | ||
{"code": "f", "value": "Unrestricted online access"}, | ||
{"code": "2", "value": "star"}, | ||
{"code": "9", "value": "FENNI<KEEP>"} | ||
] | ||
} | ||
] |
Oops, something went wrong.