private Map<String, Object> getDetails(ItemSubmissionLookupDTO item,
Context context)
{
List<String> fieldOrder = getFieldOrder();
Record totalData = item.getTotalPublication(service.getProviders());
Set<String> availableFields = totalData.getFields();
List<String[]> fieldsLabels = new ArrayList<String[]>();
for (String f : fieldOrder)
{
if (availableFields.contains(f))
{
try
{
if (totalData.getValues(f)!=null && totalData.getValues(f).size()>0)
fieldsLabels.add(new String[] {f, I18nUtil.getMessage("jsp.submission-lookup.detail."+ f, context) });
}
catch (MissingResourceException e)
{
fieldsLabels.add(new String[] { f, f });
}
}
}
Map<String, Object> data = new HashMap<String, Object>();
String uuid = item.getUUID();
Record pub = item.getTotalPublication(service.getProviders());
Map<String, List<String>> publication1 = new HashMap<String, List<String>>();
for (String field : pub.getFields())
{
publication1
.put(field, SubmissionLookupUtils.getValues(pub, field));
}