diff --git a/lookup/src/main/java/com/scienceminer/lookup/data/OALocation.java b/lookup/src/main/java/com/scienceminer/lookup/data/OALocation.java index f77d8242..19b13a79 100644 --- a/lookup/src/main/java/com/scienceminer/lookup/data/OALocation.java +++ b/lookup/src/main/java/com/scienceminer/lookup/data/OALocation.java @@ -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", @@ -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; diff --git a/lookup/src/main/java/com/scienceminer/lookup/data/UnpayWallMetadata.java b/lookup/src/main/java/com/scienceminer/lookup/data/UnpayWallMetadata.java index 01065dfc..e8ef4e04 100644 --- a/lookup/src/main/java/com/scienceminer/lookup/data/UnpayWallMetadata.java +++ b/lookup/src/main/java/com/scienceminer/lookup/data/UnpayWallMetadata.java @@ -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; } @@ -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; + } }