/** * Display the form. */ function display() { $conference =& Request::getConference(); $schedConf =& Request::getSchedConf(); $user =& Request::getUser(); $templateMgr =& TemplateManager::getManager(); // Get tracks for this conference $trackDao = DAORegistry::getDAO('TrackDAO'); // If this user is a track director or a director, they are // allowed to submit to tracks flagged as "director-only" for // submissions. Otherwise, display only tracks they are allowed // to submit to. $roleDao = DAORegistry::getDAO('RoleDAO'); $isDirector = $roleDao->userHasRole($conference->getId(), $schedConf->getId(), $user->getId(), ROLE_ID_DIRECTOR) || $roleDao->userHasRole($conference->getId(), $schedConf->getId(), $user->getId(), ROLE_ID_TRACK_DIRECTOR) || $roleDao->userHasRole($conference->getId(), 0, $user->getId(), ROLE_ID_DIRECTOR) || $roleDao->userHasRole($conference->getId(), 0, $user->getId(), ROLE_ID_TRACK_DIRECTOR); $templateMgr->assign('trackOptions', array('0' => __('author.submit.selectTrack')) + $trackDao->getTrackTitles($schedConf->getId(), !$isDirector)); $paperTypeDao = DAORegistry::getDAO('PaperTypeDAO'); $sessionTypes = $paperTypeDao->getPaperTypes($schedConf->getId()); $templateMgr->assign('sessionTypes', $sessionTypes->toArray()); // Provide available submission languages. (Convert the array // of locale symbolic names xx_XX into an associative array // of symbolic names => readable names.) $supportedSubmissionLocales = $conference->getSetting('supportedSubmissionLocales'); if (empty($supportedSubmissionLocales)) { $supportedSubmissionLocales = array($conference->getPrimaryLocale()); } $templateMgr->assign('supportedSubmissionLocaleNames', array_flip(array_intersect(array_flip(AppLocale::getAllLocales()), $supportedSubmissionLocales))); parent::display(); }
/** * Display the form. */ function display() { $journal =& Request::getJournal(); $user =& Request::getUser(); $templateMgr =& TemplateManager::getManager(); // Get article file for this article $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); $articleFiles =& $articleFileDao->getArticleFilesByArticle($this->articleId); $templateMgr->assign_by_ref('files', $articleFiles); $templateMgr->assign_by_ref('journal', Request::getJournal()); // Set up required Payment Related Information import('classes.payment.ojs.OJSPaymentManager'); $paymentManager =& OJSPaymentManager::getManager(); if ($paymentManager->submissionEnabled() || $paymentManager->fastTrackEnabled() || $paymentManager->publicationEnabled()) { $templateMgr->assign('authorFees', true); $completedPaymentDAO =& DAORegistry::getDAO('OJSCompletedPaymentDAO'); $articleId = $this->articleId; if ($paymentManager->submissionEnabled()) { $templateMgr->assign_by_ref('submissionPayment', $completedPaymentDAO->getSubmissionCompletedPayment($journal->getId(), $articleId)); $templateMgr->assign('manualPayment', $journal->getSetting('paymentMethodPluginName') == 'ManualPayment'); } if ($paymentManager->fastTrackEnabled()) { $templateMgr->assign_by_ref('fastTrackPayment', $completedPaymentDAO->getFastTrackCompletedPayment($journal->getId(), $articleId)); } } parent::display(); }
/** * Display the form. */ function display() { $countryDao =& DAORegistry::getDAO('CountryDAO'); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('coutryList', $countryDao->getCountries()); parent::display(); }
/** * Display the form. */ function display() { $journal =& Request::getJournal(); $user =& Request::getUser(); $templateMgr =& TemplateManager::getManager(); // Get sections for this journal $sectionDao =& DAORegistry::getDAO('SectionDAO'); // If this user is a section editor or an editor, they are allowed // to submit to sections flagged as "editor-only" for submissions. // Otherwise, display only sections they are allowed to submit to. $roleDao =& DAORegistry::getDAO('RoleDAO'); $isEditor = $roleDao->roleExists($journal->getId(), $user->getId(), ROLE_ID_EDITOR) || $roleDao->roleExists($journal->getId(), $user->getId(), ROLE_ID_SECTION_EDITOR); // Set up required Payment Related Information import('payment.ojs.OJSPaymentManager'); $paymentManager =& OJSPaymentManager::getManager(); if ($paymentManager->submissionEnabled() || $paymentManager->fastTrackEnabled() || $paymentManager->publicationEnabled()) { $templateMgr->assign('authorFees', true); $completedPaymentDAO =& DAORegistry::getDAO('OJSCompletedPaymentDAO'); $articleId = $this->articleId; if ($paymentManager->submissionEnabled()) { $templateMgr->assign_by_ref('submissionPayment', $completedPaymentDAO->getSubmissionCompletedPayment($journal->getId(), $articleId)); } if ($paymentManager->fastTrackEnabled()) { $templateMgr->assign_by_ref('fastTrackPayment', $completedPaymentDAO->getFastTrackCompletedPayment($journal->getId(), $articleId)); } } $templateMgr->assign('sectionOptions', array('0' => Locale::translate('author.submit.selectSection')) + $sectionDao->getSectionTitles($journal->getId(), !$isEditor)); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); $countryDao =& DAORegistry::getDAO('CountryDAO'); $countries =& $countryDao->getCountries(); $templateMgr->assign_by_ref('countries', $countries); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get supplementary files for this article $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByArticle($this->articleId)); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); $typeOptions = array("author.submit.suppFile.summary" => "author.submit.suppFile.summary", "author.submit.suppFile.grantRequest" => "author.submit.suppFile.grantRequest", "author.submit.suppFile.informedConsent" => "author.submit.suppFile.informedConsent", "author.submit.suppFile.minutes" => "author.submit.suppFile.minutes", "author.submit.suppFile.proofOfPayment" => "author.submit.suppFile.proofOfPayment", "author.submit.suppFile.funding" => "author.submit.suppFile.funding", "author.submit.suppFile.cv" => "author.submit.suppFile.cv", "author.submit.suppFile.questionnaire" => "author.submit.suppFile.questionnaire", "author.submit.suppFile.proofOfRegistration" => "author.submit.suppFile.proofOfRegistration", "author.submit.suppFile.otherErcDecision" => "author.submit.suppFile.otherErcDecision", "author.submit.suppFile.amendment" => "author.submit.suppFile.amendment", "common.other" => "common.other"); $templateMgr->assign('typeOptions', $typeOptions); // Get supplementary files for this article $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByArticle($this->articleId)); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get supplementary files for this paper $paperFileDao = DAORegistry::getDAO('PaperFileDAO'); if ($this->paper->getSubmissionFileId() != null) { $templateMgr->assign_by_ref('submissionFile', $paperFileDao->getPaperFile($this->paper->getSubmissionFileId())); } parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get paper file for this paper $paperFileDao =& DAORegistry::getDAO('PaperFileDAO'); $paperFiles =& $paperFileDao->getPaperFilesByPaper($this->paperId); $templateMgr->assign_by_ref('files', $paperFiles); $templateMgr->assign_by_ref('conference', Request::getConference()); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get supplementary files for this article $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); if ($this->article->getSubmissionFileId() != null) { $templateMgr->assign_by_ref('submissionFile', $articleFileDao->getArticleFile($this->article->getSubmissionFileId())); } parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get supplementary files for this article $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByArticle($this->articleId)); //%CBP% get required sections $CBPPlatformDao =& DAORegistry::getDAO('CBPPlatformDAO'); $article = $this->article->_data; $templateMgr->assign_by_ref('requiredSections', $CBPPlatformDao->getRequiredSections($article['journalId'], "author")); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); // Get supplementary files for this article $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); if ($this->article->getSubmissionFileId() != null) { $templateMgr->assign_by_ref('submissionFile', $articleFileDao->getArticleFile($this->article->getSubmissionFileId())); } //Get comments, if any, for this article //Updated by: AIM //Last updated: June 21, 2011 $articleCommentsDao =& DAORegistry::getDAO('ArticleCommentDAO'); $articleComments = $articleCommentsDao->getArticleComments($this->articleId); if (!empty($articleComments)) { $templateMgr->assign_by_ref('articleComments', $articleComments); } parent::display(); }
/** * Display the form. */ function display() { $journal =& Request::getJournal(); $templateMgr =& TemplateManager::getManager(); // Get article file for this article $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); $articleFiles =& $articleFileDao->getArticleFilesByArticle($this->articleId); $previousFiles =& $articleFileDao->getPreviousFilesByArticleId($this->articleId); foreach ($articleFiles as $articleFile) { foreach ($previousFiles as $previousFile) { if ($articleFile->getFileId() == $previousFile->getFileId()) { $articleFile->setType('previous'); } } } $sectionDao =& DAORegistry::getDAO('SectionDAO'); $section = $sectionDao->getSection($this->article->getSectionId()); $templateMgr->assign_by_ref('section', $section); $templateMgr->assign_by_ref('files', $articleFiles); $templateMgr->assign_by_ref('journal', Request::getJournal()); $templateMgr->assign_by_ref('article', $this->article); // Set up required Payment Related Information import('classes.payment.ojs.OJSPaymentManager'); $paymentManager =& OJSPaymentManager::getManager(); if ($paymentManager->submissionEnabled() || $paymentManager->fastTrackEnabled() || $paymentManager->publicationEnabled()) { $templateMgr->assign('sectionId', $this->article->getSectionId()); $templateMgr->assign('authorFees', true); $completedPaymentDAO =& DAORegistry::getDAO('OJSCompletedPaymentDAO'); $articleId = $this->articleId; if ($paymentManager->submissionEnabled()) { $templateMgr->assign_by_ref('submissionPayment', $completedPaymentDAO->getSubmissionCompletedPayment($journal->getId(), $articleId)); $templateMgr->assign('manualPayment', $journal->getSetting('paymentMethodPluginName') == 'ManualPayment'); } if ($paymentManager->fastTrackEnabled()) { $templateMgr->assign_by_ref('fastTrackPayment', $completedPaymentDAO->getFastTrackCompletedPayment($journal->getId(), $articleId)); } } $templateMgr->assign_by_ref('abstractLocales', $journal->getSupportedLocaleNames()); $currencyDao =& DAORegistry::getDAO('CurrencyDAO'); $sourceCurrencyId = $journal->getSetting('sourceCurrency'); $templateMgr->assign('sourceCurrency', $currencyDao->getCurrencyByAlphaCode($sourceCurrencyId)); parent::display(); }
/** * Display the form. */ function display() { $conference =& Request::getConference(); $schedConf =& Request::getSchedConf(); $user =& Request::getUser(); $templateMgr =& TemplateManager::getManager(); // Get tracks for this conference $trackDao =& DAORegistry::getDAO('TrackDAO'); // If this user is a track director or a director, they are // allowed to submit to tracks flagged as "director-only" for // submissions. Otherwise, display only tracks they are allowed // to submit to. $roleDao =& DAORegistry::getDAO('RoleDAO'); $isDirector = $roleDao->roleExists($conference->getId(), $schedConf->getId(), $user->getId(), ROLE_ID_DIRECTOR) || $roleDao->roleExists($conference->getId(), $schedConf->getId(), $user->getId(), ROLE_ID_TRACK_DIRECTOR) || $roleDao->roleExists($conference->getId(), 0, $user->getId(), ROLE_ID_DIRECTOR) || $roleDao->roleExists($conference->getId(), 0, $user->getId(), ROLE_ID_TRACK_DIRECTOR); $templateMgr->assign('trackOptions', array('0' => Locale::translate('author.submit.selectTrack')) + $trackDao->getTrackTitles($schedConf->getId(), !$isDirector)); $paperTypeDao =& DAORegistry::getDAO('PaperTypeDAO'); $sessionTypes = $paperTypeDao->getPaperTypes($schedConf->getId()); $templateMgr->assign('sessionTypes', $sessionTypes->toArray()); parent::display(); }
/** * Display the form. */ function display() { $journal =& $this->request->getJournal(); $user =& $this->request->getUser(); $templateMgr =& TemplateManager::getManager(); // Get sections for this journal $sectionDao =& DAORegistry::getDAO('SectionDAO'); // If this user is a section editor or an editor, they are // allowed to submit to sections flagged as "editor-only" for // submissions. Otherwise, display only sections they are // allowed to submit to. $roleDao =& DAORegistry::getDAO('RoleDAO'); $isEditor = $roleDao->userHasRole($journal->getId(), $user->getId(), ROLE_ID_EDITOR) || $roleDao->userHasRole($journal->getId(), $user->getId(), ROLE_ID_SECTION_EDITOR); $templateMgr->assign('sectionOptions', array('0' => __('author.submit.selectSection')) + $sectionDao->getSectionTitles($journal->getId(), !$isEditor)); // Set up required Payment Related Information import('classes.payment.ojs.OJSPaymentManager'); $paymentManager = new OJSPaymentManager($this->request); if ($paymentManager->submissionEnabled() || $paymentManager->fastTrackEnabled() || $paymentManager->publicationEnabled()) { $templateMgr->assign('authorFees', true); $completedPaymentDao =& DAORegistry::getDAO('OJSCompletedPaymentDAO'); $articleId = $this->articleId; if ($paymentManager->submissionEnabled()) { $templateMgr->assign_by_ref('submissionPayment', $completedPaymentDao->getSubmissionCompletedPayment($journal->getId(), $articleId)); } if ($paymentManager->fastTrackEnabled()) { $templateMgr->assign_by_ref('fastTrackPayment', $completedPaymentDao->getFastTrackCompletedPayment($journal->getId(), $articleId)); } } // Provide available submission languages. (Convert the array // of locale symbolic names xx_XX into an associative array // of symbolic names => readable names.) $supportedSubmissionLocales = $journal->getSetting('supportedSubmissionLocales'); if (empty($supportedSubmissionLocales)) { $supportedSubmissionLocales = array($journal->getPrimaryLocale()); } $templateMgr->assign('supportedSubmissionLocaleNames', array_flip(array_intersect(array_flip(AppLocale::getAllLocales()), $supportedSubmissionLocales))); parent::display(); }
/** * Display the form. */ function display() { $articleDrugInfoDao =& DAORegistry::getDAO('ArticleDrugInfoDAO'); $countryDao =& DAORegistry::getDAO('CountryDAO'); $drugAdministrationMap = $articleDrugInfoDao->getAdministrationMap(); $drugAdministrationMapWithOther = $drugAdministrationMap + array('OTHER' => Locale::translate('common.other')); $drugFormMap = $articleDrugInfoDao->getFormMap(); $drugFormMapWithOther = $drugFormMap + array('OTHER' => Locale::translate('common.other')); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('drugTypeMap', $articleDrugInfoDao->getTypeMap()); $templateMgr->assign('drugAdministrationMap', $drugAdministrationMapWithOther); $templateMgr->assign('drugFormMap', $drugFormMapWithOther); $templateMgr->assign('drugStorageMap', $articleDrugInfoDao->getStorageMap()); $templateMgr->assign('drugPharmaClasses', $articleDrugInfoDao->getPharmaClasses()); $templateMgr->assign('drugStudyClasses', $articleDrugInfoDao->getClassMap()); $templateMgr->assign('coutryList', $countryDao->getCountries()); $templateMgr->assign('yesNoMap', $articleDrugInfoDao->getYesNoMap()); parent::display(); }
/** * Display the form. */ function display() { $countryDao =& DAORegistry::getDAO('CountryDAO'); $extraFieldDAO =& DAORegistry::getDAO('ExtraFieldDAO'); $institutionDao =& DAORegistry::getDAO('InstitutionDAO'); $articleDetailsDao =& DAORegistry::getDAO('ArticleDetailsDAO'); $geoAreas =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_GEO_AREA, EXTRA_FIELD_ACTIVE); $institutionsList = $institutionDao->getInstitutionsList(); $institutionsListWithOther = $institutionsList + array('OTHER' => Locale::translate('common.other')); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('institutionTypesList', $institutionDao->getInstitutionTypes()); $templateMgr->assign('geoAreasList', $geoAreas); $templateMgr->assign('coutryList', $countryDao->getCountries()); $templateMgr->assign('institutionsList', $institutionsListWithOther); $templateMgr->assign('internationalArray', $institutionDao->getInstitutionInternationalArray()); $templateMgr->assign('yesNoMap', $articleDetailsDao->getYesNoMap()); parent::display(); }
/** * Display the form. */ function display() { $journal = Request::getJournal(); $countryDao =& DAORegistry::getDAO('CountryDAO'); $proposalDetailsDao =& DAORegistry::getDAO('ProposalDetailsDAO'); $studentResearchDao =& DAORegistry::getDAO('StudentResearchDAO'); $extraFieldDAO =& DAORegistry::getDAO('ExtraFieldDAO'); $institutionDao =& DAORegistry::getDAO('InstitutionDAO'); $riskAssessmentDao =& DAORegistry::getDAO('RiskAssessmentDAO'); $currencyDao =& DAORegistry::getDAO('CurrencyDAO'); $geoAreas =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_GEO_AREA, EXTRA_FIELD_ACTIVE); $proposalTypesList =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_PROPOSAL_TYPE, EXTRA_FIELD_ACTIVE); $proposalTypesListWithOther = $proposalTypesList + array('OTHER' => Locale::translate('common.other')); $researchDomainsList =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_RESEARCH_DOMAIN, EXTRA_FIELD_ACTIVE); $researchFieldsList =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_RESEARCH_FIELD, EXTRA_FIELD_ACTIVE); $researchFieldsListWithOther = $researchFieldsList + array('OTHER' => Locale::translate('common.other')); $institutionsList = $institutionDao->getInstitutionsList(); $institutionsListWithOther = $institutionsList + array('OTHER' => Locale::translate('common.other')); $sourcesList = $institutionsListWithOther + array('KII' => Locale::translate('proposal.keyImplInstitution')); $sourceCurrencyId = $journal->getSetting('sourceCurrency'); $templateMgr =& TemplateManager::getManager(); if (Request::getUserVar('addAuthor') || Request::getUserVar('delAuthor') || Request::getUserVar('moveAuthor')) { $templateMgr->assign('scrollToAuthor', true); } $templateMgr->assign('abstractLocales', $journal->getSupportedLocaleNames()); $templateMgr->assign('coutryList', $countryDao->getCountries()); $templateMgr->assign('proposalTypesList', $proposalTypesListWithOther); $templateMgr->assign('researchDomainsList', $researchDomainsList); $templateMgr->assign('researchFieldsList', $researchFieldsListWithOther); $templateMgr->assign('proposalDetailYesNoArray', $proposalDetailsDao->getYesNoArray()); $templateMgr->assign('nationwideRadioButtons', $proposalDetailsDao->getNationwideRadioButtons()); $templateMgr->assign('dataCollectionArray', $proposalDetailsDao->getDataCollectionArray()); $templateMgr->assign('otherErcDecisionArray', $proposalDetailsDao->getOtherErcDecisionArray()); $templateMgr->assign('academicDegreesArray', $studentResearchDao->getAcademicDegreesArray()); $templateMgr->assign('geoAreasList', $geoAreas); $templateMgr->assign('institutionsList', $institutionsListWithOther); $templateMgr->assign('sourceCurrency', $currencyDao->getCurrencyByAlphaCode($sourceCurrencyId)); $templateMgr->assign('sourcesList', $sourcesList); $templateMgr->assign('institutionTypes', $institutionDao->getInstitutionTypes()); $templateMgr->assign('internationalArray', $institutionDao->getInstitutionInternationalArray()); $templateMgr->assign('riskAssessmentYesNoArray', $riskAssessmentDao->getYesNoArray()); $templateMgr->assign('riskAssessmentExportReasonArray', $riskAssessmentDao->getExportReasonArray()); $templateMgr->assign('riskAssessmentLevelsOfRisk', $riskAssessmentDao->getLevelOfRiskArray()); $templateMgr->assign('riskAssessmentConflictOfInterestArray', $riskAssessmentDao->getConflictOfInterestArray()); parent::display(); }
/** * Display the form. */ function display() { $article =& $this->article; $sites = $article->getArticleSites(); $details = $article->getArticleDetails(); $drugs = $article->getArticleDrugs(); $CROs = $article->getArticleCROs(); $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $trialSiteDao =& DAORegistry::getDAO('TrialSiteDAO'); $goToNextStep = true; $impds = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_IMPD); $approvalLetters = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_APPROVAL); $informedConsents = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_CONSENT); $labelss = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_LABELS); $gmps = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_GMP); $relatedPublications = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_PUBLICATIONS); if (empty($impds) || empty($approvalLetters) || empty($informedConsents) || empty($labelss) || empty($gmps)) { $goToNextStep = false; } $sitesList = array(); $sitesArray = array(); foreach ($sites as $site) { $trialSite = $trialSiteDao->getTrialSiteById($site->getSiteId()); $endorsmentLetters = $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->articleId, SUPP_FILE_ENDORSMENT, $site->getId()); $CVs = $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->articleId, SUPP_FILE_CV, $site->getId()); if (empty($endorsmentLetters) || empty($CVs)) { $goToNextStep = false; } $sitesList[$site->getId()] = $trialSite->getName(); $siteArray = array('name' => $trialSite->getName(), 'endorsmentLetters' => $endorsmentLetters, 'CVs' => $CVs); array_push($sitesArray, $siteArray); } $CROsList = array(); $CROsArray = array(); if ($details->getCROInvolved() == ARTICLE_DETAIL_YES) { foreach ($CROs as $CRO) { $delegationLetters = $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->articleId, SUPP_FILE_DELEGATION, $CRO->getId()); if (empty($delegationLetters)) { $goToNextStep = false; } $CROsList[$CRO->getId()] = $CRO->getName(); array_push($CROsArray, array('name' => $CRO->getName(), 'delegations' => $delegationLetters)); } } $showPolicies = false; if ($details->getCompensationPolicy() == ARTICLE_DETAIL_YES) { $showPolicies = true; $policies = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_POLICY); if (empty($policies)) { $goToNextStep = false; } } $drugsListForIB = array(); $drugsListForSMPC = array(); $drugsArray = array(); foreach ($drugs as $drug) { $IB = false; $classes = $drug->getClassesArray(); foreach ($classes as $class) { if ($class == ARTICLE_DRUG_INFO_CLASS_IV) { $SmPCs = $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->articleId, SUPP_FILE_SMPC, $drug->getId()); array_push($drugsArray, array('name' => $drug->getName(), 'ib' => false, 'smpcs' => $SmPCs)); $drugsListForSMPC[$drug->getId()] = $drug->getName(); if (empty($SmPCs)) { $goToNextStep = false; } } else { if (!$IB) { $IBs = $suppFileDao->getSuppFilesByArticleTypeAndAssocId($this->articleId, SUPP_FILE_BROCHURE, $drug->getId()); array_push($drugsArray, array('name' => $drug->getName(), 'ib' => true, 'ibs' => $IBs)); $drugsListForIB[$drug->getId()] = $drug->getName(); if (empty($IBs)) { $goToNextStep = false; } } $IB = true; } } } $showAdvertisements = false; if ($details->getAdvertisingScheme() == ARTICLE_DETAIL_YES) { $showAdvertisements = true; $advertisements = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_ADVERTISEMENT); if (empty($advertisements)) { $goToNextStep = false; } } $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('typeOptions', $suppFileDao->getTypeMap()); $templateMgr->assign_by_ref('impds', $impds); $templateMgr->assign_by_ref('approvalLetters', $approvalLetters); $templateMgr->assign_by_ref('informedConsents', $informedConsents); $templateMgr->assign_by_ref('labelss', $labelss); $templateMgr->assign_by_ref('gmps', $gmps); $templateMgr->assign('sitesArray', $sitesArray); $templateMgr->assign('sitesList', $sitesList); $templateMgr->assign('drugsArray', $drugsArray); $templateMgr->assign('drugsListForIB', $drugsListForIB); $templateMgr->assign('drugsListForSMPC', $drugsListForSMPC); $templateMgr->assign('showAdvertisements', $showAdvertisements); $templateMgr->assign_by_ref('advertisements', $advertisements); $templateMgr->assign('showPolicies', $showPolicies); $templateMgr->assign_by_ref('policies', $policies); $templateMgr->assign('CROsList', $CROsList); $templateMgr->assign('CROsArray', $CROsArray); $templateMgr->assign_by_ref('relatedPublications', $relatedPublications); $templateMgr->assign('goToNextStep', $goToNextStep); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); $countryDao =& DAORegistry::getDAO('CountryDAO'); $countries =& $countryDao->getCountries(); $templateMgr->assign_by_ref('countries', $countries); if ($this->request->getUserVar('addAuthor') || $this->request->getUserVar('delAuthor') || $this->request->getUserVar('moveAuthor')) { $templateMgr->assign('scrollToAuthor', true); } parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); //Opatan Inc. : Assign Abstract Minimum and Maximum Length $journal =& Request::getJournal(); $journalSettingsDao =& DAORegistry::getDAO('JournalSettingsDAO'); $abstractMinimumLength =& $journalSettingsDao->getSetting($journal->getJournalId(), 'abstractMinimumLength'); $abstractMaximumLength =& $journalSettingsDao->getSetting($journal->getJournalId(), 'abstractMaximumLength'); if ($abstractMinimumLength) { $templateMgr->assign('abstractMinimumLength', $abstractMinimumLength); } else { $abstractMinimumLength = 200; $templateMgr->assign('abstractMinimumLength', $abstractMinimumLength); } if ($abstractMaximumLength) { $templateMgr->assign('abstractMaximumLength', $abstractMaximumLength); } else { $abstractMaximumLength = 300; $templateMgr->assign('abstractMaximumLength', $abstractMaximumLength); } if ($journalSettingsDao->getSetting($journal->getJournalId(), 'authorCanSpecifyReviewers')) { $authorCanRecommend =& $journalSettingsDao->getSetting($journal->getJournalId(), 'authorCanSpecifyReviewers'); $reviewerIsOptional =& $journalSettingsDao->getSetting($journal->getJournalId(), 'reviewerIsOptional'); $numberOfReviewers =& $journalSettingsDao->getSetting($journal->getJournalId(), 'numberOfReviewers'); $num = array(); $count = 0; $number = $numberOfReviewers; while ($number) { $num[] = ++$count; $number--; } $templateMgr->assign('reviewerIsOptional', $reviewerIsOptional); $templateMgr->assign('countOfReviewers', $numberOfReviewers); $templateMgr->assign_by_ref('numberOfReviewers', $num); $templateMgr->assign('authorCanSpecifyReviewers', $authorCanRecommend); } $countryDao =& DAORegistry::getDAO('CountryDAO'); $countries =& $countryDao->getCountries(); $templateMgr->assign_by_ref('countries', $countries); // Get submission files for this article $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); if ($this->article->getSubmissionFileId() != null) { $templateMgr->assign_by_ref('submissionFile', $articleFileDao->getArticleFile($this->article->getSubmissionFileId())); } // Get supplementary files for this article $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $templateMgr->assign_by_ref('suppFiles', $suppFileDao->getSuppFilesByArticle($this->articleId)); parent::display(); }
/** * Display the form. */ function display() { $extraFieldDAO =& DAORegistry::getDAO('ExtraFieldDAO'); $trialSiteDao =& DAORegistry::getDAO('TrialSiteDAO'); $geoAreas =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_GEO_AREA, EXTRA_FIELD_ACTIVE); $ercList =& $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_LEVEL3_ERC, EXTRA_FIELD_ACTIVE); $sitesList = $trialSiteDao->getTrialSitesList(); $sitesListWithOther = $sitesList + array('OTHER' => Locale::translate('common.other')); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('sitesList', $sitesListWithOther); $templateMgr->assign('geoAreas', $geoAreas); $templateMgr->assign('ercList', $ercList); $templateMgr->assign('expertisesList', $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_THERAPEUTIC_AREA, EXTRA_FIELD_ACTIVE)); parent::display(); }
/** * Display the form. */ function display() { $journal =& Request::getJournal(); $templateMgr =& TemplateManager::getManager(); $countryDao =& DAORegistry::getDAO('CountryDAO'); $articleFileDao =& DAORegistry::getDAO('ArticleFileDAO'); $sectionDao =& DAORegistry::getDAO('SectionDAO'); $suppFileDao =& DAORegistry::getDAO('SuppFileDAO'); $articleDrugInfoDao =& DAORegistry::getDAO('ArticleDrugInfoDAO'); $currencyDao =& DAORegistry::getDAO('CurrencyDAO'); $extraFieldDAO =& DAORegistry::getDAO('ExtraFieldDAO'); $details = $this->article->getArticleDetails(); // Get article file for this article $articleFiles =& $articleFileDao->getArticleFilesByArticle($this->articleId); $previousFiles =& $articleFileDao->getPreviousFilesByArticleId($this->articleId); foreach ($articleFiles as $articleFile) { foreach ($previousFiles as $previousFile) { if ($articleFile->getFileId() == $previousFile->getFileId()) { $articleFile->setType('previous'); } } if ($articleFile->getType() == 'supp') { $suppFile = $suppFileDao->getSuppFileByFileId($articleFile->getFileId()); $articleFile->setType(Locale::translate($suppFile->getTypeKey())); } } $showAdvertisements = false; $advertisements = array(); if ($details->getAdvertisingScheme() == ARTICLE_DETAIL_YES) { $showAdvertisements = true; $advertisements = $suppFileDao->getSuppFilesByArticleAndType($this->articleId, SUPP_FILE_ADVERTISEMENT); } $section = $sectionDao->getSection($this->article->getSectionId()); $templateMgr->assign_by_ref('section', $section); $templateMgr->assign_by_ref('files', $articleFiles); $templateMgr->assign_by_ref('journal', Request::getJournal()); $templateMgr->assign_by_ref('article', $this->article); $templateMgr->assign_by_ref('articleDetails', $details); $templateMgr->assign_by_ref('articleTexts', $this->article->getArticleTexts()); $templateMgr->assign_by_ref('articleSecIds', $this->article->getArticleSecIds()); $templateMgr->assign_by_ref('articlePurposes', $this->article->getArticlePurposes()); $templateMgr->assign('articleTextLocales', $journal->getSupportedLocaleNames()); $templateMgr->assign_by_ref('articlePrimaryOutcomes', $this->article->getArticleOutcomesByType(ARTICLE_OUTCOME_PRIMARY)); $templateMgr->assign_by_ref('articleSecondaryOutcomes', $this->article->getArticleOutcomesByType(ARTICLE_OUTCOME_SECONDARY)); $templateMgr->assign('coveringArea', $journal->getLocalizedSetting('location')); $templateMgr->assign('coutryList', $countryDao->getCountries()); $templateMgr->assign('showAdvertisements', $showAdvertisements); $templateMgr->assign_by_ref('advertisements', $advertisements); $templateMgr->assign_by_ref('articleDrugs', $this->article->getArticleDrugs()); $templateMgr->assign('pharmaClasses', $articleDrugInfoDao->getPharmaClasses()); $templateMgr->assign('drugStudyClasses', $articleDrugInfoDao->getClassMap()); $templateMgr->assign_by_ref('articleSites', $this->article->getArticleSites()); $templateMgr->assign('expertisesList', $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_THERAPEUTIC_AREA, EXTRA_FIELD_ACTIVE)); $templateMgr->assign_by_ref('fundingSources', $this->article->getArticleFundingSources()); $templateMgr->assign_by_ref('pSponsor', $this->article->getArticlePrimarySponsor()); $templateMgr->assign_by_ref('sSponsors', $this->article->getArticleSecondarySponsors()); $templateMgr->assign_by_ref('CROs', $this->article->getArticleCROs()); $templateMgr->assign_by_ref('contact', $this->article->getArticleContact()); // Set up required Payment Related Information import('classes.payment.ojs.OJSPaymentManager'); $paymentManager =& OJSPaymentManager::getManager(); if ($paymentManager->submissionEnabled() || $paymentManager->fastTrackEnabled() || $paymentManager->publicationEnabled()) { $templateMgr->assign('sectionId', $this->article->getSectionId()); $templateMgr->assign('bankAccount', $section->getLocalizedPaymentInfo()); $templateMgr->assign('authorFees', true); $completedPaymentDAO =& DAORegistry::getDAO('OJSCompletedPaymentDAO'); $articleId = $this->articleId; if ($paymentManager->submissionEnabled()) { $templateMgr->assign_by_ref('submissionPayment', $completedPaymentDAO->getSubmissionCompletedPayment($journal->getId(), $articleId)); $templateMgr->assign('manualPayment', $journal->getSetting('paymentMethodPluginName') == 'ManualPayment'); } if ($paymentManager->fastTrackEnabled()) { $templateMgr->assign_by_ref('fastTrackPayment', $completedPaymentDAO->getFastTrackCompletedPayment($journal->getId(), $articleId)); } } $templateMgr->assign_by_ref('abstractLocales', $journal->getSupportedLocaleNames()); $sourceCurrencyId = $journal->getSetting('sourceCurrency'); $templateMgr->assign('sourceCurrency', $currencyDao->getCurrencyByAlphaCode($sourceCurrencyId)); parent::display(); }
/** * Display the form. */ function display() { $templateMgr =& TemplateManager::getManager(); $countryDao =& DAORegistry::getDAO('CountryDAO'); $countries =& $countryDao->getCountries(); $templateMgr->assign_by_ref('countries', $countries); if (Request::getUserVar('addAuthor') || Request::getUserVar('delAuthor') || Request::getUserVar('moveAuthor')) { $templateMgr->assign('scrollToAuthor', true); } $schedConf =& Request::getSchedConf(); $reviewMode = $this->paper->getReviewMode(); $templateMgr->assign('collectAbstracts', $reviewMode != REVIEW_MODE_PRESENTATIONS_ALONE); parent::display(); }
/** * Display the form. */ function display() { $journal = Request::getJournal(); $extraFieldDAO =& DAORegistry::getDAO('ExtraFieldDAO'); $articleSecIdDao =& DAORegistry::getDAO('ArticleSecIdDAO'); $articleDetailsDao =& DAORegistry::getDAO('ArticleDetailsDAO'); $purposeDao =& DAORegistry::getDAO('ArticlePurposeDAO'); $countryDao =& DAORegistry::getDAO('CountryDAO'); $therapeuticAreas = $extraFieldDAO->getExtraFieldsList(EXTRA_FIELD_THERAPEUTIC_AREA, EXTRA_FIELD_ACTIVE); $therapeuticAreasWithOther = $therapeuticAreas + array('OTHER' => Locale::translate('common.other')); $templateMgr =& TemplateManager::getManager(); $templateMgr->assign('articleTextLocales', $journal->getSupportedLocaleNames()); $templateMgr->assign('articleSecIdTypeList', $articleSecIdDao->getTypeMap()); $templateMgr->assign('articleDetailsTherapeuticAreasList', $therapeuticAreasWithOther); $templateMgr->assign('ICD10List', $articleDetailsDao->getICD10s()); $templateMgr->assign('interventionalRadios', $purposeDao->getInterventionalMap()); $templateMgr->assign('purposeTypesList', $purposeDao->getTypeMap()); $templateMgr->assign('CTPhasesList', $purposeDao->getCTPhaseMap()); $templateMgr->assign('allocationsList', $purposeDao->getAllocationMap()); $templateMgr->assign('maskingList', $purposeDao->getMaskingMap()); $templateMgr->assign('controlList', $purposeDao->getControlMap()); $templateMgr->assign('assignmentList', $purposeDao->getAssignmentMap()); $templateMgr->assign('endpointList', $purposeDao->getEndpointMap()); $templateMgr->assign('ageUnitList', $articleDetailsDao->getAgeUnitMap()); $templateMgr->assign('sexList', $articleDetailsDao->getSexMap()); $templateMgr->assign('yesNoList', $articleDetailsDao->getYesNoMap()); $templateMgr->assign('coveringArea', $journal->getLocalizedSetting('location')); $templateMgr->assign('coutryList', $countryDao->getCountries()); $templateMgr->assign('recruitmentStatusMap', $articleDetailsDao->getRecruitmentStatusMap()); parent::display(); }