addLocaleData(); return $success; } /** * Get the name of this plugin. The name must be unique within * its category. * @return String name of plugin */ function getName() { return 'EndNoteCitationPlugin'; } function getDisplayName() { return Locale::translate('plugins.citationFormats.endNote.displayName'); } function getCitationFormatName() { return Locale::translate('plugins.citationFormats.endNote.citationFormatName'); } function getDescription() { return Locale::translate('plugins.citationFormats.endNote.description'); } /** * Return a custom-formatted citation. * @param $paper object */ function cite(&$paper) { header('Content-Disposition: attachment; filename="' . $paper->getPaperId() . '-endNote.enw"'); $templateMgr =& TemplateManager::getManager(); $templateMgr->display($this->getTemplatePath() . '/citation.tpl', 'application/x-endnote-refer'); } } ?>