Skip to content

Commit

Permalink
Merge pull request #154 from folio-org/MODBULKOPS-172_upd
Browse files Browse the repository at this point in the history
MODBULKOPS-172: Update Item record column names. upd
  • Loading branch information
DmytroBykov1 authored Dec 22, 2023
2 parents 247fb9b + 58422f5 commit fb2ac7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/folio/bulkops/service/NoteTableUpdater.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,12 @@ public void extendTableWithHoldingsNotesTypes(UnifiedTable unifiedTable) {
public void extendTableWithItemNotesTypes(UnifiedTable unifiedTable) {
var noteTypeNames = itemReferenceService.getAllItemNoteTypes().stream()
.map(NoteType::getName)
.map(this::concatNotePostfixIfRequired)
.sorted()
.toList();

extendHeadersWithItemNoteTypeNames(ITEM_NOTE_POSITION, unifiedTable.getHeader(), noteTypeNames);
var noteTypeNamesWithPostfix = noteTypeNames.stream().map(this::concatNotePostfixIfRequired).toList();

extendHeadersWithItemNoteTypeNames(ITEM_NOTE_POSITION, unifiedTable.getHeader(), noteTypeNamesWithPostfix);
unifiedTable.getRows().forEach(row -> extendRowWithNotesData(ITEM_NOTE_POSITION, row, noteTypeNames));
}

Expand Down

0 comments on commit fb2ac7f

Please sign in to comment.