/**
  * Constructor.
  */
 function JournalSetupStep3Form()
 {
     parent::JournalSetupForm(3, array('authorGuidelines' => 'string', 'submissionChecklist' => 'object', 'copyrightNotice' => 'string', 'includeCopyrightStatement' => 'bool', 'licenseURL' => 'string', 'includeLicense' => 'bool', 'copyrightNoticeAgree' => 'bool', 'copyrightHolderType' => 'string', 'copyrightHolderOther' => 'string', 'copyrightYearBasis' => 'string', 'requireAuthorCompetingInterests' => 'bool', 'requireReviewerCompetingInterests' => 'bool', 'competingInterestGuidelines' => 'string', 'metaDiscipline' => 'bool', 'metaDisciplineExamples' => 'string', 'metaSubjectClass' => 'bool', 'metaSubjectClassTitle' => 'string', 'metaSubjectClassUrl' => 'string', 'metaSubject' => 'bool', 'metaSubjectExamples' => 'string', 'metaCoverage' => 'bool', 'metaCoverageGeoExamples' => 'string', 'metaCoverageChronExamples' => 'string', 'metaCoverageResearchSampleExamples' => 'string', 'metaType' => 'bool', 'metaTypeExamples' => 'string', 'metaCitations' => 'bool', 'metaCitationOutputFilterId' => 'int', 'copySubmissionAckPrimaryContact' => 'bool', 'copySubmissionAckSpecified' => 'bool', 'copySubmissionAckAddress' => 'string'));
     $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress', 'optional', 'user.profile.form.emailRequired'));
     // Only check the subject classification URL if the subject classification is enabled
     $this->addCheck(new FormValidatorCustom($this, 'metaSubjectClassUrl', 'optional', 'manager.setup.subjectClassificationURLValid', create_function('$localeUrl, $form, $field, $type, $message', 'if (!$form->getData("metaSubjectClass")) return true; $f = new FormValidatorLocaleUrl($form, $field, $type, $message); return $f->isValid();'), array($this, 'metaSubjectClassUrl', 'optional', 'manager.setup.subjectClassificationURLValid')));
     $this->addCheck(new FormValidatorURL($this, 'licenseURL', 'optional', 'submission.licenseURLValid'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep1Form()
 {
     parent::JournalSetupForm(1, array('title' => 'string', 'initials' => 'string', 'abbreviation' => 'string', 'printIssn' => 'string', 'onlineIssn' => 'string', 'doiPrefix' => 'string', 'mailingAddress' => 'string', 'useEditorialBoard' => 'bool', 'contactName' => 'string', 'contactTitle' => 'string', 'contactAffiliation' => 'string', 'contactEmail' => 'string', 'contactPhone' => 'string', 'contactFax' => 'string', 'contactMailingAddress' => 'string', 'supportName' => 'string', 'supportEmail' => 'string', 'supportPhone' => 'string', 'sponsorNote' => 'string', 'sponsors' => 'object', 'publisherInstitution' => 'string', 'publisherUrl' => 'string', 'publisherNote' => 'string', 'contributorNote' => 'string', 'contributors' => 'object', 'envelopeSender' => 'string', 'emailSignature' => 'string', 'searchDescription' => 'string', 'searchKeywords' => 'string', 'customHeaders' => 'string'));
     // Validation checks for this form
     $this->addCheck(new FormValidatorLocale($this, 'title', 'required', 'manager.setup.form.journalTitleRequired'));
     $this->addCheck(new FormValidatorLocale($this, 'initials', 'required', 'manager.setup.form.journalInitialsRequired'));
     $this->addCheck(new FormValidator($this, 'contactName', 'required', 'manager.setup.form.contactNameRequired'));
     $this->addCheck(new FormValidatorEmail($this, 'contactEmail', 'required', 'manager.setup.form.contactEmailRequired'));
     $this->addCheck(new FormValidator($this, 'supportName', 'required', 'manager.setup.form.supportNameRequired'));
     $this->addCheck(new FormValidatorEmail($this, 'supportEmail', 'required', 'manager.setup.form.supportEmailRequired'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep3Form()
 {
     parent::JournalSetupForm(3, array('authorGuidelines' => 'string', 'submissionChecklistInfo' => 'string', 'submissionChecklist' => 'object', 'sourceCurrency' => 'string', 'convertionRate' => 'int', 'progressReportGuidelines' => 'string', 'completionReportGuidelines' => 'string', 'protocolAmendmentGuidelines' => 'string', 'saeGuidelines' => 'string'));
     $this->addCheck(new FormValidator($this, 'sourceCurrency', 'required', 'manager.setup.form.sourceCurrencyRequired'));
     $this->addCheck(new FormValidatorCustom($this, 'convertionRate', 'required', 'manager.setup.form.exchangeRateInstruct2', function ($convertionRate) {
         $convertionRate = preg_replace('/\\s+/', '', $convertionRate);
         $convertionRate = trim($convertionRate);
         if (preg_match('/^[0-9]+([\\.,][0-9]*)?$/', $convertionRate)) {
             $convertionRate = rtrim($convertionRate, " \t\n\r\v.,0");
             if ($convertionRate != "") {
                 return true;
             } else {
                 return false;
             }
         } else {
             return false;
         }
     }));
     $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress', 'optional', 'user.profile.form.emailRequired'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep4Form()
 {
     parent::JournalSetupForm(4, array('disableUserReg' => 'bool', 'allowRegReader' => 'bool', 'allowRegAuthor' => 'bool', 'allowRegReviewer' => 'bool', 'restrictSiteAccess' => 'bool', 'restrictArticleAccess' => 'bool', 'articleEventLog' => 'bool', 'articleEmailLog' => 'bool', 'publicationFormatVolume' => 'bool', 'publicationFormatNumber' => 'bool', 'publicationFormatYear' => 'bool', 'publicationFormatTitle' => 'bool', 'initialVolume' => 'int', 'initialNumber' => 'int', 'initialYear' => 'int', 'pubFreqPolicy' => 'string', 'useCopyeditors' => 'bool', 'copyeditInstructions' => 'string', 'useLayoutEditors' => 'bool', 'layoutInstructions' => 'string', 'provideRefLinkInstructions' => 'bool', 'refLinkInstructions' => 'string', 'useProofreaders' => 'bool', 'proofInstructions' => 'string', 'enableSubscriptions' => 'bool', 'showGalleyLinks' => 'bool', 'openAccessPolicy' => 'string', 'enableAnnouncements' => 'bool', 'enableAnnouncementsHomepage' => 'bool', 'numAnnouncementsHomepage' => 'int', 'announcementsIntroduction' => 'string', 'volumePerYear' => 'int', 'issuePerVolume' => 'int', 'enablePublicIssueId' => 'bool', 'enablePublicArticleId' => 'bool', 'enablePublicGalleyId' => 'bool', 'enablePublicSuppFileId' => 'bool', 'enablePageNumber' => 'bool'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep3Form()
 {
     parent::JournalSetupForm(3, array('authorGuidelines' => 'string', 'submissionChecklist' => 'object', 'copyrightNotice' => 'string', 'includeCreativeCommons' => 'bool', 'copyrightNoticeAgree' => 'bool', 'requireAuthorCompetingInterests' => 'bool', 'requireReviewerCompetingInterests' => 'bool', 'competingInterestGuidelines' => 'string', 'metaDiscipline' => 'bool', 'metaDisciplineExamples' => 'string', 'metaSubjectClass' => 'bool', 'metaSubjectClassTitle' => 'string', 'metaSubjectClassUrl' => 'string', 'metaSubject' => 'bool', 'metaSubjectExamples' => 'string', 'metaCoverage' => 'bool', 'metaCoverageGeoExamples' => 'string', 'metaCoverageChronExamples' => 'string', 'metaCoverageResearchSampleExamples' => 'string', 'metaType' => 'bool', 'metaTypeExamples' => 'string', 'metaCitations' => 'bool', 'metaCitationOutputFilterId' => 'int', 'copySubmissionAckPrimaryContact' => 'bool', 'copySubmissionAckSpecified' => 'bool', 'copySubmissionAckAddress' => 'string'));
     $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress', 'optional', 'user.profile.form.emailRequired'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep2Form()
 {
     parent::JournalSetupForm(2, array('focusScopeDesc' => 'string', 'numWeeksPerReview' => 'int', 'remindForInvite' => 'bool', 'remindForSubmit' => 'bool', 'numDaysBeforeInviteReminder' => 'int', 'numDaysBeforeSubmitReminder' => 'int', 'rateReviewerOnQuality' => 'bool', 'restrictReviewerFileAccess' => 'bool', 'reviewerAccessKeysEnabled' => 'bool', 'showEnsuringLink' => 'bool', 'reviewPolicy' => 'string', 'mailSubmissionsToReviewers' => 'bool', 'reviewGuidelines' => 'string', 'authorSelectsEditor' => 'bool', 'privacyStatement' => 'string', 'customAboutItems' => 'object', 'enableLockss' => 'bool', 'lockssLicense' => 'string', 'reviewerDatabaseLinks' => 'object', 'notifyAllAuthorsOnDecision' => 'bool'));
     $this->addCheck(new FormValidatorEmail($this, 'envelopeSender', 'optional', 'user.profile.form.emailRequired'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep5Form()
 {
     parent::JournalSetupForm(5, array('homeHeaderTitleType' => 'int', 'homeHeaderTitle' => 'string', 'pageHeaderTitleType' => 'int', 'pageHeaderTitle' => 'string', 'readerInformation' => 'string', 'authorInformation' => 'string', 'librarianInformation' => 'string', 'journalPageHeader' => 'string', 'journalPageFooter' => 'string', 'displayCurrentIssue' => 'bool', 'additionalHomeContent' => 'string', 'description' => 'string', 'navItems' => 'object', 'itemsPerPage' => 'int', 'numPageLinks' => 'int', 'journalTheme' => 'string', 'journalThumbnailAltText' => 'string', 'homeHeaderTitleImageAltText' => 'string', 'homeHeaderLogoImageAltText' => 'string', 'homepageImageAltText' => 'string', 'pageHeaderTitleImageAltText' => 'string', 'pageHeaderLogoImageAltText' => 'string'));
 }
 /**
  * Constructor.
  */
 function JournalSetupStep3Form()
 {
     parent::JournalSetupForm(3, array('authorGuidelines' => 'string', 'submissionChecklistInfo' => 'string', 'submissionChecklist' => 'object', 'sourceCurrency' => 'string', 'convertionRate' => 'int', 'progressReportGuidelines' => 'string', 'completionReportGuidelines' => 'string', 'protocolAmendmentGuidelines' => 'string', 'saeGuidelines' => 'string'));
     $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress', 'optional', 'user.profile.form.emailRequired'));
 }