Closed netsensei closed 7 years ago
PIDS.pm
can be used to create an SQLite table from any CSV that is stored on a CloudFiles instance. The museum-specific importers are obviously specific for that use case. We could try to abstract out CloudFiles and accept any generic locally/remotely stored CSV file.Fixed in Datahub-Factory-Arthub.
The code contains logic to create SQLite databases from CSV files. These db's are used by catmandu's
lookup_in_store()
fix to add extra data to records.The logic currently in the tool is hardwired towards a specific museum use case. It contains specific file names, etc.
There are several things we need to consider here:
lookup_in_store
is implemented in the fixes. If this part of the logic is changed, the fixes break, and vice versa. Maybe those should be extracted to a configuration file?