コード例 #1
0
 public function lookupAction()
 {
     $id = $this->request->getParam("id");
     // we essentially create a mock object and add holdings
     $xerxes_record = new Record();
     $xerxes_record->setRecordID($id);
     $xerxes_record->setSource($this->id);
     $result = new Result($xerxes_record, $this->config);
     $result->fetchHoldings();
     // add to response
     $this->data->setVariable('results', $result);
     // view template
     $this->data->setTemplate('search/lookup.xsl');
     return $this->data;
 }
コード例 #2
0
ファイル: SearchController.php プロジェクト: navtis/xerxes
 public function lookupAction()
 {
     $id = $this->request->getParam("id");
     // we essentially create a mock object and add holdings
     $xerxes_record = new Record();
     $xerxes_record->setRecordID($id);
     $xerxes_record->setSource($this->id);
     $result = new Result($xerxes_record, $this->config);
     $result->fetchHoldings();
     // add to response
     $this->data["results"] = $result;
     return $this->data;
 }