Ejemplo n.º 1
0
 public function matchDocumentSchemaTask()
 {
     // @TODO Verify the HubType is not new, use serialized params input to load last settings.
     $type = Request::getVar('type', '');
     if ($type != '') {
         //$hubSearch = new SearchEngine();
         $helper = new Helper();
         $this->view->typeStructure = $helper->fetchDataTypes(null, $type);
         $searchDocument = array('title' => '', 'doi' => '', 'isbn' => '', 'author' => '', 'created' => '', 'modified' => '', 'scope' => '', 'scope_id' => '', 'fulltext' => '', 'description' => '', 'abstract' => '', 'location' => '', 'uid' => '', 'gid' => '', 'created_by' => '', 'child_id' => '', 'parent_id' => '', 'state' => '', 'hits' => '', 'publish_up' => '', 'publish_down' => '', 'type' => '', 'note' => '', 'keywords' => '', 'language' => '', 'tags' => '', 'badge' => '', 'date' => '', 'year' => '', 'month' => '', 'day' => '', 'address' => '', 'organization' => '', 'name' => '', 'access-level' => '', 'access-group' => '', 'permission-level' => '', 'hub-assoc' => '', 'organization' => '', 'url' => '', 'cms-ranking' => '', 'cms-rating' => '', 'params' => '', 'meta' => '', 'hubID' => '', 'hubURL' => '', 'cms-state' => '');
         $this->view->type = $type;
         $this->view->hubDocument = $searchDocument;
         $this->view->previousSettings = isset($type->documentMatching) && $type->documentMatching != '' ? unserialize($type->documentMatching) : NULL;
         $this->view->setLayout('addDocuments');
         $this->view->display();
     }
 }