Skip to content

Commit

Permalink
another set of fix for all bio and cyto views; work on #317
Browse files Browse the repository at this point in the history
  • Loading branch information
kltm committed Mar 18, 2016
1 parent a561e5c commit 0dc3fbc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 2 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ gulp.task('install', ['build', 'compile']);
// TODO/BUG: This should eventually be replaced by a read of
// javascript/web.
var web_compilables = [
'AmiGOBioView.js',
'AmiGOCytoView.js',
'BulkSearch.js',
'GeneralSearchForwarding.js',
'Gannet.js',
Expand Down
9 changes: 3 additions & 6 deletions javascript/web/AmiGOBioView.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ var bbop = require('bbop-core');
// Help with strings and colors--configured separately.
var amigo = new (require('amigo2-instance-data'))(); // no overload

var aid = amigo.data.context;

var model = require('bbop-graph-noctua');

var cytoscape = require('cytoscape');
Expand Down Expand Up @@ -52,8 +50,7 @@ var minerva_requests = require('minerva-requests');
var noctua_model = require('bbop-graph-noctua');

//
var sd = new amigo.data.server();
var gserv = sd.golr_base();
var gserv = amigo.data.server.golr_base;

var jquery_engine = require('bbop-rest-manager').jquery;
var golr_manager = require('bbop-manager-golr');
Expand Down Expand Up @@ -168,8 +165,8 @@ var AmiGOBioViewInit = function(model_ids){
source: e.subject_id(),
target: e.object_id(),
predicate: e.predicate_id(),
label: aid.readable(e.predicate_id()),
color: aid.color(e.predicate_id())
label: amigo.readable(e.predicate_id()),
color: amigo.color(e.predicate_id())
}
});
});
Expand Down
6 changes: 3 additions & 3 deletions javascript/web/AmiGOCytoView.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var amigo = new (require('amigo2-instance-data'))(); // no overload
var barista_response = require('bbop-response-barista');

// Help with strings and colors--configured separately.
var aid = amigo.data.context;
//var aid = amigo.data.context;

var model = require('bbop-graph-noctua');

Expand Down Expand Up @@ -152,8 +152,8 @@ var AmiGOCytoViewInit = function(user_token){
source: e.subject_id(),
target: e.object_id(),
predicate: e.predicate_id(),
label: aid.readable(e.predicate_id()),
color: aid.color(e.predicate_id())
label: amigo.readable(e.predicate_id()),
color: amigo.color(e.predicate_id())
}
});
});
Expand Down

0 comments on commit 0dc3fbc

Please sign in to comment.