]",
+ "row-index": "当前行的索引. 它是'row.index'的简写.",
+ "returns": "returns",
+ "from": "From",
+ "expression": "表达式",
+ "reuse": "重用",
+ "remove": "移除",
+ "error": "错误",
+ "no-syntax-err": "没有语法错误",
+ "internal-err": "内部异常",
+ "language": "语言",
+ "preview": "预览",
+ "history": "历史",
+ "starred": "星标",
+ "help": "帮助",
+ "opt-code-applied": "成功应用配置项代码.",
+ "error-apply-code": "应用配置项代码时发生异常",
+ "custom-tab-exp": "自定义表格导出器",
+ "content": "内容",
+ "download": "下载",
+ "upload": "上传",
+ "opt-code": "配置项代码",
+ "sel-and-ord": "选择并排列表格用以导出",
+ "opt-for": "配置",
+ "for-recon-cell": "将搭配后的单元格输出",
+ "match-ent-name": "相匹配的实体名称",
+ "cell-content": "单元格内容",
+ "match-ent-id": "相匹配的实体ID",
+ "link-match": "链接值匹配的实体",
+ "out-not-unmatch": "不输出不匹配的单元格",
+ "date-format": "对于日期/时间类型,使用该格式",
+ "date-iso": "ISO 8601, 如, 2011-08-24T18:36:10+08:00",
+ "short-format": "本地化短格式",
+ "medium-format": "本地化普通格式",
+ "long-format": "本地化长格式",
+ "full-format": "本地化完整格式",
+ "custom": "自定义",
+ "local-time": "使用本地时区",
+ "omit-time": "略过时间",
+ "out-col-header": "输出列头",
+ "out-empty-row": "输出空白行 (如所有单元格为null的行)",
+ "ignore-facets": "忽略所有归类、筛选,导出所有行",
+ "line-based": "基于行的文本格式",
+ "other-format": "其他格式",
+ "tsv": "Tab分隔值 (TSV)",
+ "csv": "逗号分隔值 (CSV)",
+ "custom-separator": "自定义分隔符",
+ "excel": "Excel (.xls)",
+ "excel-xml": "Excel in XML (.xlsx)",
+ "html-table": "HTML 表格",
+ "char-enc": "字符编码",
+ "line-sep": "行分隔符",
+ "upload-to": "上传至",
+ "json-text": "你在其他选项卡中所设置的配置项会被编码为下面的JSON文本,你可以将他复制出来然后存储以备将来可以将其粘贴来重用这些配置项."
+ },
+ "core-facets": {
+ "remove-facet": "移除这个归类",
+ "reset": "重置",
+ "invert": "反转",
+ "change": "修改",
+ "click-to-edit": "点击编辑表达式",
+ "sort-by": "排序,按照",
+ "name": "名称",
+ "count": "数量",
+ "cluster": "簇集",
+ "current-exp": "当前表达式",
+ "facet-choices": "将归类信息作为用tab分隔的值",
+ "loading": "载入中...",
+ "too-many-choices": "个归类, 过多难以展现",
+ "set-choice-count": "限制归类数量",
+ "edit": "编辑",
+ "facet-by-count": "按归类中量来归类",
+ "edit-based-col": "编辑归类的表达式来作用于列",
+ "edit-facet-exp": "编辑归类的表达式",
+ "set-max-choices": "设置各个文本归类中要显示的归类最大数量(太多的归类会导致程序运行缓慢)",
+ "case-sensitive": "大小写敏感",
+ "regular-exp": "正则表达式",
+ "time": "时间",
+ "non-time": "非时间",
+ "blank": "空白",
+ "error": "错误",
+ "unknown-error": "未知错误",
+ "linear-plot": "线性图",
+ "linear-plot-abbr": "lin",
+ "logar-plot": "对数模型图",
+ "logar-plot-abbr": "log",
+ "rotated-counter-clock": "逆时针旋转45°",
+ "no-rotation": "不旋转",
+ "rotated-clock": "顺时针旋转45°",
+ "small-dot": "小网点尺寸",
+ "regular-dot": "正常网点尺寸",
+ "big-dot": "大网点尺寸",
+ "export-plot": "导出网点",
+ "numeric": "数值型"
+ },
+ "core-project": {
+ "open": "打开",
+ "permalink": "永久地址",
+ "export": "导出",
+ "help": "帮助",
+ "starting": "启动",
+ "facet-filter": "归类 / 过滤器",
+ "undo-redo": "撤销 / 重做",
+ "extensions": "扩展",
+ "proj-name": "单击以重命名",
+ "use-facets": "使用归类和过滤器",
+ "use-to-select": "使用归类和筛选器来选择要操作的数据子集。可以在每个数据列头来选择归类或筛选方式.",
+ "not-sure": "不知从何下手?",
+ "watch-cast": "可以观看这些演示",
+ "refreshing-facet": "正在刷新归类...",
+ "update-facets": "更新所有归类",
+ "clear-selection": "清空所有归类中的选择",
+ "remove-all": "移除所有归类",
+ "export-project": "导出项目",
+ "tab-value": "以tab分隔的值",
+ "comma-sep": "以逗号分隔的值",
+ "html-table": "HTML表格",
+ "excel": "Excel",
+ "odf": "ODF 电子表格",
+ "triple-loader": "Triple loader",
+ "mqlwrite": "MQLWrite",
+ "custom-tabular": "自定义表格导出器...",
+ "templating": "正在生成模板...",
+ "warning-align": "You haven't done any schema alignment yet,\n so there is no triple to export.\n\n Use the Freebase > Edit Schema Alignment Skeleton...\n command to align your data with Freebase schemas first.",
+ "json-invalid": "贴入的JSON不正确",
+ "undo-history": "无尽的撤销历史",
+ "mistakes": "不要怕出错。你所做的所有更爱都会展示此,并且你可以随时撤销这些更改.",
+ "learn-more": "了解更多 »",
+ "apply": "应用…",
+ "extract": "提取…",
+ "filter": "过滤器:",
+ "extract-history": "提取历史操作记录",
+ "extract-save": "将你的历史操作提取并保存为JSON格式,以便将来可以应用于此或其他项目.",
+ "apply-operation": "应用这些历史操作",
+ "paste-json": "将之前提取出的JSON格式的历史操作记录粘贴于此执行:",
+ "complete": "完成",
+ "other-processes": "其他进程正在进行中",
+ "other-process": "其他进程正在进行中",
+ "cancel-all": "全部取消",
+ "cancel": "取消",
+ "canceling": "正在取消...",
+ "last-op-er": "之前的操作发生异常",
+ "continue-remaining": "继续剩下的操作",
+ "undo": "撤销"
+ },
+ "core-recon": {
+ "access": "访问",
+ "service-api": "服务API",
+ "cell-type": "将各个单元格搭配到下列类型的一个实例上",
+ "col-detail": "同时使用其他列中的相关信息",
+ "against-type": "使用后面的类型",
+ "no-type": "不指定,任意匹配",
+ "auto-match": "自动匹配高质量的候选类型",
+ "warning-type-sugg": "抱歉,未能为你的数据找到相应的类型,请指定Sorry, we can't suggest any type for your data. Please specify a type yourself below.",
+ "column": "列",
+ "include": "包含在内",
+ "as-property": "作为属性",
+ "contact-service": "正在访问搭配服务",
+ "error-contact": "在访问搭配服务时出现异常",
+ "fb-recon": "基于query的Freebase搭配",
+ "recon-col": "搭配列",
+ "pick-service": "在左侧选择一个服务或扩展",
+ "add-recon-srv": "添加具命名空间的搭配服务",
+ "namespace": "命名空间",
+ "ent-type": "实体类型 (可选)",
+ "add-std-srv": "添加标准搭配服务",
+ "enter-url": "键入一个服务的URL",
+ "specify-ns": "请指定一个命名空间.",
+ "cell-contains": "各个包含以下内容的单元格:",
+ "fb-id": "a Freebase ID, e.g., /en/solar_system",
+ "fb-guid": "a Freebase GUID, e.g., #9202a8c04000641f80000000000354ae",
+ "fb-key": "a Freebase key in",
+ "fb-en-ns": "英文维基命名空间",
+ "this-ns": "该命名空间:",
+ "max-candidates" : "最大候选服务返回数量",
+ "service-title": "Services"
+
+ },
+ "core-util-enc": {
+ "select-enc": "选择编码",
+ "common": "常用编码",
+ "all": "所有编码",
+ "encoding": "编码名称",
+ "aliases": "编码别名",
+ "today": "今天",
+ "yesterday": "昨天",
+ "days-ago": "天前",
+ "week-ago": "1周前",
+ "weeks-ago": "周前",
+ "month-ago": "1个月前",
+ "months-ago": "个月前",
+ "year-ago": "1年前",
+ "years-ago": "年前",
+ "working": "工作副本",
+ "invalid-date": "日期字符串格式错误"
+ },
+ "core-views": {
+ "edit-cell": "编辑这个单元格",
+ "choose-match": "选择新的匹配",
+ "match-all-cells": "",
+ "match-this-cell": "搭配这个主题和此单元格",
+ "create-topic-cells": "为该单元格及与其相同的单元格创建主题",
+ "create-topic-cell": "为这个单元格创建新主题",
+ "create-topic": "创建新主题",
+ "search-match": "检索以匹配",
+ "not-valid-number": "非法的数值.",
+ "not-valid-date": "非法的日期值.",
+ "match-this": "只匹配这个单元格",
+ "match-other": "匹配其他具有相同内容的单元格",
+ "search-for": "搜索",
+ "match-cell": "匹配这个单元格",
+ "match-identical": "匹配所有相同单元格",
+ "matched": "已匹配",
+ "new": "新",
+ "to-be-recon": "to be reconciled",
+ "facet": "归类",
+ "edit-cells": "编辑单元格",
+ "edit-column": "编辑列",
+ "transpose": "变换",
+ "sort": "排序",
+ "collapse-expand": "收起/展开列以更舒适的查看数据",
+ "collapse-this": "收起该列",
+ "collapse-other": "收起所有其他列",
+ "collapse-left": "收起左侧列",
+ "collapse-right": "收起右侧列",
+ "reconcile": "搭配",
+ "match-fb": "将此列的单元格与Freebase中的主题搭配",
+ "reverse": "反转",
+ "remove-sort": "不排序",
+ "sort-by": "排序,按照",
+ "sort-cell": "排序,依据",
+ "pos-blank": "空白错误等排序方式",
+ "text": "文本",
+ "case-sensitive": "大小写敏感",
+ "numbers": "数字",
+ "dates": "日期",
+ "booleans": "布尔",
+ "drag-drop": "拖拽以重新排序",
+ "forward": "前进",
+ "sort-by-col": "仅按此列排序",
+ "smallest-first": "从小到大",
+ "largest-first": "从大到小",
+ "earliest-first": "从早到晚",
+ "latest-first": "从晚到早",
+ "false-true": "先假后真",
+ "true-fasle": "先真后假",
+ "valid-values": "合法值",
+ "blanks": "空白",
+ "errors": "错误",
+ "search-fb-topic": "在Freebase中寻找与筛选后的单元格相匹配的主题:",
+ "copy-recon-judg": "复制预判,从列",
+ "copy-to-col": "复制到列",
+ "copy-opt": "复制选项",
+ "apply-to-cell": "Apply to judged cells",
+ "what-to-copy": "What to copy:",
+ "new-recon": "new recon judgments",
+ "match-recon": "match recon judgments",
+ "warning-other-col": "Please select some other column to copy to.",
+ "warning-sel-judg": "Please select at least one kind of judgment to copy.",
+ "start-recon": "开始搭配数据",
+ "recon-text-fb": "Reconcile text in this column with topics on Freebase",
+ "facets": "归类",
+ "by-judg": "By judgment",
+ "best-score": "Best candidate's score",
+ "best-cand-score": "best candidate's score",
+ "best-type-match": "Best candidate's type match",
+ "best-cand-type-match": "best candidate's types match?",
+ "best-name": "Best candidate's name match",
+ "best-cand-name": "best candidate's name match?",
+ "best-edit-dist": "Best candidate's name edit distance",
+ "best-cand-edit-dist": "best candidate's name edit distance",
+ "best-word-sim": "Best candidate's name word similarity",
+ "best-cand-word-sim": "best candidate's name word similarity",
+ "best-type": "Best candidate's types",
+ "qa-facets": "QA facets",
+ "qa-results": "QA results",
+ "qa-results2": "QA Results",
+ "judg-actions": "Judgment actions",
+ "judg-actions2": "Judgment Actions",
+ "judg-hist": "Judgment history entries",
+ "hist-entries": "History Entries",
+ "actions": "Actions",
+ "best-cand": "Match each cell to its best candidate",
+ "best-cand2": "Match each cell to its best candidate in this column for all current filtered rows",
+ "new-topic": "Create a new topic for each cell",
+ "new-topic2": "Mark to create one new topic for each cell in this column for all current filtered rows",
+ "one-topic": "Create one new topic for similar cells",
+ "one-topic2": "Mark to create one new topic for each group of similar cells in this column for all current filtered rows",
+ "filtered-cell": "Match all filtered cells to...",
+ "filtered-cell2": "Search for a topic to match all filtered cells to",
+ "discard-judg": "Discard reconciliation judgments",
+ "discard-judg2": "Discard reconciliation judgments in this column for all current filtered rows",
+ "clear-recon": "Clear reconciliation data",
+ "clear-recon2": "Clear reconciliation data in this column for all current filtered rows",
+ "copy-recon": "Copy reconciliation data...",
+ "copy-recon2": "Copy this column's reconciliation data to other columns",
+ "custom-facet": "自定义归类于列",
+ "custom-numeric-label": "自定义数值归类于列",
+ "custom-numeric": "自定义数值归类",
+ "text-facet": "文本归类",
+ "numeric-facet": "数值归类",
+ "timeline-facet": "时间线归类",
+ "scatterplot-facet": "散点图归类",
+ "custom-text-facet": "自定义文本归类",
+ "custom-facets": "自定义归类",
+ "word-facet": "按字归类",
+ "duplicates-facet": "复数归类",
+ "numeric-log-facet": "数字对数归类",
+ "bounded-log-facet": "约为1的数字对数归类",
+ "text-length-facet": "文本长度归类",
+ "log-length-facet": "文本长度的对数值归类",
+ "unicode-facet": "Unicode字符归类",
+ "facet-error": "按错误归类",
+ "facet-blank": "按空白归类",
+ "text-filter": "文本过滤器",
+ "add-col-col": "基于当前列新建",
+ "new-col-name": "新列名称",
+ "on-error": "发生异常时",
+ "set-blank": "设为空",
+ "store-err": "存储异常",
+ "copy-val": "拷贝原始列的值",
+ "warning-col-name": "必须输入一个列名称",
+ "add-col-fetch": "根据此列通过抓取URL新建列",
+ "throttle-delay": "超时停止",
+ "milli": "毫秒",
+ "url-fetch": "要抓取的URL方程式:",
+ "enter-col-name": "输入新列的名字",
+ "split-col": "将列",
+ "several-col": "分割为多列",
+ "how-split": "如何分割列",
+ "by-sep": "用分隔符",
+ "separator": "分隔符",
+ "reg-exp": "正则表达式",
+ "split-into": "分割为",
+ "col-at-most": "列 (留空表示无限制)",
+ "field-len": "按字段长度",
+ "list-int": "用逗号分隔的整数们, 如., 5, 7, 15",
+ "after-split": "分割之后",
+ "guess-cell": "猜测单元类型",
+ "remove-col": "移除该列",
+ "specify-sep": "请制定一个分隔符.",
+ "warning-no-length": "No field length is specified.",
+ "warning-format": "The given field lengths are not properly formatted.",
+ "split-into-col": "分割此列",
+ "add-based-col": "由此列派生新列",
+ "add-by-urls": "添加远程数据为新列",
+ "rename-col": "重命名列",
+ "move-to-beg": "列移至开始",
+ "move-to-end": "列移至末尾",
+ "move-to-left": "左移列",
+ "move-to-right": "右移列",
+ "show-as": "展示方式",
+ "first": "首页",
+ "previous": "上页",
+ "next": "下页",
+ "last": "末页",
+ "all": "全部",
+ "facet-star": "按星标归类",
+ "starred-rows": "加了星标的行",
+ "facet-flag": "按标记归类",
+ "flagged-rows": "标记过的行",
+ "edit-rows": "编辑行",
+ "star-rows": "加星标",
+ "unstar-rows": "去星标",
+ "flag-rows": "加标记",
+ "unflag-rows": "去标记",
+ "remove-matching": "移除所有匹配的行",
+ "edit-col": "编辑列",
+ "reorder-remove": "重排 / 移除列",
+ "view": "视图",
+ "collapse-all": "收起所有列",
+ "expand-all": "展开所有列",
+ "reorder-perma": "固定行顺序",
+ "by": "根据",
+ "custom-text-trans": "自定义文本转换于列",
+ "keep-or": "保持原始值",
+ "re-trans": "重新执行转换",
+ "times-chang": "次直到无更改",
+ "enter-separator": "输入要在值间使用的分隔符",
+ "what-separator": "现在值间用哪种分隔符?",
+ "transform": "转换",
+ "common-transform": "常用转换",
+ "trim-all": "移除首尾空白",
+ "collapse-white": "收起连续空白",
+ "unescape-html": "反转义HTML字符",
+ "titlecase": "首字母大写",
+ "uppercase": "全大写",
+ "lowercase": "全小写",
+ "to-number": "数字化",
+ "to-date": "日期化",
+ "to-text": "文本化",
+ "blank-out": "清空单元格",
+ "fill-down": "向下填充",
+ "blank-down": "相同空白填充",
+ "split-cells": "分离多值单元格",
+ "join-cells": "合并多值单元格",
+ "cluster-edit": "簇集并编辑",
+ "transp-cell": "将不同列中的单元格转换成行",
+ "from-col": "来源列",
+ "to-col": "目的列",
+ "transp-into": "转换成",
+ "two-new-col": "两个新列",
+ "key-col": "键列",
+ "contain-names": "(包含原始列的名字)",
+ "val-col": "值列",
+ "contain-val": "(包含原始单元格的值)",
+ "one-col": "一个列",
+ "prepend-name": "将原始列的名称前缀给各个单元格",
+ "follow-by": "添加",
+ "before-val": "在单元格值的前面",
+ "ignore-blank": "忽略空白单元格",
+ "fill-other": "向下填充其他单元格",
+ "spec-new-name": "请为键列指定名称.",
+ "spec-new-val": "请为值列指定名称.",
+ "spec-col-name": "请指定新列的名称.",
+ "spec-separator": "请指定原始列与单元值之间的分隔符.",
+ "how-many-rows": "需要转换多少行?",
+ "expect-two": "请输入不小于2的证书.",
+ "columnize": "取键/值列组合成列",
+ "note-col": "注释列 (可选)",
+ "sel-col-val": "请选择一对互异键值列",
+ "cannot-same": "一旦指定注释列,那么注释列不能是所选的键/值列",
+ "transp-cell-row": "将不同列中的单元格转换成行",
+ "transp-cell-col": "将行中的单元格转换成列",
+ "columnize-col": "取键/值列组合成列",
+ "data-type": "数据类型:",
+ "number": "数字",
+ "boolean": "布尔",
+ "date": "日期",
+ "ctrl-enter": "Ctrl-Enter",
+ "rows": "行",
+ "records": "记录",
+ "show": "显示"
+ },
+ "core-buttons": {
+ "cancel": "取消",
+ "ok": " 确定 ",
+ "import-proj": "导入项目",
+ "select-all": "全选",
+ "unselect-all": "全不选",
+ "deselect-all": "全不选",
+ "select": "选择",
+ "unselect": "反选",
+ "startover": "« 重新开始",
+ "conf-pars-opt": "配置解析选项 »",
+ "reselect-files": "« 重新选择文件",
+ "create-project": "新建项目 »",
+ "next": "下一步 »",
+ "add-url": "添加另一个URL",
+ "update-preview": "更新预览",
+ "pick-record": "选择记录",
+ "merge-cluster": "合并选中 & 重新簇集",
+ "merge-close": "合并选中 & 关闭",
+ "close": "关闭",
+ "reset-template": "重置模板",
+ "export": "导出",
+ "preview": "预览",
+ "download": "下载",
+ "upload": "上传",
+ "apply": "应用",
+ "enter": "Enter",
+ "esc": "Esc",
+ "refresh": "刷新",
+ "reset-all": "全部重置",
+ "remove-all": "全部移除",
+ "perform-op": "执行这些操作",
+ "add-std-svc": "添加标准服务",
+ "add-named-svc": "添加命名空间服务",
+ "start-recon": "开始搭配",
+ "add-service": "添加服务",
+ "dont-reconcile": "不搭配单元格",
+ "new-topic": "新主题",
+ "match": "匹配",
+ "copy": "复制",
+ "transpose": "转换",
+ "apply-to-all": "应用到所有相同单元格"
+ }
+}
diff --git a/main/webapp/modules/core/preferences.vt b/main/webapp/modules/core/preferences.vt
index c4711058b..62c7dd56d 100644
--- a/main/webapp/modules/core/preferences.vt
+++ b/main/webapp/modules/core/preferences.vt
@@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+
Preferences - OpenRefine
diff --git a/main/webapp/modules/core/project.vt b/main/webapp/modules/core/project.vt
index 071379c68..553641c60 100644
--- a/main/webapp/modules/core/project.vt
+++ b/main/webapp/modules/core/project.vt
@@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
+
OpenRefine
diff --git a/main/webapp/modules/core/scripts/chrome-frame.js b/main/webapp/modules/core/scripts/chrome-frame.js
deleted file mode 100644
index aa2768d04..000000000
--- a/main/webapp/modules/core/scripts/chrome-frame.js
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
-
-Copyright 2011, Google Inc.
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are
-met:
-
- * Redistributions of source code must retain the above copyright
-notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above
-copyright notice, this list of conditions and the following disclaimer
-in the documentation and/or other materials provided with the
-distribution.
- * Neither the name of Google Inc. nor the names of its
-contributors may be used to endorse or promote products derived from
-this software without specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- */
-
-$(function() {
- CFInstall.check({ mode: 'overlay' });
-});
\ No newline at end of file
diff --git a/main/webapp/modules/core/scripts/facets/list-facet.js b/main/webapp/modules/core/scripts/facets/list-facet.js
index ae508c5f7..42500b05c 100644
--- a/main/webapp/modules/core/scripts/facets/list-facet.js
+++ b/main/webapp/modules/core/scripts/facets/list-facet.js
@@ -313,7 +313,21 @@ ListFacet.prototype._update = function(resetScroll) {
}
}
+ // FIXME: this is very slow for large numbers of choices (e.g. 18 seconds for 13K choices)
this._elmts.bodyInnerDiv.empty();
+
+ // None of the following alternatives are significantly faster
+
+// this._elmts.bodyInnerDiv.innerHtml = '';
+
+// this._elmts.bodyInnerDiv.detach();
+// this._elmts.bodyInnerDiv.children().remove();
+// this._elmts.bodyInnerDiv.appendTo('.facet-body');
+
+// this._elmts.bodyInnerDiv.remove();
+// this._elmts.bodyInnerDiv.html('');
+// this._elmts.bodyInnerDiv.appendTo('.facet-body');
+
//this._elmts.statusDiv.show();
this._elmts.controlsDiv.show();
@@ -409,7 +423,9 @@ ListFacet.prototype._update = function(resetScroll) {
var wireEvents = function() {
var bodyInnerDiv = self._elmts.bodyInnerDiv;
- bodyInnerDiv.find('.facet-choice-label').click(function() {
+ bodyInnerDiv.off(); // remove all old handlers
+ bodyInnerDiv.on('click', '.facet-choice-label', function(e) {
+ e.preventDefault();
var choice = findChoice($(this));
if (choice.s) {
if (selectionCount > 1) {
@@ -423,28 +439,28 @@ ListFacet.prototype._update = function(resetScroll) {
select(choice);
}
});
- bodyInnerDiv.find('.facet-choice-edit').click(function() {
+ bodyInnerDiv.on('click', '.facet-choice-edit', function(e) {
+ e.preventDefault();
var choice = findChoice($(this));
self._editChoice(choice, $(this).closest('.facet-choice'));
});
- bodyInnerDiv.find('.facet-choice').mouseenter(function() {
- $(this).find('.facet-choice-edit').css("visibility", "visible");
-
- var choice = getChoice($(this));
- if (!choice.s) {
- $(this).find('.facet-choice-toggle').css("visibility", "visible");
+ bodyInnerDiv.on('mouseenter mouseleave', '.facet-choice', function(e) {
+ e.preventDefault();
+ var visibility = 'visible';
+ if (e.type == 'mouseleave') {
+ visibility = 'hidden';
}
- }).mouseleave(function() {
- $(this).find('.facet-choice-edit').css("visibility", "hidden");
+ $(this).find('.facet-choice-edit').css("visibility", visibility);
var choice = getChoice($(this));
if (!choice.s) {
- $(this).find('.facet-choice-toggle').css("visibility", "hidden");
+ $(this).find('.facet-choice-toggle').css("visibility", visibility);
}
});
- bodyInnerDiv.find('.facet-choice-toggle').click(function() {
+ bodyInnerDiv.on('click', '.facet-choice-toggle', function(e) {
+ e.preventDefault();
var choice = findChoice($(this));
if (choice.s) {
deselect(choice);
@@ -454,7 +470,7 @@ ListFacet.prototype._update = function(resetScroll) {
});
};
window.setTimeout(wireEvents, 100);
-};
+}; // end _update()
ListFacet.prototype._renderBodyControls = function() {
var self = this;
diff --git a/main/webapp/modules/core/scripts/index.js b/main/webapp/modules/core/scripts/index.js
index 69880d0d9..b557cdea4 100644
--- a/main/webapp/modules/core/scripts/index.js
+++ b/main/webapp/modules/core/scripts/index.js
@@ -37,8 +37,7 @@ var Refine = {
actionAreas: []
};
-var lang = navigator.language.split("-")[0]
- || navigator.userLanguage.split("-")[0];
+var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
diff --git a/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js b/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js
index ebc5a16f4..465ec147c 100644
--- a/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js
+++ b/main/webapp/modules/core/scripts/index/parser-interfaces/json-parser-ui.js
@@ -66,6 +66,9 @@ Refine.JsonParserUI.prototype.confirmReadyToCreateProject = function() {
};
Refine.JsonParserUI.prototype.getOptions = function() {
+ if(!this._config.recordPath){
+ this._setRecordPath(this._config.defaultRecordPath);
+ }
var options = {
recordPath: this._config.recordPath
};
@@ -236,6 +239,7 @@ Refine.JsonParserUI.prototype._showPickRecordNodesUI = function() {
}
};
rootNode = $('').addClass('node').addClass('indented').appendTo(elmts.domContainer);
+ this._config.defaultRecordPath=[ANONYMOUS_NODE_NAME];
renderNode(this._config.dom, rootNode, [ANONYMOUS_NODE_NAME]);
};
diff --git a/main/webapp/modules/core/scripts/index/parser-interfaces/xml-parser-ui.js b/main/webapp/modules/core/scripts/index/parser-interfaces/xml-parser-ui.js
index ebe6696fb..6fce35b24 100644
--- a/main/webapp/modules/core/scripts/index/parser-interfaces/xml-parser-ui.js
+++ b/main/webapp/modules/core/scripts/index/parser-interfaces/xml-parser-ui.js
@@ -66,6 +66,9 @@ Refine.XmlParserUI.prototype.confirmReadyToCreateProject = function() {
};
Refine.XmlParserUI.prototype.getOptions = function() {
+ if(!this._config.recordPath){
+ this._setRecordPath(this._config.defaultRecordPath);
+ }
var options = {
recordPath: this._config.recordPath
};
@@ -229,6 +232,7 @@ Refine.XmlParserUI.prototype._showPickRecordElementsUI = function() {
}
};
if (this._config.dom) {
+ this._config.defaultRecordPath=[];
renderNode(this._config.dom, elmts.domContainer, []);
}
};
diff --git a/main/webapp/modules/core/scripts/preferences.js b/main/webapp/modules/core/scripts/preferences.js
index 014dc46dd..20c963cbd 100644
--- a/main/webapp/modules/core/scripts/preferences.js
+++ b/main/webapp/modules/core/scripts/preferences.js
@@ -33,8 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var preferenceUIs = [];
-var lang = navigator.language.split("-")[0]
-|| navigator.userLanguage.split("-")[0];
+var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
diff --git a/main/webapp/modules/core/scripts/project.js b/main/webapp/modules/core/scripts/project.js
index 657a39991..3f81b8778 100644
--- a/main/webapp/modules/core/scripts/project.js
+++ b/main/webapp/modules/core/scripts/project.js
@@ -34,8 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var theProject;
var ui = {};
-var lang = navigator.language.split("-")[0]
- || navigator.userLanguage.split("-")[0];
+var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
diff --git a/server/src/com/google/refine/.Refine.java.swp b/server/src/com/google/refine/.Refine.java.swp
deleted file mode 100644
index ff46c7845..000000000
Binary files a/server/src/com/google/refine/.Refine.java.swp and /dev/null differ
diff --git a/server/src/com/google/refine/Refine.java b/server/src/com/google/refine/Refine.java
index 99500ee9c..a5aa349b9 100644
--- a/server/src/com/google/refine/Refine.java
+++ b/server/src/com/google/refine/Refine.java
@@ -182,10 +182,11 @@ class RefineServer extends Server {
}
final String contextPath = Configurations.get("refine.context_path","/");
+ final int maxFormContentSize = Configurations.getInteger("refine.max_form_content_size", 1048576);
logger.info("Initializing context: '" + contextPath + "' from '" + webapp.getAbsolutePath() + "'");
WebAppContext context = new WebAppContext(webapp.getAbsolutePath(), contextPath);
- context.setMaxFormContentSize(1048576);
+ context.setMaxFormContentSize(maxFormContentSize);
this.setHandler(context);
this.setStopAtShutdown(true);