ref 10705: Add user name to algorithms descriptions in SAI publication
https://support.d4science.org/issues/10705 Added git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/statistical-algorithms-importer@162284 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8dc54356f0
commit
f221d8eb98
|
@ -286,39 +286,39 @@ public class AlgorithmGenerator {
|
|||
if (serviceCredentials.getUserName() != null && !serviceCredentials.getUserName().isEmpty()) {
|
||||
if (serviceCredentials.getFullName() != null && !serviceCredentials.getFullName().isEmpty()) {
|
||||
algorithmDescription = project.getInputData().getProjectInfo().getAlgorithmDescription()
|
||||
+ "[Published by " + serviceCredentials.getFullName() + "("
|
||||
+ " [Published by " + serviceCredentials.getFullName() + " ("
|
||||
+ serviceCredentials.getUserName() + ") on " + sdf.format(Calendar.getInstance().getTime())
|
||||
+ "]";
|
||||
} else {
|
||||
algorithmDescription = project.getInputData().getProjectInfo().getAlgorithmDescription()
|
||||
+ "[Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
+ " [Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
}
|
||||
} else {
|
||||
if (serviceCredentials.getFullName() != null && !serviceCredentials.getFullName().isEmpty()) {
|
||||
algorithmDescription = project.getInputData().getProjectInfo().getAlgorithmDescription()
|
||||
+ "[Published by " + serviceCredentials.getFullName() + " on "
|
||||
+ " [Published by " + serviceCredentials.getFullName() + " on "
|
||||
+ sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
} else {
|
||||
algorithmDescription = project.getInputData().getProjectInfo().getAlgorithmDescription()
|
||||
+ "[Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
+ " [Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
if (serviceCredentials.getUserName() != null && !serviceCredentials.getUserName().isEmpty()) {
|
||||
if (serviceCredentials.getFullName() != null && !serviceCredentials.getFullName().isEmpty()) {
|
||||
algorithmDescription = "[Published by " + serviceCredentials.getFullName() + "("
|
||||
algorithmDescription = " [Published by " + serviceCredentials.getFullName() + " ("
|
||||
+ serviceCredentials.getUserName() + ") on " + sdf.format(Calendar.getInstance().getTime())
|
||||
+ "]";
|
||||
} else {
|
||||
algorithmDescription = "[Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
algorithmDescription = " [Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
}
|
||||
} else {
|
||||
if (serviceCredentials.getFullName() != null && !serviceCredentials.getFullName().isEmpty()) {
|
||||
algorithmDescription = "[Published by " + serviceCredentials.getFullName() + " on "
|
||||
algorithmDescription = " [Published by " + serviceCredentials.getFullName() + " on "
|
||||
+ sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
} else {
|
||||
algorithmDescription = "[Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
algorithmDescription = " [Published on " + sdf.format(Calendar.getInstance().getTime()) + "]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue