Skip to content

Commit

Permalink
Adapt unpaywall data loader to latest format
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed May 21, 2019
1 parent 213dab0 commit 3af4a2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.scienceminer.lookup.data;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

/**
* {"url": "https://pdfs.journals.lww.com",
Expand All @@ -14,6 +16,7 @@
* "url_for_pdf": "https://pdfs.journals.lww.com/",
* "url_for_landing_page": "https://doi.org/10.1097/00007890-201007272-00675"}]
*/
@JsonIgnoreProperties({"endpoint_id"})
public class OALocation {

private String url;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public class UnpayWallMetadata {
@JsonProperty("best_oa_location")
private OALocation bestOALocation;

@JsonProperty("oa_status")
private String oa_status;

public String getDoi() {
return doi;
}
Expand Down Expand Up @@ -203,4 +206,12 @@ public OALocation getBestOALocation() {
public void setBestOALocation(OALocation bestOALocation) {
this.bestOALocation = bestOALocation;
}

public String getOaStatus() {
return this.oa_status;
}

public void setOaStatus(String status) {
this.oa_status = status;
}
}

0 comments on commit 3af4a2b

Please sign in to comment.