plugins/citationFormats/endNote/EndNoteCitationPlugin.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 import('classes.plugins.CitationPlugin');
00018 
00019 class EndNoteCitationPlugin extends CitationPlugin {
00020    function register($category, $path) {
00021       $success = parent::register($category, $path);
00022       $this->addLocaleData();
00023       return $success;
00024    }
00025 
00031    function getName() {
00032       return 'EndNoteCitationPlugin';
00033    }
00034 
00035    function getDisplayName() {
00036       return __('plugins.citationFormats.endNote.displayName');
00037    }
00038 
00039    function getCitationFormatName() {
00040       return __('plugins.citationFormats.endNote.citationFormatName');
00041    }
00042 
00043    function getDescription() {
00044       return __('plugins.citationFormats.endNote.description');
00045    }
00046 
00053    function displayCitation(&$paper, &$conference, &$schedConf) {
00054       header('Content-Disposition: attachment; filename="' . $paper->getId() . '-endNote.enw"');
00055       header('Content-Type: application/x-endnote-refer');
00056       echo parent::fetchCitation($paper, $conference, $schedConf);
00057    }
00058 }
00059 
00060 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7