Project

General

Profile

« Previous | Next » 

Revision 36983

Added by Eri Katsari over 9 years ago

View differences:

modules/dnet-openaire-stats/trunk/src/main/java/eu/dnetlib/data/mapreduce/hbase/statsExport/utils/FundingParser.java
49 49

  
50 50
        return  ENCLOSED  + "STARTS HERE" +buff +"ENDS HERE" + ENCLOSED + DELIM;
51 51

  
52
        if (buff.isEmpty()) {
53
            return ENCLOSED  + NULL_STRING  + ENCLOSED + DELIM;
52
  //      if (buff.isEmpty()) {
53
//            return ENCLOSED  + NULL_STRING  + ENCLOSED + DELIM;
54 54

  
55
        }
55
    //    }
56 56

  
57
        if (!buff.contains("<funder>")) {
58
            return ENCLOSED  + NULL_STRING  + ENCLOSED + DELIM;
59
        }
57
      //  if (!buff.contains("<funder>")) {
58
        //    return ENCLOSED  + NULL_STRING  + ENCLOSED + DELIM;
59
        //}
60 60

  
61 61

  
62
        String[] split = buff.split("<funder>");
63
        String funder = split[1];
64

  
65
        split = funder.split("<name>");
66

  
67
        funder = split[1];
68

  
69
        funder = funder.substring(0, funder.indexOf("</name>"));
70
        log.info("Funder" + funder);
71

  
72
        return ENCLOSED + funder + ENCLOSED + DELIM;
62
//        String[] split = buff.split("<funder>");
63
//        String funder = split[1];
64
//
65
//        split = funder.split("<name>");
66
//
67
//        funder = split[1];
68
//
69
//        funder = funder.substring(0, funder.indexOf("</name>"));
70
//        log.info("Funder" + funder);
71
//
72
//        return ENCLOSED + funder + ENCLOSED + DELIM;
73 73
    }
74 74

  
75 75
    public String getNULL_STRING() {

Also available in: Unified diff