Beispiel #1
0
 /**
  * Add additional navigation items.
  */
 function addNavigationItem($hookName, $params)
 {
     $smarty =& $params[1];
     $output =& $params[2];
     $journal =& $smarty->get_template_vars('currentJournal');
     if ($this->getSetting($journal->getId(), 'enableBrowseBySections')) {
         $output .= '<li><a href="' . TemplateManager::smartyUrl(array('page' => 'browseSearch', 'op' => 'sections'), $smarty) . '"}">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.browse.search.sections'), $smarty) . '</a></li>';
     }
     if ($this->getSetting($journal->getId(), 'enableBrowseByIdentifyTypes')) {
         $output .= '<li><a href="' . TemplateManager::smartyUrl(array('page' => 'browseSearch', 'op' => 'identifyTypes'), $smarty) . '"}">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.browse.search.identifyTypes'), $smarty) . '</a></li>';
     }
     return false;
 }
 function displaySearchLink($hookName, $params)
 {
     if ($this->getEnabled()) {
         $smarty =& $params[1];
         $output =& $params[2];
         $currentJournal = $smarty->get_template_vars('currentJournal');
         if (!empty($currentJournal)) {
             $output .= '<a href="' . TemplateManager::smartyUrl(array('page' => 'thesis'), $smarty) . '" class="action">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.thesis.searchLink'), $smarty) . '</a><br /><br />';
         }
     }
     return false;
 }
 /**
  * Display management link for JM.
  * @param $hookName string
  * @param $params array
  */
 function displayManagerLink($hookName, $params)
 {
     if ($this->getEnabled()) {
         $smarty =& $params[1];
         $output =& $params[2];
         $output .= '<li>&#187; <a href="' . $this->smartyPluginUrl(array('op' => 'plugin', 'path' => 'feeds'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.externalFeed.manager.feeds'), $smarty) . '</a></li>';
     }
     return false;
 }
 /**
  * Display books for review links in author home.
  */
 function displayAuthorHomeLink($hookName, $params)
 {
     if ($this->getEnabled()) {
         $smarty =& $params[1];
         $output =& $params[2];
         $output .= '<br /><div class="separator"></div><h3>' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.booksForReview'), $smarty) . '</h3><ul class="plain"><li>&#187; <a href="' . TemplateManager::smartyUrl(array('page' => 'author', 'op' => 'booksForReview'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.myBooksForReview'), $smarty) . '</a></li><li>&#187; <a href="' . TemplateManager::smartyUrl(array('page' => 'booksForReview'), $smarty) . '">' . TemplateManager::smartyTranslate(array('key' => 'plugins.generic.booksForReview.author.availableBooksForReview'), $smarty) . '</a></li></ul><br />';
     }
     return false;
 }
Beispiel #5
0
 function getDescription()
 {
     $this->addLocaleData();
     return TemplateManager::smartyTranslate(array('key' => 'plugins.generic.pid.description'), $smarty);
 }