Skip to content

More generic handling of PublicationXref  #1441

@jvwong

Description

@jvwong

It is not safe to assume that a PublicationXref originates from PubMed, as we have done. Article references from elsewhere would break the existing logic:

let publicationList = publications.map( publication => {
let { id, title, firstAuthor, date, source } = publication;
return h('div.cy-overflow-content', [
h('a.plain-link', { href: 'http://identifiers.org/pubmed/' + id, target: '_blank' }, title),
h('div', firstAuthor + ' et al. | ' + source + ' - ' + new Date(date).getFullYear().toString())
]);
});

In this case, it also makes sense to utilize available information about an article, so that the system need not make additional calls or support an external web service to retrieve it (e.g. crossref).

Related to: PathwayCommons/factoid#1218

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions