Use of doi instead of concept_doi
This commit is contained in:
parent
a17af1d1a4
commit
da2158db6a
|
@ -17,6 +17,7 @@ public class ZenodoDeposition {
|
|||
@JsonFormat(pattern = Commons.ISO_DATE_PATTERN)
|
||||
private Date created;
|
||||
private String doi;
|
||||
private String doi_url;
|
||||
private DepositionLinks links;
|
||||
private ArrayList<FileDeposition> files;
|
||||
private Integer id;
|
||||
|
@ -32,7 +33,7 @@ public class ZenodoDeposition {
|
|||
|
||||
public URL getDOIUrl() throws MalformedURLException {
|
||||
try {
|
||||
return new URL(links.getConceptdoi());
|
||||
return new URL(doi_url);
|
||||
}catch(Throwable t) {
|
||||
log.warn("Returned concept link is broken, forming it from doi..");
|
||||
return new URL("https://doi.org/"+doi);
|
||||
|
|
Loading…
Reference in New Issue