out.append(",\ntitle={"+escapeStringForBibtex((work.getWorkTitle() != null) ? work.getWorkTitle().getTitle().getContent() : "No Title")+"}"); out.append(",\njournal={"+escapeStringForBibtex(work.getJournalTitle().getContent())+"}");
public void validateWork(Work work, SourceEntity sourceEntity, boolean createFlag, boolean isApiRequest, Visibility originalVisibility) { WorkTitle title = work.getWorkTitle(); if (title == null || title.getTitle() == null || PojoUtil.isEmpty(title.getTitle().getContent())) { throw new ActivityTitleValidationException();
public void validateFunding(Funding funding, SourceEntity sourceEntity, boolean createFlag, boolean isApiRequest, Visibility originalVisibility) { FundingTitle title = funding.getTitle(); if (title == null || title.getTitle() == null || StringUtils.isEmpty(title.getTitle().getContent())) { throw new ActivityTitleValidationException();
builder.title((work.getWorkTitle() != null) ? StringUtils.stripAccents(work.getWorkTitle().getTitle().getContent()) : "No Title"); String doi = extractID(work, WorkExternalIdentifierType.DOI); String url = extractID(work, WorkExternalIdentifierType.URI); builder.containerTitle(StringUtils.stripAccents(work.getJournalTitle().getContent()));
SchemaOrgAffiliation a = createOrg( e.getFundingSummary().get(0).getOrganization().getName(), e.getFundingSummary().get(0).getTitle().getTitle().getContent(), e.getFundingSummary().get(0).getOrganization().getDisambiguatedOrganization().getDisambiguationSource(), e.getFundingSummary().get(0).getOrganization().getDisambiguatedOrganization().getDisambiguatedOrganizationIdentifier(), SchemaOrgWork sw = new SchemaOrgWork(); if (wg.getWorkSummary().get(0) != null && wg.getWorkSummary().get(0).getTitle() != null && wg.getWorkSummary().get(0).getTitle().getTitle() != null) sw.name = wg.getWorkSummary().get(0).getTitle().getTitle().getContent();