@@ -1259,24 +1259,30 @@ public boolean compare(Object obj) {
12591259 if (citation == null && other .citation .getCitation () != null && StringUtils .isNotBlank (other .citation .getCitation ().getValue ())) {
12601260 return false ;
12611261 }
1262- } else if (citation .getCitation () != null && other .citation .getCitation () != null && !compareTexts (citation .getCitation (), other .citation .getCitation (), false ))
1262+ } else if (
1263+ citation .getCitation () != null && other .citation .getCitation () != null && !compareTexts (citation .getCitation (), other .citation .getCitation (), false ) ||
1264+ citation .getCitationType () != null && other .citation .getCitationType () != null && !compareTexts (citation .getCitationType (), other .citation .getCitationType (), false )
1265+ )
12631266 return false ;
12641267 }
12651268 if (!isEachObjectNull (translatedTitle , other .translatedTitle )) {
12661269 if (isAnyObjectNotNull (translatedTitle , other .translatedTitle )) {
12671270 if (translatedTitle == null && StringUtils .isNotBlank (other .translatedTitle .getContent ())) {
12681271 return false ;
12691272 }
1270- } else if (other .translatedTitle .getContent () != null && !translatedTitle .getContent ().equals (other .translatedTitle .getContent ()))
1273+ } else if (
1274+ other .translatedTitle .getContent () != null && !translatedTitle .getContent ().equals (other .translatedTitle .getContent ()) ||
1275+ other .translatedTitle .getLanguageCode () != null && !translatedTitle .getLanguageCode ().equals (other .translatedTitle .getLanguageCode ())
1276+ )
12711277 return false ;
12721278 }
12731279 if (!isEachObjectNull (publicationDate , other .publicationDate )) {
12741280 if (isAnyObjectNotNull (publicationDate , other .publicationDate )) {
12751281 if (publicationDate == null && StringUtils .isNotBlank (other .publicationDate .getYear ()))
12761282 return false ;
12771283 } else if (
1278- !compareStrings (publicationDate .getYear (), other .publicationDate .getYear ()) &&
1279- !compareStrings (publicationDate .getMonth (), other .publicationDate .getMonth ()) &&
1284+ !compareStrings (publicationDate .getYear (), other .publicationDate .getYear ()) ||
1285+ !compareStrings (publicationDate .getMonth (), other .publicationDate .getMonth ()) ||
12801286 !compareStrings (publicationDate .getDay (), other .publicationDate .getDay ())
12811287 )
12821288 return false ;
0 commit comments