/** * Initialize form data from current article. */ function initData() { $sectionDao =& DAORegistry::getDAO('SectionDAO'); if (isset($this->article)) { $article =& $this->article; $articleContact = $article->getArticleContact(); $this->_data = array('pqName' => $articleContact->getPQName(), 'pqAffiliation' => $articleContact->getPQAffiliation(), 'pqAddress' => $articleContact->getPQAddress(), 'pqCountry' => $articleContact->getPQCountry(), 'pqPhone' => $articleContact->getPQPhone(), 'pqFax' => $articleContact->getPQFax(), 'pqEmail' => $articleContact->getPQEmail(), 'sqName' => $articleContact->getSQName(), 'sqAffiliation' => $articleContact->getSQAffiliation(), 'sqAddress' => $articleContact->getSQAddress(), 'sqCountry' => $articleContact->getSQCountry(), 'sqPhone' => $articleContact->getSQPhone(), 'sqFax' => $articleContact->getSQFax(), 'sqEmail' => $articleContact->getSQEmail()); } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { $sectionDao =& DAORegistry::getDAO('SectionDAO'); if (isset($this->article)) { $article =& $this->article; $this->_data = array('authors' => array(), 'title' => $article->getTitle(null), 'abstract' => $article->getAbstract(null), 'discipline' => $article->getDiscipline(null), 'subjectClass' => $article->getSubjectClass(null), 'subject' => $article->getSubject(null), 'coverageGeo' => $article->getCoverageGeo(null), 'coverageChron' => $article->getCoverageChron(null), 'coverageSample' => $article->getCoverageSample(null), 'type' => $article->getType(null), 'language' => $article->getLanguage(), 'sponsor' => $article->getSponsor(null), 'section' => $sectionDao->getSection($article->getSectionId()), 'citations' => $article->getCitations()); $authors =& $article->getAuthors(); for ($i = 0, $count = count($authors); $i < $count; $i++) { array_push($this->_data['authors'], array('authorId' => $authors[$i]->getId(), 'firstName' => $authors[$i]->getFirstName(), 'middleName' => $authors[$i]->getMiddleName(), 'lastName' => $authors[$i]->getLastName(), 'affiliation' => $authors[$i]->getAffiliation(null), 'country' => $authors[$i]->getCountry(), 'email' => $authors[$i]->getEmail(), 'orcid' => $authors[$i]->getData('orcid'), 'url' => $authors[$i]->getUrl(), 'competingInterests' => $authors[$i]->getCompetingInterests(null), 'biography' => $authors[$i]->getBiography(null))); if ($authors[$i]->getPrimaryContact()) { $this->setData('primaryContact', $i); } } } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { if (isset($this->article)) { $article =& $this->article; $articleSites = $article->getArticleSites(); $articleSitesArray = array(); if ($articleSites == null) { $articleSitesArray = array(0 => array('investigators' => array(0 => null))); } else { foreach ($articleSites as $articleSite) { $investigators = $articleSite->getInvestigators(); $investigatorsArray = array(); foreach ($investigators as $investigator) { array_push($investigatorsArray, array('id' => $investigator->getId(), 'firstName' => $investigator->getFirstName(), 'lastName' => $investigator->getLastName(), 'expertise' => $investigator->getExpertise(), 'iPrimaryPhone' => $investigator->getPrimaryPhoneNumber(), 'iSecondaryPhone' => $investigator->getSecondaryPhoneNumber(), 'iFax' => $investigator->getFaxNumber(), 'iEmail' => $investigator->getEmail())); } array_push($articleSitesArray, array('id' => $articleSite->getId(), 'siteSelect' => $articleSite->getSiteId(), 'authority' => $articleSite->getAuthority(), 'erc' => $articleSite->getERCId(), 'primaryPhone' => $articleSite->getPrimaryPhone(), 'secondaryPhone' => $articleSite->getSecondaryPhone(), 'fax' => $articleSite->getFax(), 'email' => $articleSite->getEmail(), 'subjectsNumber' => $articleSite->getSubjectsNumber(), 'investigators' => $investigatorsArray)); } } $this->_data = array('articleSites' => $articleSitesArray); } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { $sectionDao =& DAORegistry::getDAO('SectionDAO'); if (isset($this->article)) { $article =& $this->article; // Initialize th proposal details $proposalDetails =& $article->getProposalDetails(); $countriesArray = $proposalDetails->getCountries(); $countries = explode(",", $countriesArray); $geoAreas = $proposalDetails->getGeoAreasArray(); if ($geoAreas == null) { $geoAreas = array(0 => ''); } $researchDomainsArray = $proposalDetails->getResearchDomainsArray(); if ($researchDomainsArray == null) { $researchDomainsArray = array(0 => ''); } $researchFieldsArray = $proposalDetails->getResearchFieldsArray(); if ($researchFieldsArray == null) { $researchFieldsArray = array(0 => ''); } else { $i = 0; foreach ($researchFieldsArray as $field) { if (preg_match('#^Other\\s\\(.+\\)$#', $field)) { $tempField = $field; $field = preg_replace('#^Other\\s\\(.+\\)$#', 'OTHER', $field); $tempField = preg_replace('#^Other\\s\\(#', '', $tempField); $tempField = preg_replace('#\\)$#', '', $tempField); $proposalDetails->setOtherResearchField($tempField); } $test = array($i => $field); $researchFieldsArray = array_replace($researchFieldsArray, $test); $i++; unset($field); } } $proposalTypesArray = $proposalDetails->getProposalTypesArray(); if ($proposalTypesArray == null) { $proposalTypesArray = array(0 => ''); } else { $f = 0; foreach ($proposalTypesArray as $type) { if (preg_match('#^Other\\s\\(.+\\)$#', $type)) { $tempType = $type; $type = preg_replace('#^Other\\s\\(.+\\)$#', 'OTHER', $type); $tempType = preg_replace('#^Other\\s\\(#', '', $tempType); $tempType = preg_replace('#\\)$#', '', $tempType); $proposalDetails->setOtherProposalType($tempType); } $test2 = array($f => $type); $proposalTypesArray = array_replace($proposalTypesArray, $test2); $f++; unset($type); } } $committeeReviewed = $proposalDetails->getCommitteeReviewed(); if ($committeeReviewed == "2" || $committeeReviewed == "3") { $reviewedByOtherErc = "2"; $otherErcDecision = $committeeReviewed; } elseif ($committeeReviewed == "1") { $reviewedByOtherErc = $committeeReviewed; $otherErcDecision = $committeeReviewed; } else { $reviewedByOtherErc = null; $otherErcDecision = "1"; } $proposalDetailsArray = array('studentInitiatedResearch' => $proposalDetails->getStudentResearch(), 'startDate' => $proposalDetails->getStartDate(), 'endDate' => $proposalDetails->getEndDate(), 'keyImplInstitution' => $proposalDetails->getKeyImplInstitution(), 'multiCountryResearch' => $proposalDetails->getMultiCountryResearch(), 'countries' => $countries, 'nationwide' => $proposalDetails->getNationwide(), 'geoAreas' => $geoAreas, 'researchDomains' => $researchDomainsArray, 'researchFields' => $researchFieldsArray, 'otherResearchField' => $proposalDetails->getOtherResearchField(), 'withHumanSubjects' => $proposalDetails->getHumanSubjects(), 'proposalTypes' => $proposalTypesArray, 'otherProposalType' => $proposalDetails->getOtherProposalType(), 'dataCollection' => $proposalDetails->getDataCollection(), 'reviewedByOtherErc' => $reviewedByOtherErc, 'otherErcDecision' => $otherErcDecision); // Student research $studentResearch =& $proposalDetails->getStudentResearchInfo(); $studentResearchArray = array('studentInstitution' => $studentResearch->getInstitution(), 'academicDegree' => $studentResearch->getDegree(), 'supervisorName' => $studentResearch->getSupervisorName(), 'supervisorEmail' => $studentResearch->getSupervisorEmail()); // Risk Assessments $riskAssessment =& $article->getRiskAssessment(); $riskAssessmentArray = array('identityRevealed' => $riskAssessment->getIdentityRevealed(), 'unableToConsent' => $riskAssessment->getUnableToConsent(), 'under18' => $riskAssessment->getUnder18(), 'dependentRelationship' => $riskAssessment->getDependentRelationship(), 'ethnicMinority' => $riskAssessment->getEthnicMinority(), 'impairment' => $riskAssessment->getImpairment(), 'pregnant' => $riskAssessment->getPregnant(), 'newTreatment' => $riskAssessment->getNewTreatment(), 'bioSamples' => $riskAssessment->getBioSamples(), 'exportHumanTissue' => $riskAssessment->getExportHumanTissue(), 'exportReason' => $riskAssessment->getExportReason(), 'radiation' => $riskAssessment->getRadiation(), 'distress' => $riskAssessment->getDistress(), 'inducements' => $riskAssessment->getInducements(), 'sensitiveInfo' => $riskAssessment->getSensitiveInfo(), 'reproTechnology' => $riskAssessment->getReproTechnology(), 'genetic' => $riskAssessment->getGenetic(), 'stemCell' => $riskAssessment->getStemCell(), 'biosafety' => $riskAssessment->getBiosafety(), 'riskLevel' => $riskAssessment->getRiskLevel(), 'listRisks' => $riskAssessment->getListRisks(), 'howRisksMinimized' => $riskAssessment->getHowRisksMinimized(), 'risksToTeam' => $riskAssessment->getRisksToTeam(), 'risksToSubjects' => $riskAssessment->getRisksToSubjects(), 'risksToCommunity' => $riskAssessment->getRisksToCommunity(), 'benefitsToParticipants' => $riskAssessment->getBenefitsToParticipants(), 'knowledgeOnCondition' => $riskAssessment->getKnowledgeOnCondition(), 'knowledgeOnDisease' => $riskAssessment->getKnowledgeOnDisease(), 'conflictOfInterest' => $riskAssessment->getConflictOfInterest(), 'multiInstitutions' => $riskAssessment->getMultiInstitutions()); $this->_data = array('authors' => array(), 'abstracts' => array(), 'proposalDetails' => $proposalDetailsArray, 'sources' => array(), 'studentResearch' => $studentResearchArray, 'riskAssessment' => $riskAssessmentArray, 'section' => $sectionDao->getSection($article->getSectionId())); $authors =& $article->getAuthors(); for ($i = 0, $count = count($authors); $i < $count; $i++) { array_push($this->_data['authors'], array('authorId' => $authors[$i]->getId(), 'firstName' => $authors[$i]->getFirstName(), 'middleName' => $authors[$i]->getMiddleName(), 'lastName' => $authors[$i]->getLastName(), 'affiliation' => $authors[$i]->getAffiliation(), 'phone' => $authors[$i]->getPhoneNumber(), 'email' => $authors[$i]->getEmail())); if ($authors[$i]->getPrimaryContact()) { $this->setData('primaryContact', $i); } } $sources =& $article->getSources(); if (empty($sources)) { array_push($sources, new ProposalSource()); } for ($i = 0, $count = count($sources); $i < $count; $i++) { array_push($this->_data['sources'], array('sourceId' => $sources[$i]->getSourceId(), 'institution' => $sources[$i]->getInstitutionId(), 'amount' => $sources[$i]->getSourceAmount())); } $journal = Request::getJournal(); $abstracts =& $article->getAbstracts(); foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { if (isset($abstracts[$localeKey])) { $this->_data['abstracts'][$localeKey] = array('abstractId' => $abstracts[$localeKey]->getAbstractId(), 'scientificTitle' => $abstracts[$localeKey]->getScientificTitle(), 'publicTitle' => $abstracts[$localeKey]->getPublicTitle(), 'background' => $abstracts[$localeKey]->getBackground(), 'objectives' => $abstracts[$localeKey]->getObjectives(), 'studyMethods' => $abstracts[$localeKey]->getStudyMethods(), 'expectedOutcomes' => $abstracts[$localeKey]->getExpectedOutcomes(), 'keywords' => $abstracts[$localeKey]->getKeywords()); } } } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { if (isset($this->article)) { $article =& $this->article; $fundingSources = $article->getArticleFundingSources(); $fundingSourcesArray = array(); if ($fundingSources == null) { $fundingSourcesArray = array(0 => null); } else { foreach ($fundingSources as $fundingSource) { array_push($fundingSourcesArray, array('id' => $fundingSource->getId(), 'institutionId' => $fundingSource->getInstitutionId())); } } $primarySponsor = $article->getArticlePrimarySponsor(); $primarySponsorArray = array(); if ($primarySponsor != null) { $primarySponsorArray = array('id' => $primarySponsor->getId(), 'institutionId' => $primarySponsor->getInstitutionId()); } $secondarySponsors = $article->getArticleSecondarySponsors(); $secondarySponsorsArray = array(); if ($secondarySponsors == null) { $secondarySponsorsArray = array(0 => null); } else { foreach ($secondarySponsors as $secondarySponsor) { array_push($secondarySponsorsArray, array('id' => $secondarySponsor->getId(), 'ssInstitutionId' => $secondarySponsor->getInstitutionId())); } } $articleDetails = $article->getArticleDetails(); $CROs = $article->getArticleCROs(); $CROsArray = array(); if ($CROs == null) { $CROsArray = array(0 => null); } else { foreach ($CROs as $CRO) { $international = $CRO->getInternational(); if ($international == CRO_NATIONAL) { $locationCountry = $CRO->getLocation(); $locationInternational = null; } elseif ($international == CRO_INTERNATIONAL) { $locationCountry = null; $locationInternational = $CRO->getLocation(); } else { $locationCountry = null; $locationInternational = null; } array_push($CROsArray, array('id' => $CRO->getId(), 'croName' => $CRO->getName(), 'croLocation' => $international, 'croLocationCountry' => $locationCountry, 'croLocationInternational' => $locationInternational, 'city' => $CRO->getCity(), 'address' => $CRO->getAddress(), 'primaryPhone' => $CRO->getPrimaryPhone(), 'secondaryPhone' => $CRO->getSecondaryPhone(), 'fax' => $CRO->getFax(), 'email' => $CRO->getEmail())); } } $this->_data = array('fundingSources' => $fundingSourcesArray, 'primarySponsor' => $primarySponsorArray, 'secondarySponsors' => $secondarySponsorsArray, 'croInvolved' => $articleDetails->getCROInvolved(), 'CROs' => $CROsArray); } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { $journal = Request::getJournal(); if (isset($this->article)) { $article =& $this->article; $articleSecIds =& $article->getArticleSecIds(); $articleSecIdsArray = array(); if ($articleSecIds == null) { $articleSecIdsArray = array(0 => array('type' => null, 'id' => null)); } else { foreach ($articleSecIds as $articleSecId) { array_push($articleSecIdsArray, array('articleSecIdId' => $articleSecId->getId(), 'type' => $articleSecId->getType(), 'id' => $articleSecId->getSecId())); } } $articleDetails =& $article->getArticleDetails(); $healthConds = $articleDetails->getHealthCondDiseaseArray(); if ($healthConds == null) { $healthConds = array(0 => array('code' => null, 'exactCode' => null)); } $intSampleSize = $articleDetails->getIntSampleSizeArray(); if ($intSampleSize == null) { $intSampleSize = array(0 => array('country' => null, 'number' => null)); } $articleDetailsArray = array('protocolVersion' => $articleDetails->getProtocolVersion(), 'therapeuticArea' => $articleDetails->getTherapeuticArea(), 'otherTherapeuticArea' => $articleDetails->getOtherTherapeuticArea(), 'healthConds' => $healthConds, 'minAgeNum' => $articleDetails->getMinAgeNum(), 'minAgeUnit' => $articleDetails->getMinAgeUnit(), 'maxAgeNum' => $articleDetails->getMaxAgeNum(), 'maxAgeUnit' => $articleDetails->getMaxAgeUnit(), 'sex' => $articleDetails->getSex(), 'healthy' => $articleDetails->getHealthy(), 'localeSampleSize' => $articleDetails->getLocaleSampleSize(), 'multinational' => $articleDetails->getMultinational(), 'intSampleSize' => $intSampleSize, 'startDate' => $articleDetails->getStartDate(), 'endDate' => $articleDetails->getEndDate(), 'recruitStatus' => $articleDetails->getRecruitmentStatus(), 'adScheme' => $articleDetails->getAdvertisingScheme(), 'compensationPolicy' => $articleDetails->getCompensationPolicy()); $purposes =& $article->getArticlePurposes(); $purposesArray = array(); if ($purposes == null) { $purposesArray = array(0 => array('interventional' => null, 'type' => null, 'ctPhase' => null, 'allocation' => null, 'masking' => null, 'control' => null, 'assignment' => null, 'endpoint' => null)); } else { foreach ($purposes as $purpose) { array_push($purposesArray, array('id' => $purpose->getId(), 'interventional' => $purpose->getInterventional(), 'type' => $purpose->getType(), 'ctPhase' => $purpose->getCTPhase(), 'allocation' => $purpose->getAllocation(), 'masking' => $purpose->getMasking(), 'control' => $purpose->getControl(), 'assignment' => $purpose->getAssignment(), 'endpoint' => $purpose->getEndpoint())); } } $primaryOutcomes = $article->getArticleOutcomesByType(ARTICLE_OUTCOME_PRIMARY); $primaryOutcomesArray = array(); if (empty($primaryOutcomes)) { foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { $primaryOutcomesArray = array(0 => array($localeKey => array('primaryOutcomeId' => null, 'type' => ARTICLE_OUTCOME_PRIMARY, 'name' => null, 'measurement' => null, 'timepoint' => null))); } } else { foreach ($primaryOutcomes as $poKey => $primaryOutcome) { foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { if (isset($primaryOutcome[$localeKey])) { $primaryOutcomesArray[$poKey][$localeKey] = array('primaryOutcomeId' => $primaryOutcome[$localeKey]->getId(), 'type' => ARTICLE_OUTCOME_PRIMARY, 'name' => $primaryOutcome[$localeKey]->getName(), 'measurement' => $primaryOutcome[$localeKey]->getMeasurement(), 'timepoint' => $primaryOutcome[$localeKey]->getTimepoint()); } } } } $secondaryOutcomes = $article->getArticleOutcomesByType(ARTICLE_OUTCOME_SECONDARY); $secondaryOutcomesArray = array(); if (empty($secondaryOutcomes)) { foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { $secondaryOutcomesArray = array(0 => array($localeKey => array('primaryOutcomeId' => null, 'type' => ARTICLE_OUTCOME_SECONDARY, 'name' => null, 'measurement' => null, 'timepoint' => null))); } } else { foreach ($secondaryOutcomes as $soKey => $secondaryOutcome) { foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { if (isset($secondaryOutcome[$localeKey])) { $secondaryOutcomesArray[$soKey][$localeKey] = array('secondaryOutcomeId' => $secondaryOutcome[$localeKey]->getId(), 'type' => ARTICLE_OUTCOME_SECONDARY, 'name' => $secondaryOutcome[$localeKey]->getName(), 'measurement' => $secondaryOutcome[$localeKey]->getMeasurement(), 'timepoint' => $secondaryOutcome[$localeKey]->getTimepoint()); } } } } $this->_data = array('articleTexts' => array(), 'articleDetails' => $articleDetailsArray, 'articleSecIds' => $articleSecIdsArray, 'purposes' => $purposesArray, 'primaryOutcomes' => $primaryOutcomesArray, 'secondaryOutcomes' => $secondaryOutcomesArray); $articleTexts =& $article->getArticleTexts(); foreach ($journal->getSupportedLocaleNames() as $localeKey => $localeValue) { if (isset($articleTexts[$localeKey])) { $this->_data['articleTexts'][$localeKey] = array('articleTextId' => $articleTexts[$localeKey]->getId(), 'scientificTitle' => $articleTexts[$localeKey]->getScientificTitle(), 'publicTitle' => $articleTexts[$localeKey]->getPublicTitle(), 'description' => $articleTexts[$localeKey]->getDescription(), 'keyInclusionCriteria' => $articleTexts[$localeKey]->getKeyInclusionCriteria(), 'keyExclusionCriteria' => $articleTexts[$localeKey]->getKeyExclusionCriteria(), 'recruitmentInfo' => $articleTexts[$localeKey]->getRecruitmentInfo()); } } } return parent::initData(); }
/** * Initialize form data from current article. */ function initData() { $sectionDao =& DAORegistry::getDAO('SectionDAO'); if (isset($this->article)) { $article =& $this->article; $articleDrugs =& $article->getArticleDrugs(); $articleDrugsArray = array(); if ($articleDrugs == null) { $articleDrugsArray = array(0 => array('countries' => array(0 => null), 'manufacturers' => array(0 => null))); } else { foreach ($articleDrugs as $articleDrug) { $manufacturers = $articleDrug->getManufacturers(); $manufacturersArray = array(); if ($manufacturers) { foreach ($manufacturers as $manufacturer) { array_push($manufacturersArray, array('id' => $manufacturer->getId(), 'drugId' => $manufacturer->getDrugId(), 'name' => $manufacturer->getName(), 'address' => $manufacturer->getAddress())); } } array_push($articleDrugsArray, array('id' => $articleDrug->getId(), 'type' => $articleDrug->getType(), 'name' => $articleDrug->getName(), 'brandName' => $articleDrug->getBrandName(), 'administration' => $articleDrug->getAdministration(), 'otherAdministration' => $articleDrug->getOtherAdministration(), 'form' => $articleDrug->getForm(), 'otherForm' => $articleDrug->getOtherForm(), 'strength' => $articleDrug->getStrength(), 'storage' => $articleDrug->getStorage(), 'pharmaClass' => $articleDrug->getPharmaClass(), 'studyClasses' => $articleDrug->getClassesArray(), 'countries' => $articleDrug->getCountriesArray(), 'conditionsOfUse' => $articleDrug->getDifferentConditionsOfUse(), 'cpr' => $articleDrug->getCPR(), 'drugRegistrationNumber' => $articleDrug->getDrugRegistrationNumber(), 'importedQuantity' => $articleDrug->getImportedQuantity(), 'manufacturers' => $manufacturersArray)); } } $this->_data = array('articleDrugs' => $articleDrugsArray); } return parent::initData(); }