You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: orcid-core/src/main/java/org/orcid/core/manager/v3/impl/WorkManagerImpl.java
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -365,6 +365,7 @@ public Work updateWork(String orcid, Work work, boolean isApiRequest) {
365
365
366
366
if (Features.STOP_SENDING_NOTIFICATION_WORK_NOT_UPDATED.isActive()) {
367
367
if (workFormSaved.compare(WorkForm.valueOf(work, maxContributorsForUI))) {
368
+
LOGGER.info("There is no changes in the work with putCode " + work.getPutCode() + " send it by " + getSourceName(sourceManager.retrieveActiveSource()));
368
369
returnworkSaved;
369
370
}
370
371
}
@@ -556,6 +557,7 @@ public Work updateWork(String orcid, WorkForm workForm) {
556
557
557
558
if (Features.STOP_SENDING_NOTIFICATION_WORK_NOT_UPDATED.isActive()) {
558
559
if (workFormSaved.compare(workForm)) {
560
+
LOGGER.info("There is no changes in the work with putCode " + work.getPutCode() + " send it by " + getSourceName(sourceManager.retrieveActiveSource()));
for (inti = 0; i < rolesAndSequences.size() ; i++) {
64
+
if (rolesAndSequences.get(i).getContributorRole() != null && other.rolesAndSequences.get(i).getContributorRole() != null) {
65
+
if (!WorkForm.compareStrings(rolesAndSequences.get(i).getContributorRole(), contributorUtils.getCreditRole(roleConverter.toRoleValue(other.rolesAndSequences.get(i).getContributorRole())))) {
66
+
isDifferent.set(true);
67
+
break;
68
+
}
69
+
}
70
+
if (WorkForm.isAnyObjectNotNull(rolesAndSequences.get(i).getContributorRole(), other.rolesAndSequences.get(i).getContributorRole())) {
71
+
isDifferent.set(true);
72
+
break;
73
+
}
74
+
if (rolesAndSequences.get(i).getContributorSequence() != null && other.rolesAndSequences.get(i).getContributorSequence() != null) {
75
+
if (!rolesAndSequences.get(i).getContributorSequence().equals(other.rolesAndSequences.get(i).getContributorSequence())) {
76
+
isDifferent.set(true);
77
+
break;
78
+
}
79
+
}
80
+
if (WorkForm.isAnyObjectNotNull(rolesAndSequences.get(i).getContributorSequence(), other.rolesAndSequences.get(i).getContributorSequence())) {
0 commit comments