From 6c3804d55b190e49325d882395213c202fcd86b8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sat, 13 Mar 2021 23:34:11 +0200 Subject: [PATCH] Add support for skipping fields ("-x") --- main.py | 5 +++++ templates/index.html | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 6d2ed42..0125a99 100644 --- a/main.py +++ b/main.py @@ -52,6 +52,11 @@ def process(): args = ["-i", input_file, "-o", output_file] + if "excludeCheckbox" in request.form: + if "excludeText" in request.form: + args.append("-x") + args.append(request.form["excludeText"]) + if "unsafe" in request.form: args.append("-u") diff --git a/templates/index.html b/templates/index.html index f2f6bd7..35de9d8 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,13 +14,22 @@

Basic options:

+
+
+ Skip fields(s)  + +
+ +
Optionally indicate fields to skip during analysis. Separate multiple fields with a comma, for example: dcterms.issued,dcterms.subject.
+
+
This will remove newlines and perform normalization of Unicode characters. Read more about these unsafe fixes.
-

Experimental options

+

Experimental options: