Skip to content
Merged
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
15 changes: 9 additions & 6 deletions src/model/document/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,13 +471,16 @@ class Document {

toBiopaxTemplate(){
let interactions = this.toBiopaxIntnTemplates();
let articleData = _.get( this.article(), ['PubmedData', 'ArticleIdList', 0]);
let pubId = articleData.id;
let pubDb = articleData.IdType;
let pathwayName = this.citation().title;
let publication = { id: pubId, db: pubDb };
let citation = this.citation();
let pathwayName = citation.title;
let pmid = citation.pmid;

return { interactions, publication, pathwayName};
let template = { interactions, pathwayName};
if ( pmid ) {
template.publication = { id: pmid, db: 'pubmed' };
}

return template;
}

toSearchTemplates(){
Expand Down