From 69db33de5a2e0f2a0eb63cb4595b7908a23924b0 Mon Sep 17 00:00:00 2001 From: Thad Guidry Date: Sun, 12 Apr 2020 14:26:31 -0500 Subject: [PATCH] Fix TSV mediatype & add support for atom+xml and .ntriples (#2535) * Fix TSV mediatype & add support for atom+xml and .ntriples * keep old TSV mediatype value --- main/webapp/modules/core/MOD-INF/controller.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main/webapp/modules/core/MOD-INF/controller.js b/main/webapp/modules/core/MOD-INF/controller.js index b6f036ffb..828cac301 100644 --- a/main/webapp/modules/core/MOD-INF/controller.js +++ b/main/webapp/modules/core/MOD-INF/controller.js @@ -240,7 +240,8 @@ function registerImporting() { IM.registerExtension(".tsv", "text/line-based/*sv"); IM.registerExtension(".xml", "text/xml"); - + IM.registerExtension(".atom", "text/xml"); + IM.registerExtension(".json", "text/json"); IM.registerExtension(".js", "text/json"); @@ -250,6 +251,8 @@ function registerImporting() { IM.registerExtension(".ods", "text/xml/ods"); IM.registerExtension(".nt", "text/rdf/nt"); + IM.registerExtension(".ntriples", "text/rdf/nt"); + IM.registerExtension(".n3", "text/rdf/n3"); IM.registerExtension(".ttl", "text/rdf/ttl"); IM.registerExtension(".jsonld", "text/rdf/ld+json"); @@ -267,6 +270,7 @@ function registerImporting() { IM.registerMimeType("text/csv", "text/line-based/*sv"); IM.registerMimeType("text/x-csv", "text/line-based/*sv"); IM.registerMimeType("text/tab-separated-value", "text/line-based/*sv"); + IM.registerMimeType("text/tab-separated-values", "text/line-based/*sv"); IM.registerMimeType("text/fixed-width", "text/line-based/fixed-width"); @@ -278,6 +282,7 @@ function registerImporting() { IM.registerMimeType("text/xml", "text/xml"); IM.registerMimeType("application/rdf+xml", "text/rdf/xml"); IM.registerMimeType("application/ld+json", "text/rdf/ld+json"); + IM.registerMimeType("application/atom+xml", "text/xml"); IM.registerMimeType("application/msexcel", "binary/text/xml/xls/xlsx"); IM.registerMimeType("application/x-msexcel", "binary/text/xml/xls/xlsx");