Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 3
0
 /**
  * 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;
 }
Exemplo n.º 4
0
 /**
  * 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;
 }
Exemplo n.º 5
0
 /**
  * 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;
 }