/** * From model object to database object */ @Override public void mapAtoB(Work a, MinimizedWorkEntity b, MappingContext context) { //Starting with 3.0_rc2 dissertation will be migrated to dissertation-thesis if(WorkType.DISSERTATION.equals(a.getWorkType())) { b.setWorkType(org.orcid.jaxb.model.common.WorkType.DISSERTATION_THESIS.name()); } else { b.setWorkType(a.getWorkType().name()); } }
/** * From model object to database object */ @Override public void mapAtoB(Work a, WorkEntity b, MappingContext context) { // Starting with 3.0_rc2 dissertation will be migrated to dissertation-thesis if(WorkType.DISSERTATION.equals(a.getWorkType())) { b.setWorkType(org.orcid.jaxb.model.common.WorkType.DISSERTATION_THESIS.name()); } else { b.setWorkType(a.getWorkType().name()); } }
return false; if (this.getWorkType() == null) { if (other.getWorkType() != null) return false; } else if (!this.getWorkType().equals(other.getWorkType())) return false;
public String workToBibtex(Work work, String creditName){ StringBuffer out = new StringBuffer(); switch (work.getWorkType()) { case JOURNAL_ARTICLE: out.append("@article{");
if (work.getWorkType() == null) { Map<String, String> params = new HashMap<String, String>(); String values = Arrays.stream(WorkType.values()).map(element -> element.value()).collect(Collectors.joining(", "));
switch (work.getWorkType()) { case ARTISTIC_PERFORMANCE: break;