Skip to content

Commit

Permalink
Fixes openphacts/GLOBAL#271 sync with ops.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ianwdunlop committed Jun 17, 2015
1 parent 6afbb61 commit 47ac19d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions vendor/assets/javascripts/combined.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ Openphacts.Constants.prototype.SRC_CLS_MAPPINGS = {
'http://www.ebi.ac.uk/chembl' : 'chemblValue',
'http://www4.wiwiss.fu-berlin.de/drugbank': 'drugbankValue',
'http://linkedlifedata.com/resource/drugbank': 'drugbankValue',
'http://www.openphacts.org/bio2rdf/drugbank': 'drugbankValue',
'http://www.openphacts.org/bio2rdf/drugbank' : 'drugbankValue',
'http://www.chemspider.com': 'chemspiderValue',
'http://www.chemspider.com/': 'chemspiderValue',
'http://ops.rsc-us.org': 'chemspiderValue',
Expand Down Expand Up @@ -2277,7 +2277,7 @@ Openphacts.TargetSearch.prototype.parseTargetPharmacologyResponse = function(res
target_title = target.title;
target_uri = target._about;
target_provenance = 'https://www.ebi.ac.uk/chembl/target/inspect/' + target._about.split('/').pop();
target_organism_name = target.assay_organism != null ? target.assay_organism : null;
target_organism_name = target.targetOrganismName != null ? target.targetOrganismName : null;
if (target.hasTargetComponent != null) {
Openphacts.arrayify(target.hasTargetComponent).forEach(function(targetComponent, i) {
var tc = {};
Expand Down Expand Up @@ -2316,7 +2316,6 @@ Openphacts.TargetSearch.prototype.parseTargetPharmacologyResponse = function(res
'compoundInchikey': compound_inchikey,
//compoundDrugType: compound_drug_type,
//compoundGenericName: compound_generic_name,
'targetTitle': target_title,
//targetConcatenatedUris: target_concatenated_uris,

'compoundInchikeySrc': cs_src,
Expand Down

0 comments on commit 47ac19d

Please sign in to comment.