<?php /* Smarty version 2.6.25-dev, created on 2021-02-03 15:54:06
         compiled from file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 12, false),array('function', 'translate', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 29, false),array('modifier', 'to_array', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 12, false),array('modifier', 'assign', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 12, false),array('modifier', 'escape', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 17, false),array('modifier', 'count', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 18, false),array('modifier', 'truncate', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 18, false),array('modifier', 'strip_unsafe_html', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 19, false),array('modifier', 'date_format', 'file:/home/lp2m/public_html/e-journal/ojp/plugins/citationFormats/refWorks//citation.tpl', 23, false),)), $this); ?>
<?php if ($this->_tpl_vars['galley']): ?>
	<?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'article','op' => 'view','path' => ((is_array($_tmp=$this->_tpl_vars['article']->getBestArticleId())) ? $this->_run_mod_handler('to_array', true, $_tmp, $this->_tpl_vars['galley']->getBestGalleyId()) : $this->_plugins['modifier']['to_array'][0][0]->smartyToArray($_tmp, $this->_tpl_vars['galley']->getBestGalleyId()))), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'articleUrl') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'articleUrl'));?>

<?php else: ?>
	<?php echo ((is_array($_tmp=$this->_plugins['function']['url'][0][0]->smartyUrl(array('page' => 'article','op' => 'view','path' => $this->_tpl_vars['article']->getBestArticleId()), $this))) ? $this->_run_mod_handler('assign', true, $_tmp, 'articleUrl') : $this->_plugins['modifier']['assign'][0][0]->smartyAssign($_tmp, 'articleUrl'));?>

<?php endif; ?>
<form class="refworks_citation_form" action="http://www.refworks.com/express/expressimport.asp?vendor=Public%20Knowledge%20Project&filter=BibTeX&encoding=65001" method="post" target="RefWorksMain">
	<textarea name="ImportData" rows=15 cols=70><?php echo '@article{{'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['journal']->getLocalizedAcronym())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '}{'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['articleId'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '},
	author = {'; ?>
<?php $this->assign('authors', $this->_tpl_vars['article']->getAuthors()); ?><?php $_from = $this->_tpl_vars['authors']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['authors'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['authors']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['i'] => $this->_tpl_vars['author']):
        $this->_foreach['authors']['iteration']++;
?><?php echo ((is_array($_tmp=$this->_tpl_vars['author']->getLastName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
, <?php $this->assign('firstName', $this->_tpl_vars['author']->getFirstName()); ?><?php $this->assign('authorCount', count($this->_tpl_vars['authors'])); ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['firstName'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('truncate', true, $_tmp, 1, "") : smarty_modifier_truncate($_tmp, 1, "")); ?>
.<?php if ($this->_tpl_vars['i'] < $this->_tpl_vars['authorCount']-1): ?>, <?php endif; ?><?php endforeach; endif; unset($_from); ?><?php echo '},
	title = {'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['article']->getLocalizedTitle())) ? $this->_run_mod_handler('strip_unsafe_html', true, $_tmp) : PKPString::stripUnsafeHtml($_tmp)); ?>
<?php echo '},
	journal = {'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['journal']->getLocalizedName())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '},
'; ?>
<?php if ($this->_tpl_vars['issue']): ?><?php if ($this->_tpl_vars['issue']->getShowVolume()): ?><?php echo '	volume = {'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getVolume())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '},'; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['issue']->getShowNumber()): ?><?php echo '	number = {'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getNumber())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '},'; ?>
<?php endif; ?><?php endif; ?><?php echo '
	year = {'; ?>
<?php if ($this->_tpl_vars['article']->getDatePublished()): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['article']->getDatePublished())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y') : smarty_modifier_date_format($_tmp, '%Y')); ?>
<?php elseif ($this->_tpl_vars['issue']->getDatePublished()): ?><?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getDatePublished())) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y') : smarty_modifier_date_format($_tmp, '%Y')); ?>
<?php else: ?><?php echo ((is_array($_tmp=$this->_tpl_vars['issue']->getYear())) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php endif; ?><?php echo '},
'; ?>
<?php $this->assign('issn', ((is_array($_tmp=$this->_tpl_vars['journal']->getSetting('issn'))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp))); ?><?php if ($this->_tpl_vars['issn']): ?><?php echo '	issn = {'; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['issn'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<?php echo '},'; ?>
<?php endif; ?>
<?php if ($this->_tpl_vars['article']->getStoredPubId('doi')): ?>	doi = {<?php echo ((is_array($_tmp=$this->_tpl_vars['article']->getStoredPubId('doi'))) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
},
<?php endif; ?>
<?php echo '	url = {'; ?>
<?php echo $this->_tpl_vars['articleUrl']; ?>
<?php echo '}
}'; ?>
</textarea>
	<input type="submit" class="button defaultButton" name="Submit" value="<?php echo $this->_plugins['function']['translate'][0][0]->smartyTranslate(array('key' => "plugins.citationFormats.refWorks.export"), $this);?>
" />
</form>