/** * Return an individual record * * @param string record identifier * @return Results */ public function getRecord($id) { $results = parent::getRecord($id); // enhance $results->getRecord(0)->addRecommendations(); $results->markFullText(); $results->markRefereed(); return $results; }
/** * Fetch the record (again), create openurl, and redirect * * @return \Symfony\Component\HttpFoundation\RedirectResponse */ public function openurlAction() { $id = $this->request->getParam('id'); // get the record $results = $this->engine->getRecord($id); $record = $results->getRecord(0); if ($record->url_open == null) { throw new \Exception("Could not create OpenURL"); } return $this->redirectTo($record->url_open); }
/** * Return an individual record * * @param string record identifier * @return Results */ public function getRecord($id) { // get the record $results = parent::getRecord($id); $record = $results->getRecord(0); $record->fetchHoldings(); // item availability $record->addReviews(); // good read reviews return $results; }
/** * Return an individual record * * @param string record identifier * @return Results */ public function getRecord($id) { // get result $results = parent::getRecord($id); // enhance $results->getRecord(0)->addRecommendations(); // bx if ($this->config->getConfig('mark_fulltext_using_export', false, false)) { $results->markFullText(); // sfx data } return $results; }
/** * Return an individual record * * @param string record identifier * @return Results */ public function getRecord($id) { $results = parent::getRecord($id); // add holdings $record = $results->getRecord(0); if ($this->group->libraries_include != '' && $record != null && $this->group->show_holdings == true) { $library_codes = $this->group->libraries_include; $holdings_xml = $this->worldcat_client->getHoldings($id, $library_codes); $record->holdings = $this->extractHoldings($holdings_xml); } return $results; }