description format fixed
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@162450 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
5d5789d12f
commit
49cc94dd93
|
@ -211,7 +211,7 @@ public class GrsfPublisherFisheryService {
|
||||||
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
||||||
|
|
||||||
if(sourceInPath.equals(Sources.GRSF))
|
if(sourceInPath.equals(Sources.GRSF))
|
||||||
description += ", " + Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getFisheryId() + "\n";
|
description += Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getFisheryId() + "\n";
|
||||||
|
|
||||||
CommonServiceUtils.actionsPostCreateOrUpdate(
|
CommonServiceUtils.actionsPostCreateOrUpdate(
|
||||||
id, futureName, record, apiKey, username, organization,
|
id, futureName, record, apiKey, username, organization,
|
||||||
|
@ -529,7 +529,7 @@ public class GrsfPublisherFisheryService {
|
||||||
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
||||||
|
|
||||||
if(sourceInPath.equals(Sources.GRSF))
|
if(sourceInPath.equals(Sources.GRSF))
|
||||||
description += ", " + Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getFisheryId() + "\n";
|
description += Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getFisheryId() + "\n";
|
||||||
|
|
||||||
CommonServiceUtils.actionsPostCreateOrUpdate(
|
CommonServiceUtils.actionsPostCreateOrUpdate(
|
||||||
id, name, record, apiKey, username, organization,
|
id, name, record, apiKey, username, organization,
|
||||||
|
|
|
@ -210,7 +210,7 @@ public class GrsfPublisherStockService {
|
||||||
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
||||||
|
|
||||||
if(sourceInPath.equals(Sources.GRSF))
|
if(sourceInPath.equals(Sources.GRSF))
|
||||||
description += ", " + Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getStockId() + "\n";
|
description += Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getStockId() + "\n";
|
||||||
|
|
||||||
CommonServiceUtils.actionsPostCreateOrUpdate(
|
CommonServiceUtils.actionsPostCreateOrUpdate(
|
||||||
id, futureName, record, apiKey, username, organization, null,
|
id, futureName, record, apiKey, username, organization, null,
|
||||||
|
@ -526,7 +526,7 @@ public class GrsfPublisherStockService {
|
||||||
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
String description = Constants.SHORT_NAME_CUSTOM_KEY + ": " + record.getShortName() + "\n";
|
||||||
|
|
||||||
if(sourceInPath.equals(Sources.GRSF))
|
if(sourceInPath.equals(Sources.GRSF))
|
||||||
description += ", " + Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getStockId() + "\n";
|
description += Constants.GRSF_SEMANTIC_IDENTIFIER_CUSTOM_KEY + ": " + record.getStockId() + "\n";
|
||||||
CommonServiceUtils.actionsPostCreateOrUpdate(
|
CommonServiceUtils.actionsPostCreateOrUpdate(
|
||||||
recordPublished.getId(), name, record, apiKey, username, organization, itemUrl,
|
recordPublished.getId(), name, record, apiKey, username, organization, itemUrl,
|
||||||
responseBean, catalogue, namespaces, groups, context, token,
|
responseBean, catalogue, namespaces, groups, context, token,
|
||||||
|
|
|
@ -534,7 +534,7 @@ public class CommonServiceUtils {
|
||||||
}
|
}
|
||||||
|
|
||||||
// update description anyway
|
// update description anyway
|
||||||
description += ", Record URL: " + itemUrl;
|
description += "Record URL: " + itemUrl;
|
||||||
JSONObject obj = new JSONObject();
|
JSONObject obj = new JSONObject();
|
||||||
obj.put("notes", description);
|
obj.put("notes", description);
|
||||||
catalogue.patchProductWithJSON(datasetId, obj, apiKey);
|
catalogue.patchProductWithJSON(datasetId, obj, apiKey);
|
||||||
|
|
Loading…
Reference in New Issue