typeDisplayText.append(tName);
typeDisplayText.append("</span>");
} else {
typeDisplayText.append(translate("cif.type.na"));
}
type = new StaticHTMLTextElement("cif.type", typeDisplayText.toString(), 255);
addFormElement("cif_type", type);
RepositoryHandler handler = null;
if (typeName != null) handler = RepositoryHandlerFactory.getInstance().getRepositoryHandler(typeName);
canCopy = new CheckBoxElement("cif.canCopy", entry.getCanCopy());
if (enableAuthorView)
addFormElement("cif_canCopy", canCopy);
canReference = new CheckBoxElement("cif.canReference", entry.getCanReference());
if (enableAuthorView)
addFormElement("cif_canReference", canReference);
if (handler != null && handler.supportsLaunch()) {
canLaunch = new CheckBoxElement("cif.canLaunch", entry.getCanLaunch());
addFormElement("cif_canLaunch", canLaunch);
} else { // launch not supported
canLaunch = null;
addFormElement("cif_canLaunch", new StaticHTMLTextElement("cif.canLaunch", translate("cif.canLaunch.na"), 255));
}
if (handler != null && handler.supportsDownload()) {
canDownload = new CheckBoxElement("cif.canDownload", entry.getCanDownload());
addFormElement("cif_canDownload", canDownload);
} else { // download not supported
canDownload = null;
addFormElement("cif_canDownload", new StaticHTMLTextElement("cif.canDownload", translate("cif.canDownload.na"), 255));
}
if (enableAuthorView) {
String[] keys = new String[] {
"" + RepositoryEntry.ACC_OWNERS,