/** Used only for errors when validating I think... * * @param activeSource * @return */ public static String getSourceName(Source activeSource) { if (activeSource.getSourceName() != null && StringUtils.isEmpty(activeSource.getSourceName().getContent())) return activeSource.getSourceName().getContent(); else return null; }
if (otherName.getSource().getSourceName() != null) { form.setSourceName(otherName.getSource().getSourceName().getContent());
if (extId.getSource().getSourceName() != null) { form.setSourceName(extId.getSource().getSourceName().getContent());
if (address.getSource().getSourceName() != null) { form.setSourceName(address.getSource().getSourceName().getContent());
if (researcherUrl.getSource().getSourceName() != null) { form.setSourceName(researcherUrl.getSource().getSourceName().getContent());
if (keyword.getSource().getSourceName() != null) { form.setSourceName(keyword.getSource().getSourceName().getContent());
private static WorkForm getWorkForm(WorkSummary workSummary) { WorkForm workForm = new WorkForm(); workForm.setPutCode(Text.valueOf(workSummary.getPutCode())); String title = workSummary.getTitle() != null && workSummary.getTitle().getTitle() != null ? workSummary.getTitle().getTitle().getContent() : ""; workForm.setTitle(Text.valueOf(title)); if (workSummary.getJournalTitle() != null) { workForm.setJournalTitle(Text.valueOf(workSummary.getJournalTitle().getContent())); } if (workSummary.getPublicationDate() != null) { workForm.setPublicationDate(getPublicationDate(workSummary.getPublicationDate())); } workForm.setSource(workSummary.getSource().retrieveSourcePath()); if (workSummary.getSource().getSourceName() != null) { workForm.setSourceName(workSummary.getSource().getSourceName().getContent()); } workForm.setWorkType(Text.valueOf(workSummary.getType().value())); workForm.setVisibility(org.orcid.pojo.ajaxForm.Visibility.valueOf(workSummary.getVisibility())); WorkForm.populateExternalIdentifiers(workSummary.getExternalIdentifiers(), workForm, workSummary.getType()); return workForm; }
if(resource.getSource().getSourceName() != null) { researchResource.setSourceName(resource.getSource().getSourceName().getContent());
if(researchResourceSummary.getSource().getSourceName() != null) { researchResource.setSourceName(researchResourceSummary.getSource().getSourceName().getContent());
peerReviewForm.setCreatedDate(getCreatedDate(peerReviewSummary.getCreatedDate().getValue())); peerReviewForm.setSource(peerReviewSummary.getSource().getSourceName().getContent()); peerReviewForm.setSourceName(peerReviewSummary.getSource().getSourceName().getContent());
if (source != null) { result.setSource(source.retrieveSourcePath()); if (source.getSourceName() != null) { result.setSourceName(source.getSourceName().getContent());
if (source != null) { form.setSource(source.retrieveSourcePath()); if (source.getSourceName() != null) { form.setSourceName(source.getSourceName().getContent());
if (source != null) { form.setSource(source.retrieveSourcePath()); if (source.getSourceName() != null) { form.setSourceName(source.getSourceName().getContent());
if (source != null) { funding.setSource(source.retrieveSourcePath()); if (source.getSourceName() != null) { funding.setSourceName(source.getSourceName().getContent());
if(work.getSource().getSourceName() != null) { w.setSourceName(work.getSource().getSourceName().getContent());
if(peerReview.getSource().getSourceName() != null) form.setSourceName(peerReview.getSource().getSourceName().getContent());