addSubmissionProgressList(div);
List form = div.addList("submit-initial-questions", List.TYPE_FORM);
form.setHead(T_head);
CheckBox multipleTitles = form.addItem().addCheckBox("multiple_titles");
multipleTitles.setLabel(T_multiple_titles);
multipleTitles.setHelp(T_multiple_titles_help);
multipleTitles.addOption("true");
if (submission.hasMultipleTitles())
{
multipleTitles.setOptionSelected("true");
}
// If any titles would be removed if the user unselected this box then
// warn the user!
if (titles.length > 0)
{
org.dspace.app.xmlui.wing.element.Item note = form.addItem();
note.addHighlight("bold").addContent(T_important_note);
note.addContent(T_multiple_titles_note);
for (int i=0; i< titles.length; i++)
{
if (i > 0)
{
note.addContent(T_separator);
}
note.addContent("\"");
note.addHighlight("bold").addContent(titles[i].value);
note.addContent("\"");
}
}
CheckBox publishedBefore = form.addItem().addCheckBox("published_before");
publishedBefore.setLabel(T_published_before);
publishedBefore.setHelp(T_published_before_help);
publishedBefore.addOption("true");
if (submission.isPublishedBefore())
{
publishedBefore.setOptionSelected("true");
}
// If any metadata would be removed if the user unselected the box then warn
// the user about what will be removed.
if (dateIssued.length > 0 || citation.length > 0 || publisher.length > 0)