{** * templates/user/subscriptions.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. * * User subscriptions management page. * *} {strip} {assign var="pageTitle" value="user.subscriptions.mySubscriptions"} {include file="common/header.tpl"} {/strip}

{translate key="about.subscriptionsContact"}

{if !empty($subscriptionName)} {$subscriptionName|escape}
{/if} {if !empty($subscriptionMailingAddress)} {$subscriptionMailingAddress|nl2br}
{/if} {if !empty($subscriptionPhone)} {translate key="user.phone"}: {$subscriptionPhone|escape}
{/if} {if !empty($subscriptionFax)} {translate key="user.fax"}: {$subscriptionFax|escape}
{/if} {if !empty($subscriptionEmail)} {translate key="user.email"}: {mailto address=$subscriptionEmail|escape encode="hex"}
{/if} {if !empty($subscriptionAdditionalInformation)}
{$subscriptionAdditionalInformation|nl2br}
{/if}

{if $journalPaymentsEnabled && $acceptSubscriptionPayments}

{translate key="user.subscriptions.subscriptionStatus"}

{translate key="user.subscriptions.statusInformation"}

 
{translate key="user.subscriptions.status"} {translate key="user.subscriptions.statusDescription"}
 
{translate key="subscriptions.status.needsInformation"} {translate key="user.subscriptions.status.needsInformationDescription"}
{translate key="subscriptions.status.needsApproval"} {translate key="user.subscriptions.status.needsApprovalDescription"}
{translate key="subscriptions.status.awaitingManualPayment"} {translate key="user.subscriptions.status.awaitingManualPaymentDescription"}
{translate key="subscriptions.status.awaitingOnlinePayment"} {translate key="user.subscriptions.status.awaitingOnlinePaymentDescription"}
 
{/if} {if $individualSubscriptionTypesExist}

{translate key="user.subscriptions.individualSubscriptions"}

{translate key="subscriptions.individualDescription"}

{if $userIndividualSubscription} {elseif $journalPaymentsEnabled && $acceptSubscriptionPayments} {else} {/if}
{$userIndividualSubscription->getSubscriptionTypeName()|escape}   {assign var="subscriptionStatus" value=$userIndividualSubscription->getStatus()} {assign var="isNonExpiring" value=$userIndividualSubscription->isNonExpiring()} {if $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} {translate key="subscriptions.status.awaitingOnlinePayment"} {elseif $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT} {translate key="subscriptions.status.awaitingManualPayment"} {elseif $subscriptionStatus != $smarty.const.SUBSCRIPTION_STATUS_ACTIVE} {translate key="subscriptions.inactive"} {else} {if $isNonExpiring} {translate key="subscriptionTypes.nonExpiring"} {else} {assign var="isExpired" value=$userIndividualSubscription->isExpired()} {if $isExpired}{translate key="user.subscriptions.expired"}: {$userIndividualSubscription->getDateEnd()|date_format:$dateFormatShort}{else}{translate key="user.subscriptions.expires"}: {$userIndividualSubscription->getDateEnd()|date_format:$dateFormatShort}{/if} {/if} {/if} {if $journalPaymentsEnabled && $acceptSubscriptionPayments} {if $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} getId()}">{translate key="user.subscriptions.purchase"} {elseif $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_ACTIVE} {if !$isNonExpiring} getId()}">{translate key="user.subscriptions.renew"} | {/if} getId()}">{translate key="user.subscriptions.purchase"} {/if} {else}   {/if}
{translate key="user.subscriptions.purchaseNewSubscription"}
{translate key="user.subscriptions.viewSubscriptionTypes"}
{/if} {if $institutionalSubscriptionTypesExist}

{translate key="user.subscriptions.institutionalSubscriptions"}

{translate key="subscriptions.institutionalDescription"}{if $journalPaymentsEnabled && $acceptSubscriptionPayments} {translate key="subscriptions.institutionalOnlinePaymentDescription"}{/if}

{if $userInstitutionalSubscriptions} {iterate from=userInstitutionalSubscriptions item=userInstitutionalSubscription} {/iterate} {/if} {if $journalPaymentsEnabled && $acceptSubscriptionPayments} {else} {/if}
{$userInstitutionalSubscription->getSubscriptionTypeName()|escape} {$userInstitutionalSubscription->getInstitutionName()|escape} {assign var="subscriptionStatus" value=$userInstitutionalSubscription->getStatus()} {assign var="isNonExpiring" value=$userInstitutionalSubscription->isNonExpiring()} {if $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} {translate key="subscriptions.status.awaitingOnlinePayment"} {elseif $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_MANUAL_PAYMENT} {translate key="subscriptions.status.awaitingManualPayment"} {elseif $journalPaymentsEnabled && $acceptSubscriptionPayments && $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_NEEDS_APPROVAL} {translate key="subscriptions.status.needsApproval"} {elseif $subscriptionStatus != $smarty.const.SUBSCRIPTION_STATUS_ACTIVE} {translate key="subscriptions.inactive"} {else} {if $isNonExpiring} {translate key="subscriptionTypes.nonExpiring"} {else} {assign var="isExpired" value=$userInstitutionalSubscription->isExpired()} {if $isExpired}{translate key="user.subscriptions.expired"}: {$userInstitutionalSubscription->getDateEnd()|date_format:$dateFormatShort}{else}{translate key="user.subscriptions.expires"}: {$userInstitutionalSubscription->getDateEnd()|date_format:$dateFormatShort}{/if} {/if} {/if} {if $journalPaymentsEnabled && $acceptSubscriptionPayments} {if $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_AWAITING_ONLINE_PAYMENT} getId()}">{translate key="user.subscriptions.purchase"} {elseif $subscriptionStatus == $smarty.const.SUBSCRIPTION_STATUS_ACTIVE} {if !$isNonExpiring} getId()}">{translate key="user.subscriptions.renew"} | {/if} getId()}">{translate key="user.subscriptions.purchase"} {/if} {else}   {/if}
 
{translate key="user.subscriptions.purchaseNewSubscription"}
{translate key="user.subscriptions.viewSubscriptionTypes"}
{/if} {include file="common/footer.tpl"}