Esempio n. 1
0
 /**
  * Process incoming parameters and display the page.
  *
  * @return void
  * @access public
  */
 public function launch()
 {
     global $interface;
     if (!$interface->is_cached($this->cacheId)) {
         $ed = new ExternalExcerpts($this->isbn);
         $excerpts = $ed->fetch();
         if (!empty($excerpts)) {
             $interface->assign('excerpts', $excerpts);
         }
         $interface->assign('subTemplate', '../Record/view-excerpt.tpl');
         $interface->setTemplate('view.tpl');
     }
     // Display Page
     $interface->display('layout.tpl', $this->cacheId);
 }
Esempio n. 2
0
 /**
  * Get any excerpts associated with this record.  For details of
  * the return format, see sys/Excerpts.php.
  *
  * @return array Excerpt information.
  * @access public
  */
 public function getExcerpts()
 {
     include_once 'sys/Excerpts.php';
     $ed = new ExternalExcerpts($this->getCleanISBN());
     return $ed->fetch();
 }
Esempio n. 3
0
 /**
  * Get any excerpts associated with this record.  For details of
  * the return format, see sys/Excerpts.php.
  *
  * @access  public
  * @return  array               Excerpt information.
  */
 public function getExcerpts()
 {
     require_once ROOT_DIR . '/sys/Excerpts.php';
     $ed = new ExternalExcerpts($this->getCleanISBN());
     return $ed->fetch();
 }