Revision 45491
Added by Katerina Iatropoulou over 7 years ago
CSVResponseFormat.java | ||
---|---|---|
13 | 13 |
public static final String project = "Title,Funder,Start Date,End Date,Participants\n"; |
14 | 14 |
public static final String result = "Title,Authors,Publication Year,DOI,Funder|Project Name (GA Number),Access\n"; |
15 | 15 |
|
16 |
//TODO SPECIAL |
|
17 |
public static final String result_special = "Title,Authors,Publication Year,DOI,Download from,Publication Type,Journal,Funder,Project Name (GA Number),Access\n"; |
|
18 |
|
|
19 |
|
|
16 | 20 |
public static final String response = "%s%s"; |
17 | 21 |
|
18 |
public static String appendTitle(RequestResponseHandler.Entity entity) { |
|
22 |
public static String appendTitle(RequestResponseHandler.Entity entity, boolean special) {
|
|
19 | 23 |
if(entity.equals(RequestResponseHandler.Entity.ORGANIZATION)) { |
20 | 24 |
return organization; |
21 | 25 |
|
... | ... | |
29 | 33 |
return project; |
30 | 34 |
|
31 | 35 |
} else if (entity.equals(RequestResponseHandler.Entity.PUBLICATION) || entity.equals(RequestResponseHandler.Entity.DATASET)) { |
36 |
if (special) { |
|
37 |
return result_special; |
|
38 |
} |
|
39 |
|
|
32 | 40 |
return result; |
33 | 41 |
} |
34 | 42 |
|
Also available in: Unified diff
Last csv refinements - replacing " with \' for titles