本文整理汇总了PHP中CitationPlugin::fetchCitation方法的典型用法代码示例。如果您正苦于以下问题:PHP CitationPlugin::fetchCitation方法的具体用法?PHP CitationPlugin::fetchCitation怎么用?PHP CitationPlugin::fetchCitation使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CitationPlugin
的用法示例。
在下文中一共展示了CitationPlugin::fetchCitation方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: displayCitation
/**
* Display a custom-formatted citation.
* @param $paper object
* @param $conference object
* @param $schedConf object
*/
function displayCitation(&$paper, $conference, $schedConf)
{
header('Content-Disposition: attachment; filename="' . $paper->getId() . '-proCite.ris"');
header('Content-Type: application/x-Research-Info-Systems');
echo parent::fetchCitation($paper, $conference, $schedConf);
}
示例2: displayCitation
/**
* 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() . '-proCite.ris"');
header('Content-Type: application/x-Research-Info-Systems');
echo parent::fetchCitation($article, $issue, $journal);
}
示例3: fetchCitation
/**
* Return an HTML-formatted citation. Default implementation displays
* an HTML-based citation using the citation.tpl template in the plugin
* path.
* @param $article object
* @param $issue object
*/
function fetchCitation($article, $issue, $journal)
{
$templateMgr = TemplateManager::getManager($this->getRequest());
$templateMgr->register_modifier('bibtex_escape', array($this, 'bibtexEscape'));
return parent::fetchCitation($article, $issue, $journal);
}
示例4: displayCitation
/**
* Return 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() . '-endNote.enw"');
header('Content-Type: application/x-endnote-refer');
echo parent::fetchCitation($article, $issue, $journal);
}
示例5: downloadCitation
/**
* Return an HTML-formatted citation. Default implementation displays
* an HTML-based citation using the citation.tpl template in the plugin
* path.
* @param $article Article
* @param $issue Issue
* @param $journal Journal
*/
function downloadCitation($article, $issue, $journal)
{
$output = parent::fetchCitation($article, $issue, $journal);
$this->setHeaders($article, $issue, $journal);
echo $output;
}
示例6: displayCitation
/**
* Display a custom-formatted citation.
* @param $paper object
* @param $conference object
* @param $schedConf object
*/
function displayCitation(&$paper, &$conference, &$schedConf)
{
header('Content-Disposition: attachment; filename="' . $paper->getId() . '-endNote.enw"');
header('Content-Type: application/x-endnote-refer');
echo parent::fetchCitation($paper, $conference, $schedConf);
}
示例7: fetchCitation
/**
* Display an HTML-formatted citation. We register PKPString::strtoupper modifier
* in order to convert author names to uppercase.
* @param $article Article
* @param $issue Issue
* @param $journal Journal
*/
function fetchCitation(&$article, &$issue, &$journal)
{
$templateMgr = TemplateManager::getManager($this->getRequest());
$templateMgr->register_modifier('mb_upper', array('PKPString', 'strtoupper'));
$templateMgr->register_modifier('abnt_date_format', array($this, 'abntDateFormat'));
$templateMgr->register_modifier('abnt_date_format_with_day', array($this, 'abntDateFormatWithDay'));
return parent::fetchCitation($article, $issue, $journal);
}