Skip to content

Commit

Permalink
Update detect
Browse files Browse the repository at this point in the history
  • Loading branch information
adam3smith committed Mar 23, 2024
1 parent 6e104b4 commit 1c1ad25
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Europe PMC.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcsibv",
"lastUpdated": "2024-03-21 20:53:10"
"lastUpdated": "2024-03-23 01:38:15"
}

/*
Expand Down Expand Up @@ -39,7 +39,7 @@
function detectWeb(doc, url) {
if (url.includes('/article/')) {
if (url.includes('/PPR/')) {
return 'report';
return 'preprint';
}
else {
return "journalArticle";
Expand Down Expand Up @@ -364,7 +364,6 @@ var testCases = [
{
"type": "web",
"url": "https://europepmc.org/article/PPR/PPR358366",
"detectedItemType": "report",
"items": [
{
"itemType": "preprint",
Expand Down

0 comments on commit 1c1ad25

Please sign in to comment.