コード例 #1
0
ファイル: MarcPlugin.inc.php プロジェクト: Rygbee/harvester
 /**
  * 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;
 }
コード例 #2
0
 /**
  * Register the plugin.
  */
 function register($category, $path)
 {
     $success = parent::register($category, $path);
     $this->addLocaleData();
     return $success;
 }