Adding support for "FAO SDG 14.4.1 Questionnaire" source
This commit is contained in:
parent
dbad160e36
commit
c28f0dcd65
|
@ -1,4 +1,5 @@
|
|||
eclipse.preferences.version=1
|
||||
encoding//src/main/java=UTF-8
|
||||
encoding//src/main/resources=UTF-8
|
||||
encoding//src/test/java=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
|
|
|
@ -51,7 +51,7 @@ import eu.trentorise.opendata.jackan.model.CkanDataset;
|
|||
* @author Costantino Perciante (ISTI - CNR)
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path("{source:firms|FIRMS|grsf|GRSF|FishSource|fishsource}/fishery/")
|
||||
@Path("{source:firms|FIRMS|grsf|GRSF|FishSource|fishsource|sdg14.4.1|SDG14.4.1}/fishery/")
|
||||
public class GrsfPublisherFisheryService {
|
||||
|
||||
// the context
|
||||
|
|
|
@ -51,7 +51,7 @@ import eu.trentorise.opendata.jackan.model.CkanDataset;
|
|||
* @author Costantino Perciante (ISTI - CNR)
|
||||
* @author Luca Frosini (ISTI - CNR)
|
||||
*/
|
||||
@Path("{source:firms|FIRMS|ram|RAM|grsf|GRSF|FishSource|fishsource}/stock/")
|
||||
@Path("{source:firms|FIRMS|ram|RAM|grsf|GRSF|FishSource|fishsource|sdg14.4.1|SDG14.4.1}/stock/")
|
||||
public class GrsfPublisherStockService {
|
||||
|
||||
// the context
|
||||
|
|
|
@ -4,7 +4,6 @@ import java.beans.PropertyDescriptor;
|
|||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
@ -266,7 +265,7 @@ public class CommonServiceUtils {
|
|||
if(match) {
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
if(prependSource) {
|
||||
stringBuffer.append(source.toString());
|
||||
stringBuffer.append(source.getURLPath());
|
||||
stringBuffer.append(" ");
|
||||
}
|
||||
if(groupNameOverValue.isEmpty()) {
|
||||
|
@ -289,7 +288,7 @@ public class CommonServiceUtils {
|
|||
*/
|
||||
private static void addRecordToGroups(Set<String> groups, Set<String> sourcesList, Product_Type productType, Sources sourceInPath) {
|
||||
if(sourceInPath == Sources.GRSF) {
|
||||
groups.add(getGroupId(Sources.GRSF.getOrigName())); // i.e. grsf_group
|
||||
groups.add(getGroupId(Sources.GRSF.getURLPath())); // i.e. grsf_group
|
||||
}else {
|
||||
groups.add(getGroupId(Constants.SYSTEM_TYPE_LEGACY_RECORD)); // i.e. legacy_group
|
||||
}
|
||||
|
@ -543,7 +542,7 @@ public class CommonServiceUtils {
|
|||
if(databaseSources!=null) {
|
||||
for(Resource<Sources> source : databaseSources) {
|
||||
Sources sourceName = source.getName();
|
||||
sourcesList.add(sourceName.getOrigName().toLowerCase());
|
||||
sourcesList.add(sourceName.getURLPath());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -719,6 +718,6 @@ public class CommonServiceUtils {
|
|||
return Constants.GRSF_PRE_ORGANIZATION_NAME;
|
||||
}
|
||||
}else
|
||||
return sourceInPath.getOrigName().toLowerCase();
|
||||
return sourceInPath.getURLPath();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue