Revision 57875
Added by Katerina Iatropoulou over 4 years ago
modules/uoa-search/trunk/src/main/java/eu/dnetlib/data/search/web/api/CSVResponseFormat.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.data.search.web.api; |
2 | 2 |
|
3 | 3 |
import eu.dnetlib.data.search.web.utils.RequestResponseHandler; |
4 |
import org.apache.log4j.Logger; |
|
4 | 5 |
|
5 | 6 |
/** |
6 | 7 |
* Created by kiatrop on 20/12/2016. |
... | ... | |
16 | 17 |
//TODO SPECIAL |
17 | 18 |
public static final String result_special = "Title,Authors,Publication Year,DOI,Download from,Type,Journal,Funder,Project Name (GA Number),Access\n"; |
18 | 19 |
|
20 |
private static Logger logger = Logger.getLogger(CSVResponseFormat.class); |
|
19 | 21 |
|
22 |
|
|
20 | 23 |
public static final String response = "%s%s"; |
21 | 24 |
|
22 | 25 |
public static String appendTitle(RequestResponseHandler.Entity entity, boolean special) { |
... | ... | |
32 | 35 |
} else if (entity.equals(RequestResponseHandler.Entity.PROJECT)) { |
33 | 36 |
return project; |
34 | 37 |
|
35 |
} else if (entity.equals(RequestResponseHandler.Entity.PUBLICATION) || entity.equals(RequestResponseHandler.Entity.DATASET)) { |
|
38 |
} else if (entity.equals(RequestResponseHandler.Entity.PUBLICATION) || entity.equals(RequestResponseHandler.Entity.DATASET) |
|
39 |
||entity.equals(RequestResponseHandler.Entity.SOFTWARE) || entity.equals(RequestResponseHandler.Entity.OTHER)) { |
|
36 | 40 |
if (special) { |
37 | 41 |
return result_special; |
38 | 42 |
} |
modules/uoa-search/trunk/pom.xml | ||
---|---|---|
9 | 9 |
<groupId>eu.dnetlib</groupId> |
10 | 10 |
<artifactId>uoa-search</artifactId> |
11 | 11 |
<packaging>jar</packaging> |
12 |
<version>3.5.6-SNAPSHOT</version>
|
|
12 |
<version>3.5.7-SNAPSHOT</version>
|
|
13 | 13 |
<scm> |
14 | 14 |
<developerConnection>scm:svn:https://svn.driver.research-infrastructures.eu/driver/dnet45/modules/uoa-search/trunk</developerConnection> |
15 | 15 |
</scm> |
Also available in: Unified diff
Added titles in other and citation csv reports