pkiraly / qa-catalogue

QA catalogue – a metadata quality assessment tool for library catalogue records (MARC, PICA)
GNU General Public License v3.0
78 stars 17 forks source link

Setting input directory in ./qa-catalogue script #473

Closed pkiraly closed 4 months ago

pkiraly commented 4 months ago

There are two usage scenario for the tool: a) analysing a single catalogue, b) analysing multiple catalogues. Right now ./qa-catalogue is a bit confusing and more prepared for scenario b. thans for scenario a.

--input-dir MARC_DIR in qa-catalogue MARC_DIR in common-script
not set not set /opt/qa-catalogue/marc/qa-catalogue/
"" /opt/qa-catalogue/marc/ /opt/qa-catalogue/marc/
xyz /opt/qa-catalogue/marc/xyz /opt/qa-catalogue/marc/xyz

This is a confusing behaviour. The empty and unset input-dir should result the same: it should use the default input base directory. If input-dir is set, it should point to a subdirectory of the base input dir.