Source:
private void createTable(Division main, VersionHistory history, boolean isItemView, Item item) throws WingException, SQLException { Boolean isVisible = new DSpace().getConfigurationService().getPropertyAsType("versioning.item.history.include.submitter", Boolean.FALSE); boolean isAdmin = authorizeService.isAdmin(context,item.getOwningCollection()); if(isAdmin) { isVisible = true; } Table table = main.addTable("versionhistory", 1, 1); Row header = table.addRow(Row.ROLE_HEADER); if(!isItemView) { header.addCell().addContent(""); } header.addCell().addContent(T_column1); header.addCell().addContent(T_column2); if(isVisible) { header.addCell().addContent(T_column3); } header.addCell().addContent(T_column4); header.addCell().addContent(T_column5); if(!isItemView) { header.addCell().addContent(T_column6); } if(history != null) { for(Version version : versioningService.getVersionsByHistory(context, history)) { if(isItemInSubmission(version.getItem())) { continue; } Row row = table.addRow(null, Row.ROLE_DATA,"metadata-value"); if(!isItemView) { CheckBox remove = row.addCell().addCheckBox("remove"); remove.setLabel("remove"); remove.addOption(version.getId()); } row.addCell().addContent(version.getVersionNumber()); addItemIdentifier(row.addCell(), item, version); if(isVisible) { EPerson editor = version.getEPerson(); row.addCell().addXref("mailto:" + editor.getEmail(), editor.getFullName()); } row.addCell().addContent(new DCDate(version.getVersionDate()).toString()); row.addCell().addContent(version.getSummary()); if(!isItemView) { row.addCell().addXref(contextPath + "/item/versionhistory?versioning-continue=" + knot.getId() + "&versionID=" + version.getId() + "&itemID=" + version.getItem().getID() + "&submit_update", T_submit_update); } } } }

Target:
private void createTable(Division main, VersionHistory history, boolean isItemView, Item item) throws WingException, SQLException { Boolean isVisible = DSpaceServicesFactory.getInstance().getConfigurationService().getBooleanProperty("versioning.item.history.include.submitter", Boolean.FALSE); boolean isAdmin = authorizeService.isAdmin(context,item.getOwningCollection()); if(isAdmin) { isVisible = true; } Table table = main.addTable("versionhistory", 1, 1); Row header = table.addRow(Row.ROLE_HEADER); if(!isItemView) { header.addCell().addContent(""); } header.addCell().addContent(T_column1); header.addCell().addContent(T_column2); if(isVisible) { header.addCell().addContent(T_column3); } header.addCell().addContent(T_column4); header.addCell().addContent(T_column5); if(!isItemView) { header.addCell().addContent(T_column6); } if(history != null) { for(Version version : versioningService.getVersionsByHistory(context, history)) { if(isItemInSubmission(version.getItem())) { continue; } Row row = table.addRow(null, Row.ROLE_DATA,"metadata-value"); if(!isItemView) { CheckBox remove = row.addCell().addCheckBox("remove"); remove.setLabel("remove"); remove.addOption(version.getId()); } row.addCell().addContent(version.getVersionNumber()); addItemIdentifier(row.addCell(), item, version); if(isVisible) { EPerson editor = version.getEPerson(); row.addCell().addXref("mailto:" + editor.getEmail(), editor.getFullName()); } row.addCell().addContent(new DCDate(version.getVersionDate()).toString()); row.addCell().addContent(version.getSummary()); if(!isItemView) { row.addCell().addXref(contextPath + "/item/versionhistory?versioning-continue=" + knot.getId() + "&versionID=" + version.getId() + "&itemID=" + version.getItem().getID() + "&submit_update", T_submit_update); } } } }