if (nextAssign == true) {
String target = new String(ch, start, length);
if (nextField.equals("title")) {
if (makeOverwriteChoice(bibEntry.getField(nextField),
target, nextField)) {
UndoableFieldChange fieldChange = new UndoableFieldChange(
bibEntry, nextField, bibEntry.getField(nextField),
target);
citeseerNamedCompound.addEdit(fieldChange);
bibEntry.setField(nextField, target);
}
} else if (nextField.equals("year")) {
if (makeOverwriteChoice(bibEntry.getField(nextField),
String.valueOf(target.substring(0, 4)), nextField)) {
UndoableFieldChange fieldChange = new UndoableFieldChange(
bibEntry, nextField, bibEntry.getField(nextField),
String.valueOf(target.substring(0, 4)));
citeseerNamedCompound.addEdit(fieldChange);
bibEntry.setField(nextField, String.valueOf(target
.substring(0, 4)));
}
} else if (nextField.equals("citeseerurl")) {
if (makeOverwriteChoice(bibEntry.getField(nextField),
target, nextField)) {
UndoableFieldChange fieldChange = new UndoableFieldChange(
bibEntry, nextField, bibEntry.getField(nextField),
target);
citeseerNamedCompound.addEdit(fieldChange);
bibEntry.setField(nextField, target);
}