catch (DCInputsReaderException se)
{
throw new UIException(se);
}
MetadataAuthorityManager mam = MetadataAuthorityManager.getManager();
DCInput[] inputs = inputSet.getPageRows(getPage()-1, submission.hasMultipleTitles(), submission.isPublishedBefore());
for (DCInput input : inputs)
{
// If the input is invisible in this scope, then skip it.
String scope = submissionInfo.isInWorkflow() ? DCInput.WORKFLOW_SCOPE : DCInput.SUBMISSION_SCOPE;
if (!input.isVisible(scope) && !input.isReadOnly(scope))
{
continue;
}
String inputType = input.getInputType();
String pairsName = input.getPairsType();
Metadatum[] values;
if (inputType.equals("qualdrop_value"))
{
values = submission.getItem().getMetadata(input.getSchema(), input.getElement(), Item.ANY, Item.ANY);
}
else
{
values = submission.getItem().getMetadata(input.getSchema(), input.getElement(), input.getQualifier(), Item.ANY);
}
if (values != null && values.length > 0)
{
for (Metadatum value : values)
{
String displayValue = null;
if (inputType.equals("date"))
{
DCDate date = new DCDate(value.value);
displayValue = date.toString();
}
else if (inputType.equals("dropdown"))
{
displayValue = input.getDisplayString(pairsName,value.value);
}
else if (inputType.equals("qualdrop_value"))
{
String qualifier = value.qualifier;
String displayQual = input.getDisplayString(pairsName,qualifier);
if (displayQual!=null && displayQual.length()>0)
{
displayValue = displayQual + ":" + value.value;
}
}
else
{
displayValue = value.value;
}
// Only display this field if we have a value to display
if (displayValue!=null && displayValue.length()>0)
{
describeSection.addLabel(input.getLabel());
if (mam.isAuthorityControlled(value.schema, value.element, value.qualifier))
{
String confidence = (value.authority != null && value.authority.length() > 0) ?
Choices.getConfidenceText(value.confidence).toLowerCase() :
"blank";
org.dspace.app.xmlui.wing.element.Item authItem =