{** * templates/frontend/pages/userRegister.tpl * * Copyright (c) 2014-2021 Simon Fraser University * Copyright (c) 2003-2021 John Willinsky * Distributed under the GNU GPL v3. For full terms see the file docs/COPYING. * * User registration form. * * @uses $primaryLocale string The primary locale for this journal/press *} {include file="frontend/components/header.tpl" pageTitle="user.register"}
{include file="frontend/components/breadcrumbs.tpl" currentTitleKey="user.register"}

{translate key="user.register"}

{translate key="common.requiredField"}

{csrf} {if $source} {/if} {include file="common/formErrors.tpl"} {include file="frontend/components/registrationForm.tpl"} {* When a user is registering with a specific journal *} {if $currentContext} {* Allow the user to sign up as a reviewer *} {assign var=contextId value=$currentContext->getId()} {assign var=userCanRegisterReviewer value=0} {foreach from=$reviewerUserGroups[$contextId] item=userGroup} {if $userGroup->getPermitSelfRegistration()} {assign var=userCanRegisterReviewer value=$userCanRegisterReviewer+1} {/if} {/foreach} {if $userCanRegisterReviewer}
{if $userCanRegisterReviewer > 1} {translate key="user.reviewerPrompt"} {capture assign="checkboxLocaleKey"}user.reviewerPrompt.userGroup{/capture} {else} {capture assign="checkboxLocaleKey"}user.reviewerPrompt.optin{/capture} {/if}
{foreach from=$reviewerUserGroups[$contextId] item=userGroup} {if $userGroup->getPermitSelfRegistration()} {/if} {/foreach}
{/if} {/if} {include file="frontend/components/registrationFormContexts.tpl"} {* When a user is registering for no specific journal, allow them to enter their reviewer interests *} {if !$currentContext}
{* Require the user to agree to the terms of the privacy policy *} {if $siteWidePrivacyStatement}
{/if} {* Ask the user to opt into public email notifications *}
{/if} {* recaptcha spam blocker *} {if $recaptchaPublicKey}
{/if}
{capture assign="rolesProfileUrl"}{url page="user" op="profile" path="roles"}{/capture}
{include file="frontend/components/footer.tpl"}