@Override public String getFormatDescription(Context context, Bitstream bitstream) throws SQLException { if (bitstream.getFormat(context).getShortDescription().equals("Unknown")) { // Get user description if there is one String desc = bitstream.getUserFormatDescription(); if (desc == null) { return "Unknown"; } return desc; } // not null or Unknown return bitstream.getFormat(context).getShortDescription(); }
@Override protected void performItem(Item item) throws SQLException, IOException { for (Bundle bundle : item.getBundles()) { for (Bitstream bs : bundle.getBitstreams()) { String fmt = bs.getFormat(Curator.curationContext()).getShortDescription(); Integer count = fmtTable.get(fmt); if (count == null) { count = 1; } else { count += 1; } fmtTable.put(fmt, count); } } }
(pluginName != null ? FILTER_PLUGIN_SEPARATOR + pluginName : "")); if (fmts.contains(myBitstream.getFormat(context).getShortDescription())) { try { if (descriptions != null) { for (String desc : descriptions) { if (desc.equalsIgnoreCase(myBitstream.getFormat(context).getShortDescription())) { applyFilter = true;
dc.add(makeDC("format", "medium", bsf.getShortDescription())); dc.add(makeDC("format", "mimetype", bsf.getMIMEType())); dc.add(makeDC("format", "supportlevel", bitstreamFormatService.getSupportLevelText(bsf)));
String name = format.getShortDescription();
if (bitstreamFormat != null) format = bitstreamFormat.getShortDescription();
String format = bitstreamFormat.getShortDescription(); Message support = ReviewStep.T_unknown; if (bitstreamFormat.getSupportLevel() == BitstreamFormat.KNOWN)
nameValue = format.getShortDescription();
BitstreamFormat bitstreamFormat = bitstream.getFormat(); if (bitstreamFormat != null) { format = bitstreamFormat.getShortDescription();
edit.addItem(guessedFormat.getShortDescription()); String name = bitstreamFormat.getShortDescription()+" ("+supportLevel+")"; int id = bitstreamFormat.getID();
String name = format.getShortDescription(); int supportLevel = format.getSupportLevel(); boolean internal = format.isInternal();
String name = bitstreamFormat.getShortDescription()+" ("+supportLevel+")"; if (bitstreamFormat.isInternal())