Skip to content

Commit

Permalink
www directory
Browse files Browse the repository at this point in the history
  • Loading branch information
BobHanson committed Oct 23, 2024
1 parent 2c48d70 commit 5a6832b
Show file tree
Hide file tree
Showing 353 changed files with 139,289 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class PubInfoExtractor {
//"https://data.crosscite.org/application/vnd.datacite.datacite+json/";

public final static String crossrefURL = "https://api.crossref.org/works/";
public static final String DOI_ORG = "https://doi.org/";


/**
Expand All @@ -25,14 +26,14 @@ public class PubInfoExtractor {
* @return
*/
public static String getCrossrefMetadataUrl(String puburi) {
if (puburi != null && puburi.startsWith("https://doi.org/")) {
if (puburi != null && puburi.startsWith(DOI_ORG)) {
return crossrefURL + puburi.substring(16);
}
return null;
}

public static String getCrossciteMetadataUrl(String puburi) {
if (puburi != null && puburi.startsWith("https://doi.org/")) {
if (puburi != null && puburi.startsWith(DOI_ORG)) {
return crossciteURL + puburi.substring(16);
}
return null;
Expand Down
Loading

0 comments on commit 5a6832b

Please sign in to comment.