Skip to content

Commit f22beae

Browse files
committed
two cases need to be considered now (should probably just string count); draft for #620 and #639
1 parent b6ce54e commit f22beae

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

javascript/web/DDBrowse.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,10 +230,18 @@ function GetRootCountInformation(root_docs, filter_manager){
230230
var acc = null;
231231
var fqs = resp.parameter('fq');
232232
us.each(fqs, function(fq){
233-
if( fq.substr(0, 17) === closure_name ){
234-
acc = fq.substr(18, fq.length-1);
235-
acc = bbop.dequote(acc);
236-
}
233+
if( closure_name === 'regulates_closure'){
234+
if( fq.substr(0, 17) === closure_name ){
235+
acc = fq.substr(18, fq.length-1);
236+
acc = bbop.dequote(acc);
237+
}
238+
}
239+
if( closure_name === 'isa_partof_closure'){
240+
if( fq.substr(0, 18) === closure_name ){
241+
acc = fq.substr(19, fq.length-1);
242+
acc = bbop.dequote(acc);
243+
}
244+
}
237245
});
238246

239247
console.log('root accumulation action for: ' + acc);

0 commit comments

Comments
 (0)