From a53467f2cb7174cef367e17e0e03db47a6ae00bd Mon Sep 17 00:00:00 2001 From: Jacky Date: Thu, 9 Nov 2017 22:29:08 -0500 Subject: [PATCH] remove the date field in metadata --- .../commands/workspace/GetAllProjectMetadataCommand.java | 2 +- main/webapp/modules/core/MOD-INF/controller.js | 2 +- main/webapp/modules/core/langs/translation-en.json | 3 +-- .../webapp/modules/core/scripts/index/edit-metadata-dialog.js | 4 ++++ 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/main/src/com/google/refine/commands/workspace/GetAllProjectMetadataCommand.java b/main/src/com/google/refine/commands/workspace/GetAllProjectMetadataCommand.java index 5e768f656..b262c2cb7 100644 --- a/main/src/com/google/refine/commands/workspace/GetAllProjectMetadataCommand.java +++ b/main/src/com/google/refine/commands/workspace/GetAllProjectMetadataCommand.java @@ -71,7 +71,7 @@ public class GetAllProjectMetadataCommand extends Command { ProjectMetadata pm = e.getValue(); if (pm != null) { writer.key(e.getKey().toString()); - e.getValue().write(writer, options); + pm.write(writer, options); } } writer.endObject(); diff --git a/main/webapp/modules/core/MOD-INF/controller.js b/main/webapp/modules/core/MOD-INF/controller.js index 130bc507c..f7b48f2e6 100644 --- a/main/webapp/modules/core/MOD-INF/controller.js +++ b/main/webapp/modules/core/MOD-INF/controller.js @@ -34,7 +34,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. var html = "text/html"; var encoding = "UTF-8"; var ClientSideResourceManager = Packages.com.google.refine.ClientSideResourceManager; -var bundle = false; +var bundle = true; var templatedFiles = { // Requests with last path segments mentioned here diff --git a/main/webapp/modules/core/langs/translation-en.json b/main/webapp/modules/core/langs/translation-en.json index 7c9d05299..df1578f07 100644 --- a/main/webapp/modules/core/langs/translation-en.json +++ b/main/webapp/modules/core/langs/translation-en.json @@ -32,8 +32,7 @@ "description": "Description:", "rowCount": "Row Count:", "customMetadata": "Custom Metadata(JSON):", - "id": "Project Id:", - "date": "Date:", + "id": "Project ID:", "importOptionMetadata": "Import Option Metadata(JSON):" }, "core-index-create": { diff --git a/main/webapp/modules/core/scripts/index/edit-metadata-dialog.js b/main/webapp/modules/core/scripts/index/edit-metadata-dialog.js index 0943e25d4..7f21ca179 100644 --- a/main/webapp/modules/core/scripts/index/edit-metadata-dialog.js +++ b/main/webapp/modules/core/scripts/index/edit-metadata-dialog.js @@ -6,6 +6,10 @@ function EditMetadataDialog(metaData, targetRowElem) { this._MetadataUI = function(tr, key, value, project) { var self = this; + + if (key === "date") + return; + var td0 = tr.insertCell(0); var keyLable = $.i18n._('core-index')[key] || key;