digital-preservation/droid

Fewer elements in data row when exporting profiles per file when some of them have more than one identification

sparkhi opened this issue · 0 comments

If some files in the profile have more than one format identification, when exporting, the columns related to format identification (e.g. PUID, FORMAT_NAME etc.) are repeated with a running count suffix. However for files which do not have more than one format identification, the data columns are not added to the csv at all

e.g. the current export has 6 headers in the header row but only 5 data elements in the data row:

"ID","FILE_PATH","SIZE","SHA512_HASH","PUID","PUID1"
"3","/home/sparkhi/test-data/droid/archives/one","","",""

It should be

"ID","FILE_PATH","SIZE","SHA512_HASH","PUID","PUID1"
"3","/home/sparkhi/test-data/droid/archives/one","","","",""