-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/3570_incorrect_issns' into develop
- Loading branch information
Showing
8 changed files
with
322 additions
and
6 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
doajtest/matrices/article_create_article/issn_validation_against_journal.matrix.csv
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,17 @@ | ||
test_id,eissn,pissn,validated | ||
1,eissn_in_doaj,pissn_in_doaj,yes | ||
2,eissn_in_doaj,eissn_not_in_doaj, | ||
3,eissn_in_doaj,pissn_not_in_doaj, | ||
4,eissn_in_doaj,!eissn_in_doaj, | ||
5,pissn_in_doaj,eissn_in_doaj, | ||
6,pissn_in_doaj,eissn_not_in_doaj, | ||
7,pissn_in_doaj,pissn_not_in_doaj, | ||
8,pissn_in_doaj,!pissn_in_doaj, | ||
9,eissn_not_in_doaj,eissn_in_doaj, | ||
10,eissn_not_in_doaj,pissn_in_doaj, | ||
11,eissn_not_in_doaj,pissn_not_in_doaj, | ||
12,eissn_not_in_doaj,!eissn_not_in_doaj, | ||
13,pissn_not_in_doaj,eissn_in_doaj, | ||
14,pissn_not_in_doaj,pissn_in_doaj, | ||
15,pissn_not_in_doaj,eissn_not_in_doaj, | ||
16,pissn_not_in_doaj,!pissn_not_in_doaj, |
19 changes: 19 additions & 0 deletions
19
doajtest/matrices/article_create_article/issn_validation_against_journal.settings.csv
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,19 @@ | ||
field,test_id,eissn,pissn,validated | ||
type,index,generated,generated,conditional | ||
deafult,,,,no | ||
,,,, | ||
values,,eissn_in_doaj,eissn_in_doaj,yes | ||
values,,pissn_in_doaj,pissn_in_doaj,no | ||
values,,eissn_not_in_doaj,eissn_not_in_doaj, | ||
values,,pissn_not_in_doaj,pissn_not_in_doaj, | ||
,,,, | ||
,,,, | ||
conditional validated,,eissn_in_doaj,pissn_in_doaj,yes | ||
constraint eissn,,eissn_in_doaj,!eissn_in_doaj, | ||
constraint eissn,,eissn_not_in_doaj,!eissn_not_in_doaj, | ||
constraint eissn,,pissn_not_in_doaj,!pissn_not_in_doaj, | ||
constraint eissn,,pissn_in_doaj,!pissn_in_doaj, | ||
constraint pissn,,eissn_in_doaj,!eissn_in_doaj, | ||
constraint pissn,,eissn_not_in_doaj,!eissn_not_in_doaj, | ||
constraint pissn,,pissn_not_in_doaj,!pissn_not_in_doaj, | ||
constraint pissn,,pissn_in_doaj,!pissn_in_doaj, |
119 changes: 119 additions & 0 deletions
119
doajtest/matrices/article_create_article/issn_validation_against_journal.settings.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,119 @@ | ||
{ | ||
"parameters": [ | ||
{ | ||
"name": "test_id", | ||
"type": "index" | ||
}, | ||
{ | ||
"name": "eissn", | ||
"type": "generated", | ||
"values": { | ||
"eissn_in_doaj": { | ||
"constraints": { | ||
"pissn": { | ||
"nor": [ | ||
"eissn_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"pissn_in_doaj": { | ||
"constraints": { | ||
"pissn": { | ||
"nor": [ | ||
"pissn_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"eissn_not_in_doaj": { | ||
"constraints": { | ||
"pissn": { | ||
"nor": [ | ||
"eissn_not_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"pissn_not_in_doaj": { | ||
"constraints": { | ||
"pissn": { | ||
"nor": [ | ||
"pissn_not_in_doaj" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "pissn", | ||
"type": "generated", | ||
"values": { | ||
"eissn_in_doaj": {}, | ||
"pissn_in_doaj": {}, | ||
"eissn_not_in_doaj": {}, | ||
"pissn_not_in_doaj": {}, | ||
"!eissn_in_doaj": { | ||
"constraints": { | ||
"eissn": { | ||
"or": [ | ||
"eissn_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"!eissn_not_in_doaj": { | ||
"constraints": { | ||
"eissn": { | ||
"or": [ | ||
"eissn_not_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"!pissn_not_in_doaj": { | ||
"constraints": { | ||
"eissn": { | ||
"or": [ | ||
"pissn_not_in_doaj" | ||
] | ||
} | ||
} | ||
}, | ||
"!pissn_in_doaj": { | ||
"constraints": { | ||
"eissn": { | ||
"or": [ | ||
"pissn_in_doaj" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "validated", | ||
"type": "conditional", | ||
"values": { | ||
"yes": { | ||
"conditions": [ | ||
{ | ||
"eissn": { | ||
"or": [ | ||
"eissn_in_doaj" | ||
] | ||
}, | ||
"pissn": { | ||
"or": [ | ||
"pissn_in_doaj" | ||
] | ||
} | ||
} | ||
] | ||
}, | ||
"no": {} | ||
} | ||
} | ||
] | ||
} |
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
Oops, something went wrong.