| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Old Sites/Civilgeo/ojs/plugins/citationFormats/refMan/ |
Upload File : |
<?php
/**
* @file RefManCitationPlugin.inc.php
*
* Copyright (c) 2003-2012 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @class RefManCitationPlugin
* @ingroup plugins_citationFormats_refMan
*
* @brief Reference Manager citation format plugin
*/
// $Id$
import('classes.plugins.CitationPlugin');
class RefManCitationPlugin extends CitationPlugin {
function register($category, $path) {
$success = parent::register($category, $path);
$this->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 'RefManCitationPlugin';
}
function getDisplayName() {
return __('plugins.citationFormats.refMan.displayName');
}
function getCitationFormatName() {
return __('plugins.citationFormats.refMan.citationFormatName');
}
function getDescription() {
return __('plugins.citationFormats.refMan.description');
}
/**
* Display a custom-formatted citation.
* @param $article object
* @param $issue object
* @param $journal object
*/
function displayCitation(&$article, &$issue, &$journal) {
header('Content-Disposition: attachment; filename="' . $article->getId() . '-refMan.ris"');
header('Content-Type: application/x-Research-Info-Systems');
echo parent::fetchCitation($article, $issue, $journal);
}
}
?>