@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(); }
info.getStoreNumber()).append("\n"); buf.append(msg("description")).append(" = ").append( info.getUserFormatDescription()).append("\n"); buf.append("----------------------------------------------- \n\n"); osw.write(buf.toString());
newBitstream.setSource(context, bitstream.getSource()); newBitstream.setUserFormatDescription(context, bitstream .getUserFormatDescription()); bitstreamService.update(context, newBitstream);
validityKey.append(bitstream.getChecksumAlgorithm()); validityKey.append(bitstream.getSize()); validityKey.append(bitstream.getUserFormatDescription()); validityKey.append(bitstream.getFormat().getDescription());
.getID() : "-1")); LOG.info(msg("user-format-description") + ": " + bitstream.getUserFormatDescription()); LOG.info(msg("source") + ": " + bitstream.getSource()); LOG
dc.add(makeDC("description", null, bsDesc)); String bsUfmt = bitstream.getUserFormatDescription(); if (bsUfmt != null) { dc.add(makeDC("format", null, bsUfmt));
userFormat.setLabel(T_format_user); userFormat.setHelp(T_format_user_help); userFormat.setValue(bitstream.getUserFormatDescription());
userFormat.setLabel(T_user_label); userFormat.setHelp(T_user_help); userFormat.setValue(bitstream.getUserFormatDescription());