public function postOnlinedata() { if (Input::get("source_name") == "source_rijksmuseum") { return Redirect::to('onlinesource/imagegetter'); } $onlineDataHelper = new OnlineDataHelper(Input::all()); try { $format = $onlineDataHelper->getType(); $domain = $onlineDataHelper->getDomain(); $documentType = $onlineDataHelper->getDocumentType(); $noOfVideos = $onlineDataHelper->getNoOfVideos(); $sourceName = $onlineDataHelper->getOnlineSource(); $mongoDBOnlineData = new \OnlineData(); $source = explode("_", $sourceName); $parameters = array(); // $parameters["set"] = $source[1]; $parameters["metadataPrefix"] = "oai_oi"; // $parameters["set"] = "beeldengeluid"; $status_onlinedata = $mongoDBOnlineData->store($format, $domain, $documentType, $parameters, $noOfVideos); // \Session::flash('flashSuccess', 'Your video description is being pre-processed'); } catch (Exception $e) { return Redirect::back()->with('flashError', $e->getMessage()); } return View::make('media.pages.upload', compact('status_onlinedata')); }
public function postOnlinedata() { if (Input::get("source_name") == "source_rijksmuseum") { return Redirect::to('onlinesource/imagegetter'); } $onlineDataHelper = new OnlineDataHelper(Input::all()); try { $documentType = $onlineDataHelper->getDocumentType(); $noOfVideos = $onlineDataHelper->getNoOfVideos(); $sourceName = $onlineDataHelper->getOnlineSource(); $mongoDBOnlineData = new \OnlineData(); $source = explode("_", $sourceName); $parameters = array(); $parameters["metadataPrefix"] = "oai_oi"; $status_onlinedata = $mongoDBOnlineData->store($documentType, $parameters, $noOfVideos); } catch (Exception $e) { return Redirect::back()->with('flashError', $e->getMessage()); } return View::make('media.pages.upload', compact('status_onlinedata')); }