Ejemplo n.º 1
0
 /**
  * Register the plugin.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     if ($success) {
         // Smarty has trouble with string indexes to arrays
         // that look like numbers. Work around by adding a new
         // Smarty function to help look up MARC record elements
         // for display.
         $templateMgr =& TemplateManager::getManager();
         $templateMgr->register_function('get_marc_element', array(&$this, 'smartyGetMarcElement'));
     }
     $this->addLocaleData();
     return $success;
 }
Ejemplo n.º 2
0
 /**
  * Register the plugin.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     $this->addLocaleData();
     return $success;
 }