Skip to content

Commit

Permalink
Merge pull request #132 from latin-language-toolkit/flexible_no_retri…
Browse files Browse the repository at this point in the history
…eval_in_morph

More flexible noRetrieval options in morph
  • Loading branch information
LFDM committed Jun 1, 2014
2 parents 95910b3 + ead6973 commit af80870
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/js/arethusa.morph/morph.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,11 @@ angular.module('arethusa.morph').service('morph', [

this.loadInitalAnalyses = function () {
var analyses = self.seedAnalyses(state.tokens);
if (! self.noRetrieval) {
if (self.noRetrieval !== "all") {
angular.forEach(analyses, function (val, id) {
self.getExternalAnalyses(val);
if (self.noRetrieval !== "online") {
self.getExternalAnalyses(val);
}
self.getAnalysisFromState(val, id);
val.analyzed = true;
});
Expand Down
2 changes: 1 addition & 1 deletion app/static/configs/local.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
}
},
"matchAll" : true,
"noRetrieval" : true,
"noRetrieval" : "online",
"fileUrl" : "./static/configs/morph/attributes.json"
},

Expand Down

0 comments on commit af80870

Please sign in to comment.