Skip to content

Commit

Permalink
MODSOURMAN-1122: Additional check added. (#850)
Browse files Browse the repository at this point in the history
* MODSOURMAN-1122: Additional check added.

* MODSOURMAN-1122: FAT fixed.

* MODSOURMAN-1122: Extra check removed.
  • Loading branch information
VRohach authored Feb 1, 2024
1 parent 717c808 commit 2d8bb00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* [MODSOURMAN-1108](https://issues.folio.org/browse/MODSOURMAN-1108) MARC authority record is not created when use Job profile with match profile and action only on no-match branch
* [MODSOURMAN-1106](https://issues.folio.org/browse/MODSOURMAN-1106) The status of Instance is '-' in the Import log after uploading file. The numbers of updated SRS and Instance are not displayed in the Summary table.
* [MODSOURMAN-1063](https://issues.folio.org/browse/MODSOURMAN-1063) Update RecordProcessingLogDto to contain incoming record id
* [MODSOURMAN-1122](https://issues.folio.org/browse/MODSOURMAN-1122) Add additional check for the childSnapshotWrappers

## 2023-10-13 v3.7.0
* [MODSOURMAN-1045](https://issues.folio.org/browse/MODSOURMAN-1045) Allow create action with non-matches for instance without match profile
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import io.vertx.sqlclient.RowSet;
import io.vertx.sqlclient.SqlResult;
import io.vertx.sqlclient.Tuple;
import org.apache.commons.lang.StringUtils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.folio.dao.util.JournalRecordsColumns;
Expand Down Expand Up @@ -292,13 +293,15 @@ private List<JournalRecord> mapResultSetToJournalRecordsList(RowSet<Row> resultS
}

private JournalRecord mapRowToJournalRecord(Row row) {
String entityType = row.getString(ENTITY_TYPE);
EntityType resultedEntityType = StringUtils.isNotBlank(entityType) ? EntityType.valueOf(entityType) : null;
return new JournalRecord()
.withId(row.getValue(ID).toString())
.withJobExecutionId(row.getValue(JOB_EXECUTION_ID).toString())
.withSourceId(row.getValue(SOURCE_ID).toString())
.withSourceRecordOrder(row.getInteger(SOURCE_RECORD_ORDER))
.withTitle(row.getString(TITLE))
.withEntityType(EntityType.valueOf(row.getString(ENTITY_TYPE)))
.withEntityType(resultedEntityType)
.withEntityId(row.getString(ENTITY_ID))
.withInstanceId(row.getString(INSTANCE_ID))
.withHoldingsId(row.getString(HOLDINGS_ID))
Expand Down

0 comments on commit 2d8bb00

Please sign in to comment.