minor fix for description

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@152413 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-08-02 10:33:25 +00:00
parent 359f2fbddd
commit 131a78e989
2 changed files with 10 additions and 2 deletions

View File

@ -179,7 +179,11 @@ public class GrsfPublisherFisheryService {
if(id != null){
logger.info("Created record with identifier " + id);
String description = "Short Name: " + record.getShortName() + ", GRSF Semantic Identifier: " + record.getFisheryId();
String description = "Short Name: " + record.getShortName();
if(sourceInPath.equals(Sources.GRSF))
description += ", GRSF Semantic Identifier: " + record.getFisheryId();
CommonServiceUtils.actionsPostCreateOrUpdate(
id, futureName, record, apiKey, username, organization,
null, responseBean, catalogue, namespaces, groups, context, token, futureTitle, authorFullname,

View File

@ -193,7 +193,11 @@ public class GrsfPublisherStockService {
if(id != null){
logger.info("Product created! Id is " + id);
String description = "Short Name: " + record.getShortName() + ", GRSF Semantic Identifier: " + record.getStockId();
String description = "Short Name: " + record.getShortName();
if(sourceInPath.equals(Sources.GRSF))
description += ", GRSF Semantic Identifier: " + record.getStockId();
CommonServiceUtils.actionsPostCreateOrUpdate(
id, futureName, record, apiKey, username, organization, null,
responseBean, catalogue, namespaces, groups, context, token,