Skip to content

Commit

Permalink
PN-416: Solved cases in Pre-Prod Match Table list blank PMID links ra…
Browse files Browse the repository at this point in the history
…ther than contact e-mails

exclude empty/blank pubmedIDs from displaying
  • Loading branch information
veronikaslc committed Jan 15, 2019
1 parent 272ea70 commit 0c38e19
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,9 @@ var PhenoTips = (function (PhenoTips) {
this._organiseModeOfInheritance(match);

this._organiseGenes(match);

// exclude empty/blank pubmedIDs
this._excludeBlankPubmedIDs(match);
}.bind(this));

// leave only uniq server ids in the array, remove duplicates
Expand All @@ -643,6 +646,16 @@ var PhenoTips = (function (PhenoTips) {
this._sortByColumn('foundTimestamp');
},

_excludeBlankPubmedIDs : function(match)
{
if (match.reference.pubmedIds) {
match.reference.pubmedIds = match.reference.pubmedIds.filter(function(pubmedID) { return !!pubmedID.trim(); })
}
if (match.matched.pubmedIds) {
match.matched.pubmedIds = match.matched.pubmedIds.filter(function(pubmedID) { return !!pubmedID.trim(); })
}
},

_organiseModeOfInheritance : function(match) {
//common modes of inheritance
if (match.reference.mode_of_inheritance.length == 0 || match.matched.mode_of_inheritance == 0) {
Expand Down

0 comments on commit 0c38e19

Please sign in to comment.