Start wiring up MARC importer - issue #794
This commit is contained in:
parent
3f5b117d07
commit
6bd6a5934b
@ -0,0 +1,16 @@
|
||||
package com.google.refine.importers;
|
||||
|
||||
import java.io.File;
|
||||
|
||||
import com.google.refine.importing.FormatGuesser;
|
||||
|
||||
public class BinaryFormatGuesser implements FormatGuesser {
|
||||
|
||||
@Override
|
||||
public String guess(File file, String encoding, String seedFormat) {
|
||||
|
||||
// TODO: Guess based on sniffing magic numbers
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
@ -204,11 +204,10 @@ function registerImporting() {
|
||||
|
||||
IM.registerFormat("text/xml", "XML files", "XmlParserUI", new Packages.com.google.refine.importers.XmlImporter());
|
||||
IM.registerFormat("text/xml/xlsx", "Excel (.xlsx) files", "ExcelParserUI", new Packages.com.google.refine.importers.ExcelImporter());
|
||||
// TODO: Can we get away with just reusing Excel importer UI?
|
||||
IM.registerFormat("text/xml/ods", "Open Document Format spreadsheets (.ods)", "ExcelParserUI", new Packages.com.google.refine.importers.OdsImporter());
|
||||
IM.registerFormat("text/xml/rdf", "RDF/XML files", "RdfTriplesParserUI", new Packages.com.google.refine.importers.RdfXmlTripleImporter());
|
||||
IM.registerFormat("text/json", "JSON files", "JsonParserUI", new Packages.com.google.refine.importers.JsonImporter());
|
||||
IM.registerFormat("text/marc", "MARC files");
|
||||
IM.registerFormat("text/marc", "MARC files", "XmlParserUI", new Packages.com.google.refine.importers.MarcImporter());
|
||||
|
||||
IM.registerFormat("binary", "Binary files"); // generic format, no parser to handle it
|
||||
IM.registerFormat("binary/xls", "Excel files", "ExcelParserUI", new Packages.com.google.refine.importers.ExcelImporter());
|
||||
|
Loading…
Reference in New Issue
Block a user