瀏覽代碼

搜索结果提示汉化
搜索结果表格及列名汉化

zlSun 1 年之前
父節點
當前提交
446de6ff56
共有 2 個文件被更改,包括 85 次插入85 次删除
  1. 6 6
      atlas/js/utils/CommonViewFunction.js
  2. 79 79
      atlas/js/views/search/SearchResultLayoutView.js

+ 6 - 6
atlas/js/utils/CommonViewFunction.js

@@ -184,26 +184,26 @@ define([ "require", "utils/Utils", "modules/Modal", "utils/Messages", "utils/Enu
             formatDate: !0
         }), queryArray = [];
         if (value.type) {
-            var typeKeyValue = '<span class="key">Type:</span>&nbsp<span class="value">' + _.escape(value.type) + "</span>";
+            var typeKeyValue = '<span class="key">类型:</span>&nbsp<span class="value">' + _.escape(value.type) + "</span>";
             if (entityFilters) {
-                var conditionForEntity = 1 == entityFilters.rules.length ? "" : "AND";
+                var conditionForEntity = 1 == entityFilters.rules.length ? "" : "";
                 typeKeyValue += '&nbsp<span class="operator">' + conditionForEntity + '</span>&nbsp(<span class="operator">' + entityFilters.condition + "</span>&nbsp(" + objToString(entityFilters) + "))";
             }
             queryArray.push(typeKeyValue);
         }
         if (value.tag) {
-            var tagKeyValue = '<span class="key">Classification:</span>&nbsp<span class="value">' + _.escape(value.tag) + "</span>";
+            var tagKeyValue = '<span class="key">分类:</span>&nbsp<span class="value">' + _.escape(value.tag) + "</span>";
             if (tagFilters) {
-                var conditionFortag = 1 == tagFilters.rules.length ? "" : "AND";
+                var conditionFortag = 1 == tagFilters.rules.length ? "" : "";
                 tagKeyValue += '&nbsp<span class="operator">' + conditionFortag + '</span>&nbsp(<span class="operator">' + tagFilters.condition + "</span>&nbsp(" + objToString(tagFilters) + "))";
             }
             queryArray.push(tagKeyValue);
         }
         if (value.term) {
-            var tagKeyValue = '<span class="key">Term:</span>&nbsp<span class="value">' + _.escape(value.term) + "</span>";
+            var tagKeyValue = '<span class="key">术语:</span>&nbsp<span class="value">' + _.escape(value.term) + "</span>";
             queryArray.push(tagKeyValue);
         }
-        return value.query && queryArray.push('<span class="key">Query:</span>&nbsp<span class="value">' + _.trim(_.escape(value.query)) + "</span>&nbsp"), 
+        return value.query && queryArray.push('<span class="key">查询语句:</span>&nbsp<span class="value">' + _.trim(_.escape(value.query)) + "</span>&nbsp"),
         1 == queryArray.length ? queryArray.join() : "<span>(</span>&nbsp" + queryArray.join("<span>&nbsp)</span>&nbsp<span>AND</span>&nbsp<span>(</span>&nbsp") + "&nbsp<span>)</span>";
     }, CommonViewFunction.generateObjectForSaveSearchApi = function(options) {
         var obj = {

+ 79 - 79
atlas/js/views/search/SearchResultLayoutView.js

@@ -68,26 +68,26 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             }, events["keyup " + this.ui.gotoPage] = function(e) {
                 var code = e.which;
                 parseInt(e.currentTarget.value);
-                e.currentTarget.value ? that.ui.gotoPagebtn.attr("disabled", !1) : that.ui.gotoPagebtn.attr("disabled", !0), 
+                e.currentTarget.value ? that.ui.gotoPagebtn.attr("disabled", !1) : that.ui.gotoPagebtn.attr("disabled", !0),
                 13 == code && e.currentTarget.value && that.gotoPagebtn();
-            }, events["change " + this.ui.showPage] = "changePageLimit", events["click " + this.ui.gotoPagebtn] = "gotoPagebtn", 
-            events["click " + this.ui.addTag] = "onClickAddTag", events["click " + this.ui.addTerm] = "onClickAddTermBtn", 
-            events["click " + this.ui.addAssignTag] = "onClickAddTag", events["click " + this.ui.addAssignTerm] = "onClickAddTermBtn", 
-            events["click " + this.ui.nextData] = "onClicknextData", events["click " + this.ui.previousData] = "onClickpreviousData", 
-            events["click " + this.ui.createEntity] = "onClickCreateEntity", events["click " + this.ui.checkDeletedEntity] = "onCheckExcludeIncludeResult", 
-            events["click " + this.ui.checkSubClassification] = "onCheckExcludeIncludeResult", 
+            }, events["change " + this.ui.showPage] = "changePageLimit", events["click " + this.ui.gotoPagebtn] = "gotoPagebtn",
+            events["click " + this.ui.addTag] = "onClickAddTag", events["click " + this.ui.addTerm] = "onClickAddTermBtn",
+            events["click " + this.ui.addAssignTag] = "onClickAddTag", events["click " + this.ui.addAssignTerm] = "onClickAddTermBtn",
+            events["click " + this.ui.nextData] = "onClicknextData", events["click " + this.ui.previousData] = "onClickpreviousData",
+            events["click " + this.ui.createEntity] = "onClickCreateEntity", events["click " + this.ui.checkDeletedEntity] = "onCheckExcludeIncludeResult",
+            events["click " + this.ui.checkSubClassification] = "onCheckExcludeIncludeResult",
             events["click " + this.ui.checkSubType] = "onCheckExcludeIncludeResult", events;
         },
         initialize: function(options) {
-            if (_.extend(this, _.pick(options, "value", "guid", "initialView", "isTypeTagNotExists", "classificationDefCollection", "entityDefCollection", "typeHeaders", "searchVent", "enumDefCollection", "tagCollection", "searchTableColumns", "isTableDropDisable", "fromView", "glossaryCollection", "termName", "businessMetadataDefCollection", "profileDBView")), 
-            this.entityModel = new VEntity(), this.searchCollection = new VSearchList(), this.limit = 25, 
-            this.asyncFetchCounter = 0, this.offset = 0, this.bindEvents(), this.multiSelectEntity = [], 
+            if (_.extend(this, _.pick(options, "value", "guid", "initialView", "isTypeTagNotExists", "classificationDefCollection", "entityDefCollection", "typeHeaders", "searchVent", "enumDefCollection", "tagCollection", "searchTableColumns", "isTableDropDisable", "fromView", "glossaryCollection", "termName", "businessMetadataDefCollection", "profileDBView")),
+            this.entityModel = new VEntity(), this.searchCollection = new VSearchList(), this.limit = 25,
+            this.asyncFetchCounter = 0, this.offset = 0, this.bindEvents(), this.multiSelectEntity = [],
             this.searchType = "基础查询", this.columnOrder = null, this.defaultColumns = [ "selected", "name", "description", "typeName", "owner", "tag", "term" ],
             this.value) {
                 if (this.value.searchType && "dsl" == this.value.searchType && (this.searchType = "高级查询"),
                 this.value.pageLimit) {
                     var pageLimit = parseInt(this.value.pageLimit, 10);
-                    _.isNaN(pageLimit) || 0 == pageLimit || pageLimit <= -1 ? (this.value.pageLimit = this.limit, 
+                    _.isNaN(pageLimit) || 0 == pageLimit || pageLimit <= -1 ? (this.value.pageLimit = this.limit,
                     this.triggerUrl()) : this.limit = pageLimit;
                 }
                 if (this.value.pageOffset) {
@@ -100,7 +100,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
         bindEvents: function() {
             var that = this;
             this.onClickLoadMore(), this.listenTo(this.searchCollection, "backgrid:selected", function(model, checked) {
-                this.multiSelectEntity = [], checked === !0 ? model.set("isEnable", !0) : model.set("isEnable", !1), 
+                this.multiSelectEntity = [], checked === !0 ? model.set("isEnable", !0) : model.set("isEnable", !1),
                 this.searchCollection.find(function(item) {
                     if (item.get("isEnable")) {
                         var obj = item.toJSON();
@@ -122,9 +122,9 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                 if (Utils.getUrlState.isSearchTab()) {
                     this.updateColumnList(state);
                     var excludeDefaultColumn = [];
-                    this.value && this.value.type && (excludeDefaultColumn = _.difference(this.searchTableColumns[this.value.type], this.defaultColumns), 
-                    null === this.searchTableColumns[this.value.type] ? this.ui.columnEmptyInfo.show() : this.ui.columnEmptyInfo.hide()), 
-                    this.columnOrder = this.getColumnOrder(this.REntityTableLayoutView.$el.find(".colSort th.renderable")), 
+                    this.value && this.value.type && (excludeDefaultColumn = _.difference(this.searchTableColumns[this.value.type], this.defaultColumns),
+                    null === this.searchTableColumns[this.value.type] ? this.ui.columnEmptyInfo.show() : this.ui.columnEmptyInfo.hide()),
+                    this.columnOrder = this.getColumnOrder(this.REntityTableLayoutView.$el.find(".colSort th.renderable")),
                     this.triggerUrl();
                     var attributes = this.searchCollection.filterObj.attributes;
                     excludeDefaultColumn && attributes && (excludeDefaultColumn.length > attributes.length || _.difference(excludeDefaultColumn, attributes).length) && this.fetchCollection(this.value);
@@ -167,17 +167,17 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                 },
                 filterOpts: {},
                 paginatorOpts: {}
-            }, this.initialView) Globals.entityTypeConfList && this.$(".entityLink").show(), 
+            }, this.initialView) Globals.entityTypeConfList && this.$(".entityLink").show(),
             this.isTypeTagNotExists && Utils.notifyError({
                 content: Messages.search.notExists
             }); else {
                 var value = {};
-                this.value ? (value = this.value, value && value.includeDE && this.ui.checkDeletedEntity.prop("checked", !0), 
-                value && value.excludeSC && this.ui.checkSubClassification.prop("checked", !0), 
+                this.value ? (value = this.value, value && value.includeDE && this.ui.checkDeletedEntity.prop("checked", !0),
+                value && value.excludeSC && this.ui.checkSubClassification.prop("checked", !0),
                 value && value.excludeST && this.ui.checkSubType.prop("checked", !0)) : value = {
                     query: null,
                     searchType: "basic"
-                }, this.updateColumnList(), this.value && this.searchTableColumns && null === this.searchTableColumns[this.value.type] ? this.ui.columnEmptyInfo.show() : this.ui.columnEmptyInfo.hide(), 
+                }, this.updateColumnList(), this.value && this.searchTableColumns && null === this.searchTableColumns[this.value.type] ? this.ui.columnEmptyInfo.show() : this.ui.columnEmptyInfo.hide(),
                 this.fetchCollection(value, _.extend({
                     fromUrl: !0
                 }, this.value && this.value.pageOffset ? {
@@ -218,14 +218,14 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                 _.map(updatedList, function(obj) {
                     obj.name;
                     obj.renderable && listOfColumns.push(obj.name);
-                }), listOfColumns = _.sortBy(listOfColumns), this.value.attributes = listOfColumns.length ? listOfColumns.join(",") : null, 
+                }), listOfColumns = _.sortBy(listOfColumns), this.value.attributes = listOfColumns.length ? listOfColumns.join(",") : null,
                 this.value && this.value.type && this.searchTableColumns && (this.searchTableColumns[this.value.type] = listOfColumns.length ? listOfColumns : null);
             } else this.value && this.value.type && this.searchTableColumns && this.value.attributes && (this.searchTableColumns[this.value.type] = this.value.attributes.split(","));
         },
         fetchCollection: function(value, options) {
             var that = this, isPostMethod = this.value && "basic" === this.value.searchType, isSearchTab = Utils.getUrlState.isSearchTab(), tagFilters = null, entityFilters = null;
-            if (isSearchTab && (tagFilters = CommonViewFunction.attributeFilter.generateAPIObj(this.value.tagFilters), 
-            entityFilters = CommonViewFunction.attributeFilter.generateAPIObj(this.value.entityFilters)), 
+            if (isSearchTab && (tagFilters = CommonViewFunction.attributeFilter.generateAPIObj(this.value.tagFilters),
+            entityFilters = CommonViewFunction.attributeFilter.generateAPIObj(this.value.entityFilters)),
             isPostMethod && isSearchTab) var excludeDefaultColumn = this.value.type && this.searchTableColumns ? _.difference(this.searchTableColumns[this.value.type], this.defaultColumns) : null, filterObj = {
                 entityFilters: entityFilters,
                 tagFilters: tagFilters,
@@ -239,14 +239,14 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     if (!that.isDestroyed) {
                         Globals.searchApiCallRef = void 0;
                         var isFirstPage = 0 === that.offset, dataLength = 0, goToPage = that.ui.gotoPage.val();
-                        if (that.ui.gotoPage.val(""), that.ui.gotoPage.parent().removeClass("has-error"), 
+                        if (that.ui.gotoPage.val(""), that.ui.gotoPage.parent().removeClass("has-error"),
                         that.ui.gotoPagebtn.prop("disabled", !0), that.ui.pageRecordText instanceof jQuery) {
-                            if (dataLength = isPostMethod && dataOrCollection && dataOrCollection.entities ? dataOrCollection.entities.length : dataOrCollection.length, 
+                            if (dataLength = isPostMethod && dataOrCollection && dataOrCollection.entities ? dataOrCollection.entities.length : dataOrCollection.length,
                             !dataLength && that.offset >= that.limit && (options && options.next || goToPage) && options && !options.fromUrl) {
                                 that.hideLoader();
                                 var pageNumber = that.activePage + 1;
-                                return goToPage ? (pageNumber = goToPage, that.offset = (that.activePage - 1) * that.limit) : (that.finalPage = that.activePage, 
-                                that.ui.nextData.attr("disabled", !0), that.offset = that.offset - that.limit), 
+                                return goToPage ? (pageNumber = goToPage, that.offset = (that.activePage - 1) * that.limit) : (that.finalPage = that.activePage,
+                                that.ui.nextData.attr("disabled", !0), that.offset = that.offset - that.limit),
                                 that.value && (that.value.pageOffset = that.offset, that.triggerUrl()), void Utils.notifyInfo({
                                     html: !0,
                                     content: Messages.search.noRecordForPage + "<b>" + Utils.getNumberSuffix({
@@ -262,16 +262,16 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                 silent: !0
                             }), that.searchCollection.fullCollection.reset(dataOrCollection.entities, {
                                 silent: !0
-                            })), dataLength < that.limit ? that.ui.nextData.attr("disabled", !0) : that.ui.nextData.attr("disabled", !1), 
-                            isFirstPage && (!dataLength || dataLength < that.limit) ? that.ui.paginationDiv.hide() : that.ui.paginationDiv.show(), 
-                            isFirstPage ? (that.ui.previousData.attr("disabled", !0), that.pageFrom = 1, that.pageTo = that.limit) : that.ui.previousData.attr("disabled", !1), 
-                            options && options.next ? (that.pageTo = that.offset + that.limit, that.pageFrom = that.offset + 1) : !isFirstPage && options && options.previous && (that.pageTo = that.pageTo - that.limit, 
+                            })), dataLength < that.limit ? that.ui.nextData.attr("disabled", !0) : that.ui.nextData.attr("disabled", !1),
+                            isFirstPage && (!dataLength || dataLength < that.limit) ? that.ui.paginationDiv.hide() : that.ui.paginationDiv.show(),
+                            isFirstPage ? (that.ui.previousData.attr("disabled", !0), that.pageFrom = 1, that.pageTo = that.limit) : that.ui.previousData.attr("disabled", !1),
+                            options && options.next ? (that.pageTo = that.offset + that.limit, that.pageFrom = that.offset + 1) : !isFirstPage && options && options.previous && (that.pageTo = that.pageTo - that.limit,
                             that.pageFrom = that.pageTo - that.limit + 1), that.ui.pageRecordText.html("显示  <u>" + that.searchCollection.models.length + " 条记录</u> 从 " + that.pageFrom + " - " + that.pageTo),
-                            that.activePage = Math.round(that.pageTo / that.limit), that.ui.activePage.attr("title", "Page " + that.activePage), 
-                            that.ui.activePage.text(that.activePage), that.renderTableLayoutView(), that.multiSelectEntity = [], 
-                            that.updateMultiSelect(), dataLength > 0 && that.$(".searchTable").removeClass("noData"), 
+                            that.activePage = Math.round(that.pageTo / that.limit), that.ui.activePage.attr("title", "Page " + that.activePage),
+                            that.ui.activePage.text(that.activePage), that.renderTableLayoutView(), that.multiSelectEntity = [],
+                            that.updateMultiSelect(), dataLength > 0 && that.$(".searchTable").removeClass("noData"),
                             Utils.getUrlState.isSearchTab() && value && !that.profileDBView) {
-                                var searchString = 'Results for: <span class="filterQuery">' + CommonViewFunction.generateQueryOfFilter(that.value) + "</span>";
+                                var searchString = '搜索条件:<span class="filterQuery">' + CommonViewFunction.generateQueryOfFilter(that.value) + "的结果为:</span>";
                                 Globals.entityCreate && Globals.entityTypeConfList && Utils.getUrlState.isSearchTab() && (searchString += '<p>如果你没有在搜索结果中找到目标实体,那么你可以<a href="javascript:void(0)" data-id="createEntity">创建新实体</a></p>'),
                                 that.$(".searchResult").html(searchString);
                             }
@@ -288,7 +288,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                 includeClassificationAttributes: !0
             };
             if (value) {
-                if (value.searchType && (this.searchCollection.url = UrlLinks.searchApiUrl(value.searchType)), 
+                if (value.searchType && (this.searchCollection.url = UrlLinks.searchApiUrl(value.searchType)),
                 _.extend(this.searchCollection.queryParams, {
                     limit: this.limit,
                     offset: this.offset,
@@ -298,19 +298,19 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     termName: value.term || null
                 }), this.profileDBView && value.typeName && value.guid) {
                     var profileParam = {};
-                    profileParam.guid = value.guid, profileParam.relation = "hive_db" === value.typeName ? "__hive_table.db" : "__hbase_table.namespace", 
+                    profileParam.guid = value.guid, profileParam.relation = "hive_db" === value.typeName ? "__hive_table.db" : "__hbase_table.namespace",
                     profileParam.sortBy = "name", profileParam.sortOrder = "ASCENDING", _.extend(this.searchCollection.queryParams, profileParam);
                 }
-                isPostMethod ? (this.searchCollection.filterObj = _.extend({}, filterObj), apiObj.data = _.extend(checkBoxValue, filterObj, _.pick(this.searchCollection.queryParams, "query", "excludeDeletedEntities", "limit", "offset", "typeName", "classification", "termName")), 
-                Globals.searchApiCallRef = this.searchCollection.getBasicRearchResult(apiObj)) : (apiObj.data = null, 
-                this.searchCollection.filterObj = null, this.profileDBView && _.extend(this.searchCollection.queryParams, checkBoxValue), 
+                isPostMethod ? (this.searchCollection.filterObj = _.extend({}, filterObj), apiObj.data = _.extend(checkBoxValue, filterObj, _.pick(this.searchCollection.queryParams, "query", "excludeDeletedEntities", "limit", "offset", "typeName", "classification", "termName")),
+                Globals.searchApiCallRef = this.searchCollection.getBasicRearchResult(apiObj)) : (apiObj.data = null,
+                this.searchCollection.filterObj = null, this.profileDBView && _.extend(this.searchCollection.queryParams, checkBoxValue),
                 Globals.searchApiCallRef = this.searchCollection.fetch(apiObj));
             } else _.extend(this.searchCollection.queryParams, {
                 limit: this.limit,
                 offset: this.offset
-            }), isPostMethod ? (apiObj.data = _.extend(checkBoxValue, filterObj, _.pick(this.searchCollection.queryParams, "query", "excludeDeletedEntities", "limit", "offset", "typeName", "classification", "termName")), 
-            Globals.searchApiCallRef = this.searchCollection.getBasicRearchResult(apiObj)) : (apiObj.data = null, 
-            this.profileDBView && _.extend(this.searchCollection.queryParams, checkBoxValue), 
+            }), isPostMethod ? (apiObj.data = _.extend(checkBoxValue, filterObj, _.pick(this.searchCollection.queryParams, "query", "excludeDeletedEntities", "limit", "offset", "typeName", "classification", "termName")),
+            Globals.searchApiCallRef = this.searchCollection.getBasicRearchResult(apiObj)) : (apiObj.data = null,
+            this.profileDBView && _.extend(this.searchCollection.queryParams, checkBoxValue),
             Globals.searchApiCallRef = this.searchCollection.fetch(apiObj));
         },
         tableRender: function(options) {
@@ -338,19 +338,19 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             var table = new TableLayout(_.extend({}, that.commonTableOptions, {
                 columns: columns
             }));
-            if (0 === table.collection.length && that.$(".searchTable").addClass("noData"), 
-            that.REntityTableLayoutView && (that.value || (that.value = that.options.value), 
-            that.REntityTableLayoutView.show(table), "dsl" !== that.value.searchType ? that.ui.containerCheckBox.show() : that.ui.containerCheckBox.hide(), 
-            that.$(".ellipsis-with-margin .inputAssignTag").hide(), table.trigger("grid:refresh"), 
+            if (0 === table.collection.length && that.$(".searchTable").addClass("noData"),
+            that.REntityTableLayoutView && (that.value || (that.value = that.options.value),
+            that.REntityTableLayoutView.show(table), "dsl" !== that.value.searchType ? that.ui.containerCheckBox.show() : that.ui.containerCheckBox.hide(),
+            that.$(".ellipsis-with-margin .inputAssignTag").hide(), table.trigger("grid:refresh"),
             that.isTableDropDisable !== !0)) {
                 var tableDropFunction = function(from, to, el) {
-                    tableDragger(document.querySelector(".colSort")).destroy(), that.columnOrder = that.getColumnOrder(el.querySelectorAll("th.renderable")), 
+                    tableDragger(document.querySelector(".colSort")).destroy(), that.columnOrder = that.getColumnOrder(el.querySelectorAll("th.renderable")),
                     that.triggerUrl(), that.tableRender({
                         order: that.columnOrder,
                         table: TableLayout
                     }), that.checkTableFetch();
                 };
-                that.REntityTableLayoutView.$el.find(".colSort thead tr th:not(.select-all-header-cell)").addClass("dragHandler"), 
+                that.REntityTableLayoutView.$el.find(".colSort thead tr th:not(.select-all-header-cell)").addClass("dragHandler"),
                 tableDragger(document.querySelector(".colSort"), {
                     dragHandler: ".dragHandler"
                 }).on("drop", tableDropFunction);
@@ -390,18 +390,18 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
         },
         getFixedDslColumn: function() {
             var that = this, columnToShow = null, col = {};
-            if (this.value = "glossary" === this.fromView ? this.value : Utils.getUrlState.getQueryParams() || this.value, 
-            this.value && "basic" === this.value.searchType && this.searchTableColumns && void 0 !== this.searchTableColumns[this.value.type] && (columnToShow = null == this.searchTableColumns[this.value.type] ? [] : this.searchTableColumns[this.value.type]), 
+            if (this.value = "glossary" === this.fromView ? this.value : Utils.getUrlState.getQueryParams() || this.value,
+            this.value && "basic" === this.value.searchType && this.searchTableColumns && void 0 !== this.searchTableColumns[this.value.type] && (columnToShow = null == this.searchTableColumns[this.value.type] ? [] : this.searchTableColumns[this.value.type]),
             col.Check = {
                 name: "selected",
-                label: "Select",
+                label: "选择",
                 cell: "select-row",
                 resizeable: !1,
                 orderable: !1,
                 renderable: !columnToShow || _.contains(columnToShow, "selected"),
                 headerCell: "select-all"
             }, col.name = {
-                label: this.value && this.profileDBView ? "Table Name" : "Name",
+                label: this.value && this.profileDBView ? "表格名称" : "名称",
                 cell: "html",
                 editable: !1,
                 resizeable: !0,
@@ -417,8 +417,8 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                             });
                             defObj && (Globals.serviceTypeMap[obj.typeName] = defObj.get("serviceType"));
                         }
-                        obj.serviceType = Globals.serviceTypeMap[obj.typeName], nameHtml = obj.guid ? "-1" == obj.guid ? '<span title="' + name + '">' + name + "</span>" : '<a title="' + name + '" href="#!/detailPage/' + obj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>", 
-                        obj.status && Enums.entityStateReadOnly[obj.status] && (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>', 
+                        obj.serviceType = Globals.serviceTypeMap[obj.typeName], nameHtml = obj.guid ? "-1" == obj.guid ? '<span title="' + name + '">' + name + "</span>" : '<a title="' + name + '" href="#!/detailPage/' + obj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
+                        obj.status && Enums.entityStateReadOnly[obj.status] && (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
                         nameHtml = '<div class="readOnly readOnlyLink">' + nameHtml + "</div>");
                         var getImageData = function(options) {
                             var imagePath = options.imagePath, returnImgUrl = null;
@@ -432,21 +432,21 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                         entityData: obj,
                                         errorUrl: imagePath
                                     })
-                                }) : data && (that.checkEntityImage[model.get("guid")] = imagePath, returnImgUrl = imagePath, 
+                                }) : data && (that.checkEntityImage[model.get("guid")] = imagePath, returnImgUrl = imagePath,
                                 that.$("img[data-imgGuid='" + obj.guid + "']").removeClass("searchTableLogoLoader").attr("src", imagePath));
                             });
                         }, img = "";
-                        return img = "<div><img data-imgGuid='" + obj.guid + "' class='searchTableLogoLoader'></div>", 
+                        return img = "<div><img data-imgGuid='" + obj.guid + "' class='searchTableLogoLoader'></div>",
                         void 0 == that.checkEntityImage[model.get("guid")] ? getImageData({
                             imagePath: Utils.getEntityIconPath({
                                 entityData: obj
                             })
-                        }) : 0 != that.checkEntityImage[model.get("guid")] && (img = "<div><img data-imgGuid='" + obj.guid + "' src='" + that.checkEntityImage[model.get("guid")] + "'></div>"), 
+                        }) : 0 != that.checkEntityImage[model.get("guid")] && (img = "<div><img data-imgGuid='" + obj.guid + "' src='" + that.checkEntityImage[model.get("guid")] + "'></div>"),
                         img + nameHtml;
                     }
                 })
             }, col.owner = {
-                label: "Owner",
+                label: "所有者",
                 cell: "String",
                 editable: !1,
                 resizeable: !0,
@@ -459,7 +459,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     }
                 })
             }, this.value && this.profileDBView && (col.createTime = {
-                label: "Date Created",
+                label: "创建时间",
                 cell: "Html",
                 editable: !1,
                 formatter: _.extend({}, Backgrid.CellFormatter.prototype, {
@@ -471,7 +471,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     }
                 })
             }), this.value && !this.profileDBView && (col.description = {
-                label: "Description",
+                label: "描述",
                 cell: "String",
                 editable: !1,
                 resizeable: !0,
@@ -484,7 +484,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     }
                 })
             }, col.typeName = {
-                label: "Type",
+                label: "类型",
                 cell: "Html",
                 editable: !1,
                 resizeable: !0,
@@ -511,19 +511,19 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     sortedAttributes && (sortedAttributes = _.sortBy(sortedAttributes, function(obj) {
                         return obj.name;
                     }), businessAttributes[name] = $.extend(!0, {}, sortedAttributes));
-                }) : businessAttributes = def ? $.extend(!0, {}, def.get("businessAttributeDefs")) || null : null, 
+                }) : businessAttributes = def ? $.extend(!0, {}, def.get("businessAttributeDefs")) || null : null,
                 def || Globals[this.value.type] || (this.value.tag ? Globals[this.value.tag] ? Globals[this.value.tag] : Globals[Enums.addOnClassification[0]] : void 0)) {
                     var attrObj = def ? Utils.getNestedSuperTypeObj({
                         data: def.toJSON(),
                         collection: this.entityDefCollection,
                         attrMerge: !0
                     }) : [];
-                    this.value.type && (Globals[this.value.type] || Globals[Enums.addOnEntities[0]]) && (systemAttr = (Globals[this.value.type] || Globals[Enums.addOnEntities[0]]).attributeDefs), 
-                    this.value.tag && (Globals[this.value.tag] || Globals[Enums.addOnClassification[0]]) && (systemAttr = (Globals[this.value.tag] || Globals[Enums.addOnClassification[0]]).attributeDefs), 
+                    this.value.type && (Globals[this.value.type] || Globals[Enums.addOnEntities[0]]) && (systemAttr = (Globals[this.value.type] || Globals[Enums.addOnEntities[0]]).attributeDefs),
+                    this.value.tag && (Globals[this.value.tag] || Globals[Enums.addOnClassification[0]]) && (systemAttr = (Globals[this.value.tag] || Globals[Enums.addOnClassification[0]]).attributeDefs),
                     attrObj = attrObj.concat(systemAttr), businessAttributes && _.each(businessAttributes, function(businessMetadata, businessMetadataName) {
                         _.each(businessMetadata, function(attr, index) {
                             var attribute = attr;
-                            attribute.isBusinessAttributes = !0, attribute.name = businessMetadataName + "." + attribute.name, 
+                            attribute.isBusinessAttributes = !0, attribute.name = businessMetadataName + "." + attribute.name,
                             businessMetadataAttr.push(attribute);
                         });
                     }), attrObj = attrObj.concat(businessMetadataAttr), _.each(attrObj, function(obj, key) {
@@ -550,7 +550,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                         };
                                         if ("__labels" == key) {
                                             var values = modelObj.attributes[key] ? modelObj.attributes[key].split("|") : null, valueOfArray = [];
-                                            if (values) return "" === values[values.length - 1] && values.pop(), "" === values[0] && values.shift(), 
+                                            if (values) return "" === values[values.length - 1] && values.pop(), "" === values[0] && values.shift(),
                                             _.each(values, function(names) {
                                                 valueOfArray.push('<span class="json-string"><a class="btn btn-action btn-sm btn-blue btn-icon" ><span>' + _.escape(names) + "</span></a></span>");
                                             }), valueOfArray.join(" ");
@@ -565,7 +565,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                         var tablecolumn = CommonViewFunction.propertyTable(tempObj);
                                         if (_.isArray(modelObj.attributes[key])) {
                                             var column = $("<div>" + tablecolumn + "</div>");
-                                            return tempObj.valueObject[key].length > 2 && column.addClass("toggleList semi-collapsed").append("<span><a data-id='load-more-columns'>Show More</a></span>"), 
+                                            return tempObj.valueObject[key].length > 2 && column.addClass("toggleList semi-collapsed").append("<span><a data-id='load-more-columns'>Show More</a></span>"),
                                             column;
                                         }
                                         return tablecolumn;
@@ -582,7 +582,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             this.$el.on("click", "[data-id='load-more-columns']", function(event) {
                 event.stopPropagation(), event.stopImmediatePropagation();
                 var $this = $(this), $toggleList = $(this).parents(".toggleList");
-                $toggleList.length && ($toggleList.hasClass("semi-collapsed") ? ($toggleList.removeClass("semi-collapsed"), 
+                $toggleList.length && ($toggleList.hasClass("semi-collapsed") ? ($toggleList.removeClass("semi-collapsed"),
                 $this.text("Show Less")) : ($toggleList.addClass("semi-collapsed"), $this.text("Show More")));
             });
         },
@@ -602,8 +602,8 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                                 var modelObj = model.toJSON();
                                 if ("name" == key) {
                                     var nameHtml = "", name = _.escape(modelObj[key]);
-                                    return nameHtml = modelObj.guid ? '<a title="' + name + '" href="#!/detailPage/' + modelObj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>", 
-                                    modelObj.status && Enums.entityStateReadOnly[modelObj.status] ? (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>', 
+                                    return nameHtml = modelObj.guid ? '<a title="' + name + '" href="#!/detailPage/' + modelObj.guid + (that.fromView ? "?from=" + that.fromView : "") + '">' + name + "</a>" : '<span title="' + name + '">' + name + "</span>",
+                                    modelObj.status && Enums.entityStateReadOnly[modelObj.status] ? (nameHtml += '<button type="button" title="Deleted" class="btn btn-action btn-md deleteBtn"><i class="fa fa-trash"></i></button>',
                                     '<div class="readOnly readOnlyLink">' + nameHtml + "</div>") : nameHtml;
                                 }
                                 if (modelObj && !_.isUndefined(modelObj[key])) {
@@ -666,7 +666,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     guid: guid,
                     multiple: multiple,
                     callback: function() {
-                        that.multiSelectEntity = [], that.$(".multiSelectTag,.multiSelectTerm").hide(), 
+                        that.multiSelectEntity = [], that.$(".multiSelectTag,.multiSelectTerm").hide(),
                         that.fetchCollection(), that.searchVent && that.searchVent.trigger("entityList:refresh");
                     },
                     tagList: that.getTagList(guid, multiple),
@@ -693,12 +693,12 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             this.$(".fontLoader:not(.for-ignore)").addClass("show"), this.$(".tableOverlay").addClass("show");
         },
         hideLoader: function(options) {
-            this.$(".fontLoader:not(.for-ignore)").removeClass("show"), options && "error" === options.type ? this.$(".ellipsis-with-margin,.pagination-box").hide() : this.$(".ellipsis-with-margin,.pagination-box").show(), 
+            this.$(".fontLoader:not(.for-ignore)").removeClass("show"), options && "error" === options.type ? this.$(".ellipsis-with-margin,.pagination-box").hide() : this.$(".ellipsis-with-margin,.pagination-box").show(),
             this.$(".tableOverlay").removeClass("show");
         },
         onClickAddTag: function(e) {
             var guid = "", that = this, isTagMultiSelect = $(e.currentTarget).hasClass("multiSelectTag");
-            isTagMultiSelect && this.multiSelectEntity && this.multiSelectEntity.length ? that.addTagModalView(guid, this.multiSelectEntity) : (guid = that.$(e.currentTarget).data("guid"), 
+            isTagMultiSelect && this.multiSelectEntity && this.multiSelectEntity.length ? that.addTagModalView(guid, this.multiSelectEntity) : (guid = that.$(e.currentTarget).data("guid"),
             that.addTagModalView(guid));
         },
         assignTermModalView: function(glossaryCollection, obj) {
@@ -711,7 +711,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                     multiple: obj.multiple,
                     associatedTerms: obj.associatedTerms,
                     callback: function() {
-                        that.multiSelectEntity = [], that.$(".multiSelectTag,.multiSelectTerm").hide(), 
+                        that.multiSelectEntity = [], that.$(".multiSelectTag,.multiSelectTerm").hide(),
                         that.fetchCollection();
                     },
                     glossaryCollection: glossaryCollection
@@ -776,7 +776,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             });
         },
         onClickpreviousData: function() {
-            this.offset = this.offset - this.limit, this.offset <= -1 && (this.offset = 0), 
+            this.offset = this.offset - this.limit, this.offset <= -1 && (this.offset = 0),
             _.extend(this.searchCollection.queryParams, {
                 offset: this.offset
             }), this.value && (this.value.pageOffset = this.offset, this.triggerUrl()), this.fetchCollection(null, {
@@ -798,7 +798,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
         },
         onCheckExcludeIncludeResult: function(e) {
             var flag = !1, val = $(e.currentTarget).attr("data-value");
-            e.target.checked && (flag = !0), this.value && (this.value[val] = flag, this.triggerUrl()), 
+            e.target.checked && (flag = !0), this.value && (this.value[val] = flag, this.triggerUrl()),
             _.extend(this.searchCollection.queryParams, {
                 limit: this.limit,
                 offset: this.offset
@@ -808,8 +808,8 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
             if (!obj || obj && !obj.skipViewChange) {
                 var limit = parseInt(this.ui.showPage.val());
                 if (0 == limit) return void this.ui.showPage.data("select2").$container.addClass("has-error");
-                this.ui.showPage.data("select2").$container.removeClass("has-error"), this.limit = limit, 
-                this.offset = 0, this.value && (this.value.pageLimit = this.limit, this.value.pageOffset = this.offset, 
+                this.ui.showPage.data("select2").$container.removeClass("has-error"), this.limit = limit,
+                this.offset = 0, this.value && (this.value.pageLimit = this.limit, this.value.pageOffset = this.offset,
                 this.triggerUrl()), _.extend(this.searchCollection.queryParams, {
                     limit: this.limit,
                     offset: this.offset
@@ -826,7 +826,7 @@ define([ "require", "backbone", "table-dragger", "hbs!tmpl/search/SearchResultLa
                         sup: !0
                     }) + "</b> page"
                 });
-                this.offset = (goToPage - 1) * this.limit, this.offset <= -1 && (this.offset = 0), 
+                this.offset = (goToPage - 1) * this.limit, this.offset <= -1 && (this.offset = 0),
                 _.extend(this.searchCollection.queryParams, {
                     limit: this.limit,
                     offset: this.offset