当前位置: 首页>>代码示例>>PHP>>正文


PHP CitationPlugin::fetchCitation方法代码示例

本文整理汇总了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);
 }
开发者ID:jmacgreg,项目名称:ocs,代码行数:12,代码来源:ProCiteCitationPlugin.inc.php

示例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);
 }
开发者ID:reconciler,项目名称:ojs,代码行数:12,代码来源:ProCiteCitationPlugin.inc.php

示例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);
 }
开发者ID:mariojp,项目名称:ojs,代码行数:13,代码来源:BibtexCitationPlugin.inc.php

示例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);
 }
开发者ID:master3395,项目名称:CBPPlatform,代码行数:12,代码来源:EndNoteCitationPlugin.inc.php

示例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;
 }
开发者ID:bkroll,项目名称:ojs,代码行数:14,代码来源:DownloadableCitationPlugin.inc.php

示例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);
 }
开发者ID:artkuo,项目名称:ocs,代码行数:12,代码来源:EndNoteCitationPlugin.inc.php

示例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);
 }
开发者ID:pkp,项目名称:ojs,代码行数:15,代码来源:AbntCitationPlugin.inc.php


注:本文中的CitationPlugin::fetchCitation方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。