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; }
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; }