Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/kbdev 846 fix pubmed URLs to new pubmed URL #128

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/entrez/pubmed.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { checkSpec } = require('../util');
const { fetchByIdList, uploadRecord, preLoadCache: preLoadAnyCache } = require('./util');

const ajv = new Ajv();
const LINK_URL = 'https://pubmed.ncbi.nlm.nih.gov';

const { pubmed: SOURCE_DEFN } = require('../sources');

Expand Down Expand Up @@ -35,7 +34,7 @@ const parseRecord = (record) => {
const parsed = {
name: record.title,
sourceId: record.uid,
url: `${LINK_URL}/${record.uid}`,
url: `${SOURCE_DEFN.url}/${record.uid}`,
};

if (record.fulljournalname) {
Expand Down
4 changes: 2 additions & 2 deletions src/sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ const sources = {
url: 'http://oncotree.mskcc.org',
},
pubmed: {
description: 'pubmed comprises more than 29 million citations for biomedical literature from medline, life science journals, and online books. citations may include links to full-text content from pubmed central and publisher web sites',
description: 'PubMed is a free resource supporting the search and retrieval of biomedical and life sciences literature with the aim of improving health–both globally and personally.',
displayName: 'PubMed',
name: 'pubmed',
url: 'https://www.ncbi.nlm.nih.gov/pubmed',
url: 'https://pubmed.ncbi.nlm.nih.gov',
usage: 'https://www.ncbi.nlm.nih.gov/home/about/policies',
},
refseq: {
Expand Down