Bug fix regarding

Task #12286: Align portlet container labels to the new CKAN mapping

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@171250 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-08-30 15:58:50 +00:00
parent ec01c921a2
commit ff0591d494
2 changed files with 6 additions and 6 deletions

View File

@ -413,13 +413,13 @@ public class CkanMetadataManagementPanel extends FlowPanel{
if(mylabelName.compareToIgnoreCase(myDatasets.getText().trim())==0){
myDatasets.setText(MY_PREFIX+translateValue);
return;
}else if(labelName.compareToIgnoreCase(myOrganizations.getText().trim())==0){
//return;
}else if(mylabelName.compareToIgnoreCase(myOrganizations.getText().trim())==0){
myOrganizations.setText(MY_PREFIX+translateValue);
return;
}else if(labelName.compareToIgnoreCase(myGroups.getText().trim())==0){
//return;
}else if(mylabelName.compareToIgnoreCase(myGroups.getText().trim())==0){
myGroups.setText(MY_PREFIX+translateValue);
return;
//return;
}
}

View File

@ -415,7 +415,7 @@ public class GCubeCkanDataCatalogPanel extends BaseViewTemplate {
JSONObject theTranslate = (JSONObject) object.get("translate");
GWT.log("theTranslate is " + object);
for (String key : theTranslate.keySet()) {
GWT.log("theTranslate key " + key);
//GWT.log("theTranslate key " + key);
String value = theTranslate.get(key).isString().stringValue();
printString("Customizing navigation link '" + key +"' with translate: "+value);
managementPanel.customizeLabelAccordingTranslate(key,value);