String name = collection.getMetadata("name"); if (name == null || name.length() == 0)
String name = collection.getMetadata("name"); if (name == null || name.length() == 0)
String name = collections[i].getMetadata("name");
String title = col.getMetadata("name"); String dcAbstract = col.getMetadata("short_description");
name = ((Collection) dso).getMetadata("name"); String collectionName = ((Collection) collectionNode.getDSO()).getMetadata("name"); String collectionUrl = contextPath + "/handle/"+collectionNode.getDSO().getHandle(); subList.addItemXref(collectionUrl, collectionName);
public DSpaceObject getDepositTarget(Deposit deposit) throws DSpaceSWORDException, SWORDErrorException { SWORDUrlManager urlManager = swordService.getUrlManager(); Context context = swordService.getContext(); // get the target collection String loc = deposit.getLocation(); DSpaceObject dso = urlManager.getDSpaceObject(context, loc); swordService.message("Performing deposit using location: " + loc); if (dso instanceof Collection) { swordService.message("Location resolves to collection with handle: " + dso.getHandle() + " and name: " + ((Collection) dso).getMetadata("name")); } else if (dso instanceof Item) { swordService.message("Location resolves to item with handle: " + dso.getHandle()); } return dso; }
out.print(collections[i].getHandle()); out.print("\">"); out.print(collections[i].getMetadata("name")); out.print("</a><br/>");
/** * Build a Lucene document for a DSpace Collection. * * @param collection Collection to be indexed * @throws SQLException sql exception * @throws IOException IO exception */ private void buildDocument(Collection collection) throws SQLException, IOException { List<String> locations = getCollectionLocations(collection); // Create Lucene Document SolrInputDocument doc = buildDocument(Constants.COLLECTION, collection.getID(), collection.getHandle(), locations); // and populate it String name = collection.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(collection, doc); } writeDocument(doc); }
for (Collection collection : collections) String name = collection.getMetadata("name"); if (name.length() > 50)
String name = collection.getMetadata("name"); if (name == null || name.length() == 0)
String collectionName = workflowItem.getCollection().getMetadata("name"); Message state = getWorkflowStateMessage(workflowItem);
+ currentCommunity.getID()); String name = subCols.getMetadata("name"); if (name == null || name.length() == 0)
scope.addOption(collection.getHandle(), collection.getMetadata("name")); scope.addOption(collection.getHandle(), collection.getMetadata("name")); scope.setOptionSelected(collection.getHandle());
public void addBody(Body body) throws WingException, SQLException, AuthorizeException { int collectionID = parameters.getParameterAsInteger("collectionID", -1); Collection thisCollection = Collection.find(context, collectionID); // DIVISION: main Division main = body.addInteractiveDivision("collection-confirm-delete",contextPath+"/admin/collection",Division.METHOD_POST,"primary administrative collection"); main.setHead(T_main_head.parameterize(collectionID)); main.addPara(T_main_para.parameterize(thisCollection.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); 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()); } }
scope.addOption(collection.getHandle(),collection.getMetadata("name")); scope.addOption(collection.getHandle(),collection.getMetadata("name")); scope.setOptionSelected(collection.getHandle());
String name = collection.getMetadata("name"); if (name.length() > 50)
String collectionName = workflowItem.getCollection().getMetadata("name"); java.util.List<PoolTask> pooltasks = PoolTask.find(context,workflowItem); java.util.List<ClaimedTask> claimedtasks = ClaimedTask.find(context, workflowItem);
main.setHead(T_main_head.parameterize(thisCollection.getMetadata("name")));
div.setHead(T_head1); div.addPara(T_para1.parameterize(collection.getMetadata("name")));
for (Collection collection : Collection.findAll(context)) collectionsSelect.addOption(false, collection.getID(), collection.getMetadata("name"));