Skip to content

Commit

Permalink
Revert OpenAlex JSON changes and update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AbeJellinek committed Jul 29, 2024
1 parent cc3d1eb commit 1f6f013
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 46 deletions.
13 changes: 6 additions & 7 deletions OpenAlex JSON.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 6 additions & 39 deletions OpenAlex.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 12,
"browserSupport": "gcsibv",
"lastUpdated": "2024-04-13 18:27:11"
"lastUpdated": "2024-07-29 14:03:50"
}

/*
Expand Down Expand Up @@ -102,12 +102,12 @@ async function scrape(ids) {
await translator.translate();
}


/** BEGIN TEST CASES **/
var testCases = [
{
"type": "web",
"url": "https://openalex.org/works?page=1&filter=default.search%3Alabor&sort=relevance_score%3Adesc",
"defer": true,
"items": "multiple"
},
{
Expand Down Expand Up @@ -140,17 +140,7 @@ var testCases = [
"mimeType": "application/pdf"
}
],
"tags": [
{
"tag": "labor"
},
{
"tag": "male-female"
},
{
"tag": "markets"
}
],
"tags": [],
"notes": [],
"seeAlso": []
}
Expand Down Expand Up @@ -186,11 +176,7 @@ var testCases = [
"mimeType": "application/pdf"
}
],
"tags": [
{
"tag": "Reliability Estimation"
}
],
"tags": [],
"notes": [],
"seeAlso": []
}
Expand All @@ -199,7 +185,7 @@ var testCases = [
{
"type": "search",
"input": {
"openalex": "W2741809807"
"openAlex": "W2741809807"
},
"items": [
{
Expand Down Expand Up @@ -268,26 +254,7 @@ var testCases = [
"mimeType": "application/pdf"
}
],
"tags": [
{
"tag": "access"
},
{
"tag": "articles"
},
{
"tag": "large-scale"
},
{
"tag": "oa"
},
{
"tag": "open"
},
{
"tag": "prevalence"
}
],
"tags": [],
"notes": [],
"seeAlso": []
}
Expand Down

0 comments on commit 1f6f013

Please sign in to comment.