Skip to content

Commit

Permalink
MODBULKOPS-428 - Apply changes - MARC Bib records with administrative…
Browse files Browse the repository at this point in the history
… data
  • Loading branch information
siarhei-charniak committed Jan 10, 2025
1 parent 3420a1f commit 0b9e214
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import static org.folio.bulkops.domain.dto.FileContentType.COMMITTING_CHANGES_ERROR_FILE;
import static org.folio.bulkops.domain.dto.FileContentType.MATCHED_RECORDS_FILE;
import static org.folio.bulkops.domain.dto.FileContentType.PROPOSED_CHANGES_FILE;
import static org.folio.bulkops.domain.dto.FileContentType.PROPOSED_CHANGES_MARC_FILE;
import static org.folio.bulkops.domain.dto.FileContentType.RECORD_MATCHING_ERROR_FILE;
import static org.folio.bulkops.domain.dto.FileContentType.TRIGGERING_FILE;
import static org.folio.bulkops.util.Constants.CSV_EXTENSION;
Expand Down Expand Up @@ -157,9 +158,9 @@ public ResponseEntity<Resource> downloadFileByOperationId(
} else if (fileContentType == RECORD_MATCHING_ERROR_FILE) {
path = bulkOperation.getLinkToMatchedRecordsErrorsCsvFile();
} else if (fileContentType == PROPOSED_CHANGES_FILE) {
path = INSTANCE_MARC.equals(bulkOperation.getEntityType()) ?
bulkOperation.getLinkToModifiedRecordsMarcFile() :
bulkOperation.getLinkToModifiedRecordsCsvFile();
path = bulkOperation.getLinkToModifiedRecordsCsvFile();
} else if (fileContentType == PROPOSED_CHANGES_MARC_FILE) {
path = bulkOperation.getLinkToModifiedRecordsMarcFile();
} else if (fileContentType == COMMITTED_RECORDS_FILE) {
path = INSTANCE_MARC.equals(bulkOperation.getEntityType()) ?
bulkOperation.getLinkToCommittedRecordsMarcFile() :
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"MATCHED_RECORDS_FILE",
"RECORD_MATCHING_ERROR_FILE",
"PROPOSED_CHANGES_FILE",
"PROPOSED_CHANGES_MARC_FILE",
"COMMITTED_RECORDS_FILE",
"COMMITTING_CHANGES_ERROR_FILE"
]
Expand Down

0 comments on commit 0b9e214

Please sign in to comment.