Turn all import conversions off by default - fixes #478
This commit is contained in:
parent
5123dad6a8
commit
57ca70132c
@ -46,7 +46,7 @@ public class FixedWidthImporter extends TabularImportingParserBase {
|
|||||||
|
|
||||||
JSONUtilities.safePut(options, "headerLines", 0);
|
JSONUtilities.safePut(options, "headerLines", 0);
|
||||||
JSONUtilities.safePut(options, "columnWidths", columnWidths);
|
JSONUtilities.safePut(options, "columnWidths", columnWidths);
|
||||||
JSONUtilities.safePut(options, "guessCellValueTypes", true);
|
JSONUtilities.safePut(options, "guessCellValueTypes", false);
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
@ -29,7 +29,7 @@ public class LineBasedImporter extends TabularImportingParserBase {
|
|||||||
|
|
||||||
JSONUtilities.safePut(options, "linesPerRow", 1);
|
JSONUtilities.safePut(options, "linesPerRow", 1);
|
||||||
JSONUtilities.safePut(options, "headerLines", 0);
|
JSONUtilities.safePut(options, "headerLines", 0);
|
||||||
JSONUtilities.safePut(options, "guessCellValueTypes", true);
|
JSONUtilities.safePut(options, "guessCellValueTypes", false);
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ public class SeparatorBasedImporter extends TabularImportingParserBase {
|
|||||||
String separator = guessSeparator(job, fileRecords);
|
String separator = guessSeparator(job, fileRecords);
|
||||||
JSONUtilities.safePut(options, "separator", separator != null ? separator : "\\t");
|
JSONUtilities.safePut(options, "separator", separator != null ? separator : "\\t");
|
||||||
|
|
||||||
JSONUtilities.safePut(options, "guessCellValueTypes", true);
|
JSONUtilities.safePut(options, "guessCellValueTypes", false);
|
||||||
JSONUtilities.safePut(options, "processQuotes", true);
|
JSONUtilities.safePut(options, "processQuotes", true);
|
||||||
|
|
||||||
return options;
|
return options;
|
||||||
|
@ -119,10 +119,10 @@ Refine.JsonParserUI.prototype._initialize = function() {
|
|||||||
this._optionContainerElmts.limitInput[0].value = this._config.limit.toString();
|
this._optionContainerElmts.limitInput[0].value = this._config.limit.toString();
|
||||||
}
|
}
|
||||||
if (this._config.trimStrings) {
|
if (this._config.trimStrings) {
|
||||||
this._optionContainerElmts.trimStringsCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.trimStringsCheckbox.attr("checked", "unchecked");
|
||||||
}
|
}
|
||||||
if (this._config.guessCellValueTypes) {
|
if (this._config.guessCellValueTypes) {
|
||||||
this._optionContainerElmts.guessCellValueTypesCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.guessCellValueTypesCheckbox.attr("checked", "unchecked");
|
||||||
}
|
}
|
||||||
if (this._config.storeEmptyStrings) {
|
if (this._config.storeEmptyStrings) {
|
||||||
this._optionContainerElmts.storeEmptyStringsCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.storeEmptyStringsCheckbox.attr("checked", "checked");
|
||||||
|
@ -107,19 +107,19 @@ Refine.XmlParserUI.prototype._initialize = function() {
|
|||||||
$('#or-import-rows').text($.i18n._('core-index-parser')["rows-data"]);
|
$('#or-import-rows').text($.i18n._('core-index-parser')["rows-data"]);
|
||||||
$('#or-import-load').text($.i18n._('core-index-parser')["load-at-most"]);
|
$('#or-import-load').text($.i18n._('core-index-parser')["load-at-most"]);
|
||||||
$('#or-import-preserve').text($.i18n._('core-index-parser')["preserve-empty"]);
|
$('#or-import-preserve').text($.i18n._('core-index-parser')["preserve-empty"]);
|
||||||
$('#or-import-trim').text($.i18n._('core-index-parser')["trim"]);
|
$('#or-import-trim').html($.i18n._('core-index-parser')["trim"]);
|
||||||
$('#or-import-parseCell').text($.i18n._('core-index-parser')["parse-cell"]);
|
$('#or-import-parseCell').html($.i18n._('core-index-parser')["parse-cell"]);
|
||||||
$('#or-import-store').text($.i18n._('core-index-parser')["store-source"]);
|
$('#or-import-store').html($.i18n._('core-index-parser')["store-source"]);
|
||||||
|
|
||||||
if (this._config.limit > 0) {
|
if (this._config.limit > 0) {
|
||||||
this._optionContainerElmts.limitCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.limitCheckbox.attr("checked", "checked");
|
||||||
this._optionContainerElmts.limitInput[0].value = this._config.limit.toString();
|
this._optionContainerElmts.limitInput[0].value = this._config.limit.toString();
|
||||||
}
|
}
|
||||||
if (this._config.trimStrings) {
|
if (this._config.trimStrings) {
|
||||||
this._optionContainerElmts.trimStringsCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.trimStringsCheckbox.attr("checked", "unchecked");
|
||||||
}
|
}
|
||||||
if (this._config.guessCellValueTypes) {
|
if (this._config.guessCellValueTypes) {
|
||||||
this._optionContainerElmts.guessCellValueTypesCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.guessCellValueTypesCheckbox.attr("checked", "unchecked");
|
||||||
}
|
}
|
||||||
if (this._config.storeEmptyStrings) {
|
if (this._config.storeEmptyStrings) {
|
||||||
this._optionContainerElmts.storeEmptyStringsCheckbox.attr("checked", "checked");
|
this._optionContainerElmts.storeEmptyStringsCheckbox.attr("checked", "checked");
|
||||||
|
Loading…
Reference in New Issue
Block a user