Skip to content

Commit

Permalink
Merge pull request #136 from ezpaarse-project/development
Browse files Browse the repository at this point in the history
Bug fix: doi is not insensitive in enrich process
  • Loading branch information
felixleo22 authored Nov 30, 2023
2 parents 019fed6 + eaa4500 commit 9bddbc6
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Ezunpaywall is an API and database that queries the Unpaywall database containin
**Table of content**
- [Structure](#Structure)
- [Installation](#Installation)
- [Developement](#Development)
- [Development](#Development)
- [Prerequisites](#Prerequisites)
- [Start](#Start)
- [Tests](#Tests)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"author": "felixleo22",
"license": "CeCILL",
Expand Down
2 changes: 1 addition & 1 deletion src/apikey/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall-apikey",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down
4 changes: 2 additions & 2 deletions src/enrich/lib/csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ function enrichArray(data, response) {

response.forEach((el) => {
if (el.doi) {
results.set(el.doi, el);
results.set(el.doi.toLowerCase(), el);
}
});

enrichedArray.forEach((el) => {
if (!el.doi) {
return;
}
let res = results.get(el.doi);
let res = results.get(el.doi.toLowerCase());
if (!res) {
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/enrich/lib/json.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,15 +79,15 @@ function enrichArray(data, response) {

response.forEach((el) => {
if (el.doi) {
results.set(el.doi, el);
results.set(el.doi.toLowerCase(), el);
}
});

enrichedArray.forEach((el) => {
if (!el.doi) {
return;
}
const res = results.get(el.doi);
const res = results.get(el.doi.toLowerCase());
if (!res) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/enrich/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall-enrich",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down
2 changes: 1 addition & 1 deletion src/fakeUnpaywall/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fakeunpaywall",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down
1 change: 1 addition & 0 deletions src/frontend/components/enrich/EnrichCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
<v-btn
prepend-icon="mdi-chevron-left"
variant="tonal"
:disabled="isProcessing"
@click="setStep(2)"
>
{{ t("enrich.settings") }}
Expand Down
2 changes: 1 addition & 1 deletion src/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall-graphql",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down
2 changes: 1 addition & 1 deletion src/health/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall-health",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down
2 changes: 1 addition & 1 deletion src/mail/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mail",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/update/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ezunpaywall-update",
"version": "1.3.4",
"version": "1.3.5",
"description": "",
"main": "app.js",
"author": "felixleo22",
Expand Down

0 comments on commit 9bddbc6

Please sign in to comment.