コード例 #1
0
 /**
  * Individual record
  */
 public function recordAction()
 {
     $id = $this->request->getParam('id');
     // get the record
     $results = $this->engine->getRecord($id);
     if ($this->request->getParam('original') != null || $this->config->getConfig('INCLUDE_ORIGINAL_RECORD', false)) {
         $results->getRecord(0)->includeOriginalRecord();
     }
     // set lables and links
     $this->helper->addResultsLabels($results);
     $this->helper->addRecordLinks($results);
     // add to response
     $this->response->setVariable('results', $results);
     // view template
     $this->response->setView($this->id . '/record.xsl');
     return $this->response;
 }