Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Commit

Permalink
Excluding obsolete NegEx/ConText parameters from generated REST URL (…
Browse files Browse the repository at this point in the history
…« fast_context » only)
  • Loading branch information
Jérôme Lamarque committed Apr 16, 2020
1 parent 2a4f7cd commit f83fda5
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions app/assets/javascripts/bp_annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function get_annotations() {
params.expand_mappings = jQuery("#expand_mappings").is(':checked');
params.ncbo_slice = (("ncbo_slice" in BP_CONFIG) ? BP_CONFIG.ncbo_slice : '');

params.negation = params.experiencer = params.temporality = params.certainty = params.fast_context = jQuery("#fast_context").is(':checked');
params.fast_context = jQuery("#fast_context").is(':checked');

params.score_threshold = jQuery("#score_threshold").val();
params.confidence_threshold = jQuery("#confidence_threshold").val();
Expand All @@ -103,27 +103,11 @@ function get_annotations() {
} else {
annotationsTable.fnSetColumnVis(BP_COLUMNS.score, false);
}
if (params.negation) {
annotationsTable.fnSetColumnVis(BP_COLUMNS.negation, true);
} else {
annotationsTable.fnSetColumnVis(BP_COLUMNS.negation, false);
}
if (params.experiencer) {
annotationsTable.fnSetColumnVis(BP_COLUMNS.experiencer, true);
} else {
annotationsTable.fnSetColumnVis(BP_COLUMNS.experiencer, false);
}
if (params.temporality) {
annotationsTable.fnSetColumnVis(BP_COLUMNS.temporality, true);
} else {
annotationsTable.fnSetColumnVis(BP_COLUMNS.temporality, false);
}

if (params.certainty){
annotationsTable.fnSetColumnVis(BP_COLUMNS.certainty, true);
} else {
annotationsTable.fnSetColumnVis(BP_COLUMNS.certainty, false);
}

annotationsTable.fnSetColumnVis(BP_COLUMNS.negation, params.fast_context);
annotationsTable.fnSetColumnVis(BP_COLUMNS.experiencer, params.fast_context);
annotationsTable.fnSetColumnVis(BP_COLUMNS.temporality, params.fast_context);
annotationsTable.fnSetColumnVis(BP_COLUMNS.certainty, params.fast_context);

var maxLevel = parseInt(jQuery("#class_hierarchy_max_level").val());
if (maxLevel > 0) {
Expand Down

0 comments on commit f83fda5

Please sign in to comment.