tuub / kitodo-mediaserver

Kitodo Mediaserver
GNU General Public License v3.0
7 stars 6 forks source link

Importer should not try to import works with no Mets xml #244

Closed pbroman closed 5 years ago

pbroman commented 5 years ago

The mets xml file is the last file exported by kitodo.production. If the importer finds a work folder with no mets file, it should simply ignore it.

pbroman commented 5 years ago

Incomplete directories should not be copied to the import-in-progress directory. Thus, the ImporterUtils must check if the directory contains a mets file. If it doesn't, it should be ignored. In order to prevent an infinite loop, we must however keep track of checked incomplete directories. ImporterFlowControl should hold a list of incomplete directories to be filled by the ImporterUtils. Any incomplete directory is added to the list and checked only once. And the end of the import, the ImporterFlowControl should print the list to the log and the report notifier.