From d0c7732fc36aea15ad0c91f5ade9f4668f0add21 Mon Sep 17 00:00:00 2001
From: Andreas Romeyke <andreas.romeyke@slub-dresden.de>
Date: Tue, 28 May 2024 18:00:06 +0200
Subject: [PATCH] - added --fuzzy for phrase prefix search

---
 lib/SLUB/LZA/TA/Command/count.pm | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/lib/SLUB/LZA/TA/Command/count.pm b/lib/SLUB/LZA/TA/Command/count.pm
index c54cdac..a92d24b 100644
--- a/lib/SLUB/LZA/TA/Command/count.pm
+++ b/lib/SLUB/LZA/TA/Command/count.pm
@@ -24,7 +24,7 @@ Examples:
   * How many AIPs were created in 2021-05-31?
     '$0 count -c 2021-05-31'
   * How many AIPs with mkv-files are in archive?
-    '$0 count --with-format fmt/569'
+    '$0 count --pronom-id fmt/569'
 DESCR
 
 sub description {
@@ -42,11 +42,12 @@ sub opt_spec {
             ]
           }
         ],
-        ["descriptive|d=s" => "count based on string search in descriptive metadata"],
-        ["lzaid|l=s", "count AIPs by given LZA id"],
-        ["format" => hidden => {one_of => [
-            ["pronom-id|p=s" => "with pronom format id"],
-            #["without-format=s" => "without pronom format id"],
+        ['descriptive|d=s' => 'count based on string search in descriptive metadata, using exact match'],
+        ['fuzzy|f=s' => 'count based on string search in descriptive metadata, using phrase prefix match' ],
+        ['lzaid|l=s' => 'count AIPs by given LZA id'],
+        ['format' => hidden => {one_of => [
+            ['pronom-id|p=s' => 'with pronom format id'],
+            #['without-format=s' => "without pronom format id"],
         ] } ],
         [ 'onlymode' => hidden => {
             one_of => [
-- 
GitLab