Closed Tian-Tan closed 4 months ago
Here are the related files:
/collections/admin/specupload.php:
/collections/admin/specuploadmap.php:
/collections/admin/specuploadprocessor.php:
/classes/SpecUploadFile.php:
public function uploadData($finalTransfer)
. This might be where you can make changes/collections/admin/specuploadprocessor.php:
/classes/SpecUploadDwca.php:
public function uploadData($finalTransfer){
may have functions you want to implement. And in this function, I saw some image data update code, which you can look into./classes/SpecUploadBase.php:
If you have time, it ill be helpful dig into all php files included in the beginning of all above files.
Another important note here is that the ingestion first adds the records to a temporary table, and only moves them to the real tables after confirmation.
The temporary tables for the occurrence records and images are uploadspectemp and uploadimagetemp
The commit 18d847885aae248e3184083cb8b58940f3dd08d9 successfully creates a new batch upon ingestion. Further steps are:
To address the problems above:
We need to investigate how to:
The above should probably be done in the ingestion PHP code