descBuf.append("title: "); descBuf.append(title); descBuf.append(" "); } DCValue[] authors = dspaceItem.getDC("contributor", "author", Item.ANY); if (authors.length > 0) { descBuf.append("authors: "); for (int i = 0; i < authors.length; i++)
String field = st.nextToken().trim(); boolean isDate = false;   if (field.indexOf("(date)") > 0)
    private com.sun.syndication.feed.rss.Item itemFromDSpaceItem(Context context,    		                                                     Item dspaceItem)    	throws SQLException    {        com.sun.syndication.feed.rss.Item rssItem =         	new com.sun.syndication.feed.rss.Item();            	String itHandle = ConfigurationManager.getBooleanProperty("webui.feed.localresolve")		? HandleManager.resolveToURL(context, dspaceItem.getHandle())		: HandleManager.getCanonicalForm(dspaceItem.getHandle());        rssItem.setLink(itHandle);            	String title = getDC(dspaceItem, "title", null, Item.ANY);    	if (title == null)    	{    		title = "no_title";    	}        rssItem.setTitle(title);        // We put some metadata in the description field. This field is        // displayed by most RSS viewers        StringBuffer descBuf = new StringBuffer();        if ( ! "no_title".equals(title) )        {        	descBuf.append("title: ");        	descBuf.append(title);        	descBuf.append(" ");        }        DCValue[] authors = dspaceItem.getDC("contributor", "author", Item.ANY);        if (authors.length > 0)        {        	descBuf.append("authors: ");            for (int i = 0; i < authors.length; i++)            {            	descBuf.append(authors[i].value);            	if (i < authors.length - 1)            	{            		descBuf.append("; ");            	}            }            descBuf.append("\n<br>");        }        DCValue[] editors = dspaceItem.getDC("contributor", "editor", Item.ANY);        if (editors.length > 0)        {        	descBuf.append("editors: ");            for (int i = 0; i < editors.length; i++)            {            	descBuf.append(editors[i].value);            	if (i < editors.length - 1)            	{            		descBuf.append("; ");            	}            }            descBuf.append("\n<br>");        }        String abstr = getDC(dspaceItem, "description", "abstract", Item.ANY);        if (abstr != null)        {        	descBuf.append("abstract: ");        	descBuf.append(abstr);        	descBuf.append("\n<br>");        }        String desc = getDC(dspaceItem, "description", null, Item.ANY);        if (desc != null)        {        	descBuf.append("description: ");        	descBuf.append(desc);        	descBuf.append("\n<br>");        }        Description descrip = new Description();        descrip.setValue(descBuf.toString());        rssItem.setDescription(descrip);                    String dcDate = getDC(dspaceItem, "date", "issued", Item.ANY);        if (dcDate == null)        {        	dcDate = getDC(dspaceItem, "date", Item.ANY, Item.ANY);        }        if (dcDate != null)        {        	rssItem.setPubDate((new DCDate(dcDate)).toDate());        }        return rssItem;    }