MDL+Flickr Batch Transfer Status

Collection:

Range:

---starting---

Collection: $collection

"); // Check to see if the destination set exists on Flickr $flickr_meta['Date'] = date("ymd-Hi"); if (! check_flickr()) { mdl_exit_with_error(); } // Getting the OAI metadata if (! get_oai_list ($collection)) { mdl_exit_with_error(); } if ($range) { $transfer_array = range2array($range); } else { $transfer_array = $identifier_array; } foreach ($transfer_array as $key => $pointer) { if (! isset($identifier_array[$pointer])) { mdl_error("$collection does not include $collection/$pointer"); continue; } if ($skip) { if (cache_exists($collection,$pointer)) { mdl_update("

Skipping $collection/$pointer since it was already done.

"); continue; } } if ($limit) if ($count++ >= $limit) break; $record_meta['Date'] = date("ymd-Hi"); mdl_update(" started $collection/$pointer at " . $record_meta['Date'] . "

"); if ($practice) continue; mdl_update(" ...OAI"); if (! get_oai_data ($collection, $pointer)) { continue; } mdl_update(" ...image"); if (!get_target_image ($collection, $pointer)) { continue; } mdl_update(" ...flickr getting " . $record_meta['Width'] . "x" . $record_meta['Height']); if (! add_record_to_flickr()) { continue; } mdl_update(" ...caching"); if (! cache_flickr_data($collection, $pointer)) { continue; } mdl_update ("

" . "" . $record_meta[" . ""); } mdl_update("

---finished---

"); if ($liveupdate) echo "

Log saved to: " . mdl_save_log() . "

"; if ($liveupdate && $MDLerr) echo "

Errors

" . $MDLerr; $usage = getrusage(); if ($liveupdate) echo "
 Usage ".print_r($usage,true)."
"; // for debugging if($liveupdate) { ?>