{** * plugins/generic/referral/authorReferrals.tpl * * Copyright (c) 2013-2015 Simon Fraser University Library * Copyright (c) 2003-2015 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * Referral listing for Authors * *}

{translate key="plugins.generic.referral.referrals"}

{iterate from=referrals item=referral} {assign var=articleId value=$referral->getArticleId()} {/iterate} {if $referrals->wasEmpty()} {else} {/if}
 
  {translate key="plugins.generic.referral.dateAdded"} {translate key="plugins.generic.referral.count"} {translate key="common.url"} {translate key="article.article} {translate key="common.title"} {translate key="common.status"} {translate key="common.action"}
 
{$referral->getDateAdded()|date_format:$dateFormatShort} {$referral->getLinkCount()|escape} {$referral->getUrl()|truncate:50|escape} {$articleTitles[$articleId]|strip_unsafe_html} {$referral->getReferralName()|truncate:50|escape|default:"—"} {translate key=$referral->getStatusKey()} getId()}">{translate key="common.edit"} | getId()}">{translate key="common.delete"}
 
{if $referralFilter == null} {translate key="plugins.generic.referral.all.empty"} {elseif $referralFilter == $smarty.const.REFERRAL_STATUS_NEW} {translate key="plugins.generic.referral.status.new.empty"} {elseif $referralFilter == $smarty.const.REFERRAL_STATUS_ACCEPT} {translate key="plugins.generic.referral.status.accept.empty"} {else}{* REFERRAL_STATUS_DECLINE *} {translate key="plugins.generic.referral.status.decline.empty"} {/if}
 
{page_info iterator=$referrals} {page_links anchor="referrals" name="referrals" iterator=$referrals referralFilter=$referralFilter}