1 package net.sf.jabref.export.layout.format;
3 import net.sf.jabref.export.layout.LayoutFormatter;
6 * Used to fix [ 1588028 ] export HTML table doi url.
8 * Will prepend "http://dx.doi.org/" if only doi number and not a URL is given.
10 * @author $Author: coezbek $
11 * @version $Revision: 1807 $ ($Date: 2006-11-12 03:42:42 +0100 (Sun, 12 Nov 2006) $)
14 public class DOICheck implements LayoutFormatter {
16 public String format(String fieldText) {
18 if (fieldText == null){
22 fieldText = fieldText.trim();
24 if (fieldText.length() == 0){
28 if (fieldText.startsWith("10")){
29 return "http://dx.doi.org/" + fieldText;