Skip to content

Commit

Permalink
Merge pull request #502 from wcmc-its/canonicalPubTypeTweaks-2
Browse files Browse the repository at this point in the history
Added "guideline", "case report" canonical pub types; preferred PubMe…
  • Loading branch information
paulalbert1 authored Jan 3, 2023
2 parents 63b56a4 + 1549948 commit ba161b3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/java/reciter/algorithm/util/ArticleTranslator.java
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,7 @@ private static void determinePublicationTypeCanonical(ReCiterArticle reCiterArti
||
reCiterArticle.getPublicationTypePubmed().contains("Classical Article")
||
reCiterArticle.getPublicationTypePubmed().contains("Scientific Integrity Review")
||
reCiterArticle.getPublicationTypePubmed().contains("Guideline")
||
reCiterArticle.getPublicationTypePubmed().contains("Practice Guideline")) {
reCiterArticle.getPublicationTypePubmed().contains("Scientific Integrity Review")) {
publicationTypeCanonical = "Review";
} else if(reCiterArticle.getPublicationTypePubmed().contains("Case Reports")) {
publicationTypeCanonical = "Case Report";
Expand Down Expand Up @@ -512,6 +508,13 @@ private static void determinePublicationTypeCanonical(ReCiterArticle reCiterArti
}
}

/*
## The below code uses publication type data from Scopus to infer publication type. Scopus has its virtues but it is commented out
## for now so that we rely on PubMed exclusively. The reasoning is:
## 1. PubMed is freely available
## 2. More commonly used, and
## 3. Less aggressive about mapping publications to what they call "articles" and what we would map to "academic articles."
if(reCiterArticle.getPublicationTypeScopus() != null && scopusArticle.getSubType() != null) {
if(scopusArticle.getSubType().equalsIgnoreCase("cp")
Expand Down Expand Up @@ -550,6 +553,7 @@ private static void determinePublicationTypeCanonical(ReCiterArticle reCiterArti
publicationTypeCanonical = "Article";
}
}
*/
reCiterArticle.setPublicationTypeCanonical(publicationTypeCanonical);
}

Expand Down

0 comments on commit ba161b3

Please sign in to comment.