From fc108cad725ca63ee25cb0eaa34bf68b2840bd83 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <andreas.romeyke@slub-dresden.de> Date: Tue, 28 May 2024 17:48:44 +0200 Subject: [PATCH] - fixed help - added --fuzzy for phrase prefix search --- lib/SLUB/LZA/TA/Command/search.pm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/lib/SLUB/LZA/TA/Command/search.pm b/lib/SLUB/LZA/TA/Command/search.pm index d95d0d6..a3384c1 100644 --- a/lib/SLUB/LZA/TA/Command/search.pm +++ b/lib/SLUB/LZA/TA/Command/search.pm @@ -22,14 +22,10 @@ Examples: * Which AIP has this dc identifier? '$0 search -d SLUB:LZA:Kitodo:kitodo:422766' - * Which AIPs are public domain? - '$0 search -s publicdomain' - * Which AIPs are copyrighted? - '$0 search -s copyrighted' * Which AIPs were created in 2021-05-31? '$0 search -c 2021-05-31' * Which AIPs with mkv-files are in archive? - '$0 search --pronom-format fmt/569' + '$0 search --pronom-id fmt/569' * Which AIP has this dc identifier? Print the AIP id, lzaid of matching AIP as Rows of String Values (RSV) '$0 search -d SLUB:LZA:Kitodo:kitodo:422766 --with-lzaid --output-as-rsv' @@ -64,10 +60,10 @@ sub opt_spec { ] } ], - [ 'descriptive|d=s', 'search descriptive metadata (dc identifier)' ], + [ 'descriptive|d=s', 'search descriptive metadata (dc identifier), using exact match' ], + [ 'fuzzy|f=s', 'search descriptive metadata (dc identifier), using phrase prefix match' ], [ 'lzaid|l=s', 'search a specific AIP by given LZA id' ], [ 'maxrecords=i', 'set maxrecords, default is 10', { default => 10 } ], - #[ 'source|s=s', 'search source metadata' ], [ 'startrecord=i', 'set startrecord, default is 1' ], [ 'format' => hidden => { one_of => [ [ 'pronom-id|p=s' => 'with pronom format id' ], -- GitLab