Exemplo n.º 1
0
 public function GetRecord()
 {
     $identifier = $this->getParam('identifier');
     $result = OpenSkos_Solr::getInstance()->search('uuid:' . $identifier, array('rows' => 1));
     if ($result['response']['numFound'] === 0) {
         throw new OaiPmh_Exception('Concept `' . $identifier . '` does not exist in this repository');
     }
     $paginator = new Zend_Paginator(new OpenSKOS_Solr_Paginator('uuid:' . $identifier, array('rows' => 1)));
     $paginator->setItemCountPerPage(self::LIMIT)->setCurrentPageNumber($this->getPage());
     $this->_view->data = $paginator;
     $this->_view->metadataPrefix = $this->getParam('metadataPrefix');
     $this->_view->namespacesByCollection = OpenSKOS_Db_Table_Namespaces::getNamespacesByCollection();
     $this->_view->conceptSchemes = $this->loadAllConceptSchemes(false);
     return $this->_view->render('index/ListRecords.phtml');
 }