spec.append(allComs[i].getHandle().replace('/', '_')); spec.append("</setSpec>"); String commName = allComs[i].getMetadata("name"); if(commName != null)
String title = com.getMetadata("name"); if (title != null && !"".equals(title)) String dcAbstract = com.getMetadata("short_description"); if (dcAbstract != null && !"".equals(dcAbstract))
String name = community.getMetadata("name"); if (name == null || name.length() == 0)
String name = communities[i].getMetadata("name");
String name = community.getMetadata("name"); if (name == null || name.length() == 0)
String communityName = community.getMetadata("name"); results.setHead(T_head1_community.parameterize(communityName)); } else if (searchScope instanceof Collection) {
/** * Build a Lucene document for a DSpace Community. * * @param community Community to be indexed * @throws SQLException * @throws IOException */ private void buildDocument(Community community) throws SQLException, IOException { // Create Document SolrInputDocument doc = buildDocument(Constants.COMMUNITY, community.getID(), community.getHandle(), null); // and populate it String name = community.getMetadata("name"); if (name != null) { doc.addField("name", name); } //Do any additional indexing, depends on the plugins List<SolrServiceIndexPlugin> solrServiceIndexPlugins = new DSpace().getServiceManager().getServicesByType(SolrServiceIndexPlugin.class); for (SolrServiceIndexPlugin solrServiceIndexPlugin : solrServiceIndexPlugins) { solrServiceIndexPlugin.additionalIndex(community, doc); } writeDocument(doc); }
scope.setOptionSelected("/"); for (Community community : Community.findAllTop(context)) { scope.addOption(community.getHandle(), community.getMetadata("name")); scope.addOption(community.getHandle(), community.getMetadata("name")); scope.setOptionSelected(community.getHandle()); .getAllParents(); for (Community community : communities) { scope.addOption(community.getHandle(), community.getMetadata("name"));
String short_description_error = FlowContainerUtils.checkXMLFragment(thisCommunity.getMetadata("short_description")); String introductory_text_error = FlowContainerUtils.checkXMLFragment(thisCommunity.getMetadata("introductory_text")); String copyright_text_error = FlowContainerUtils.checkXMLFragment(thisCommunity.getMetadata("copyright_text")); String side_bar_text_error = FlowContainerUtils.checkXMLFragment(thisCommunity.getMetadata("side_bar_text")); Text name = metadataList.addItem().addText("name"); name.setSize(40); name.setValue(thisCommunity.getMetadata("name")); short_description.setValue(thisCommunity.getMetadata("short_description")); short_description.setSize(40); if (short_description_error != null) introductory_text.setValue(thisCommunity.getMetadata("introductory_text")); introductory_text.setSize(6, 40); if (introductory_text_error != null) copyright_text.setValue(thisCommunity.getMetadata("copyright_text")); copyright_text.setSize(6, 40); if (copyright_text_error != null) side_bar_text.setValue(thisCommunity.getMetadata("side_bar_text")); side_bar_text.setSize(6, 40); if (side_bar_text_error != null)
for (Community community : Community.findAllTop(context)) scope.addOption(community.getHandle(),community.getMetadata("name")); scope.addOption(community.getHandle(),community.getMetadata("name")); scope.setOptionSelected(community.getHandle()); for (Community community : communities) scope.addOption(community.getHandle(),community.getMetadata("name"));
if (dso instanceof Community) name = ((Community) dso).getMetadata("name");
String name = community.getMetadata("name"); if (name == null || name.length() == 0)
currentCommunity.getMetadata("name")); List containerSubList = null; for (Collection subCols : currentCommunity.getCollections())
public void addBody(Body body) throws WingException, SQLException, AuthorizeException { int communityID = parameters.getParameterAsInteger("communityID", -1); Community thisCommunity = Community.find(context, communityID); // DIVISION: main Division main = body.addInteractiveDivision("community-confirm-delete",contextPath+"/admin/community",Division.METHOD_POST,"primary administrative community"); main.setHead(T_main_head.parameterize(communityID)); main.addPara(T_main_para.parameterize(thisCommunity.getMetadata("name"))); List deleteConfirmHelp = main.addList("consequences",List.TYPE_BULLETED); deleteConfirmHelp.addItem(T_confirm_item1); deleteConfirmHelp.addItem(T_confirm_item2); deleteConfirmHelp.addItem(T_confirm_item3); deleteConfirmHelp.addItem(T_confirm_item4); Para buttonList = main.addPara(); buttonList.addButton("submit_confirm").setValue(T_submit_confirm); buttonList.addButton("submit_cancel").setValue(T_submit_cancel); main.addHidden("administrative-continue").setValue(knot.getId()); } }
String name = community.getMetadata("name"); if (name == null || name.length() == 0)
String communityName = community.getMetadata("name"); results.setHead(T_head1_community.parameterize(communityName));
main.setHead(T_main_head_community.parameterize(com.getMetadata("name"),com.getHandle(),com.getID())); policies = (ArrayList<ResourcePolicy>)AuthorizeManager.getPolicies(context, com);
main.setHead(T_main_head_sub.parameterize(parentCommunity.getMetadata("name")));
main.setHead(T_main_head.parameterize(parentCommunity.getMetadata("name")));
workspace.setTitle(community.getMetadata("name"));