From 944419f4a59e4ec233aad68a88562d6df83b44b9 Mon Sep 17 00:00:00 2001 From: matthew-a-dunlap Date: Mon, 30 Apr 2018 17:10:18 -0400 Subject: [PATCH] Fix file version display object naming bug #4343 This is prelim work before adding prov to the page --- .../harvard/iq/dataverse/FileVersionDifference.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/FileVersionDifference.java b/src/main/java/edu/harvard/iq/dataverse/FileVersionDifference.java index 44af21ba72e..af06aa88f42 100644 --- a/src/main/java/edu/harvard/iq/dataverse/FileVersionDifference.java +++ b/src/main/java/edu/harvard/iq/dataverse/FileVersionDifference.java @@ -74,6 +74,8 @@ private void compareMetadata(FileMetadata newFileMetadata, FileMetadata original ResourceBundle.getBundle("Bundle").getString("file.versionDifferences.fileNameDetailTitle"), 0, 1, 0, 0); } } + + //Description differences if ( originalFileMetadata != null) { if (newFileMetadata.getDescription() != null && originalFileMetadata.getDescription() != null @@ -166,14 +168,14 @@ private void compareMetadata(FileMetadata newFileMetadata, FileMetadata original } } - private void updateDifferenceSummary(String groupLabel, String itemLabel, int changed, int added, int deleted, int replaced) { - updateDifferenceSummary(groupLabel, itemLabel, changed, added, deleted, replaced, false); + private void updateDifferenceSummary(String groupLabel, String itemLabel, int added, int changed, int deleted, int replaced) { + updateDifferenceSummary(groupLabel, itemLabel, added, changed, deleted, replaced, false); } - private void updateDifferenceSummary(String groupLabel, String itemLabel, int changed, int added, int deleted, int replaced, boolean multiple) { + private void updateDifferenceSummary(String groupLabel, String itemLabel, int added, int changed, int deleted, int replaced, boolean multiple) { FileDifferenceSummaryGroup summaryGroup = new FileDifferenceSummaryGroup(groupLabel); - FileDifferenceSummaryItem summaryItem = new FileDifferenceSummaryItem(itemLabel, changed, added, deleted, replaced, multiple); + FileDifferenceSummaryItem summaryItem = new FileDifferenceSummaryItem(itemLabel, added, changed, deleted, replaced, multiple); if (!this.differenceSummaryGroups.contains(summaryGroup)) { summaryGroup.getFileDifferenceSummaryItems().add(summaryItem);