diff --git a/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java b/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java index 1b5f94f525..bb8a775d71 100644 --- a/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java +++ b/code/symphony_export/src/com/turning_leaf_technologies/symphony/SymphonyExportMain.java @@ -811,6 +811,8 @@ private static int updateRecords(Connection dbConn){ //process unzipped files(marcExportPath) File[] exportedMarcDeltaFiles = marcDeltaPath.listFiles((dir, name) -> name.endsWith("mrc") || name.endsWith("marc")); if (exportedMarcDeltaFiles != null && exportedMarcDeltaFiles.length > 0){ + //Sort the files to process by date + Arrays.sort(exportedMarcDeltaFiles, Comparator.comparingLong(File::lastModified)); for (File exportedMarcDeltaFile : exportedMarcDeltaFiles) { if (exportedMarcDeltaFile.lastModified() / 1000 < lastUpdateFromMarc){ if (exportedMarcDeltaFile.delete()){ @@ -826,8 +828,6 @@ private static int updateRecords(Connection dbConn){ } } } - //Sort the files to process by date - Arrays.sort(exportedMarcDeltaFiles, Comparator.comparingLong(File::lastModified)); } if (!filesToProcess.isEmpty()){ diff --git a/code/web/release_notes/26.10.00/DIS-3031.yaml b/code/web/release_notes/26.10.00/DIS-3031.yaml new file mode 100644 index 0000000000..7705d626f9 --- /dev/null +++ b/code/web/release_notes/26.10.00/DIS-3031.yaml @@ -0,0 +1,12 @@ +Jira: DIS-3031 +Type: Bug +Developer: David Dowling (DD) +ContributingOrg: Prairie Lakes Library System +Sponsor: Prairie Lakes Library System +GroveRelease: 26.10.00 +CommunityRelease: 26.11.00 +Component: Symphony ILS +Description: + - Fix improper sorting of Symphony delta import files by last modified time. +NewSettings: +NewPermissions: \ No newline at end of file