change label "other information" to "metadata"

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/speciesdiscovery@85596 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2013-11-18 11:48:06 +00:00
parent 46e4be0a67
commit c51f6ef716
3 changed files with 13 additions and 6 deletions

View File

@ -133,7 +133,7 @@ public class TablesForTaxonomyRow {
contentPanel.add(new Html("<p style=\"font-size:11px; margin-top:10px;\"><b>Status and Synonyms</b></p>"));
contentPanel.add(getStatusAndSynonyms(taxon, dataSource));
contentPanel.add(new Html("<p style=\"font-size:11px; margin-top:10px;\"><b>Other Information</b></p"));
contentPanel.add(new Html("<p style=\"font-size:11px; margin-top:10px;\"><b>Metadata</b></p"));
// HorizontalPanel hp = new HorizontalPanel();

View File

@ -306,7 +306,7 @@ public class TaxonomyRowDetailsFiller implements DetailsFiller {
tables.setParents(lightTaxonomy.getParents());
panelDetails.add(new Html("<p style=\"font-size:11px; margin-top:10px;\"><b>Other Information</b></p>"));
panelDetails.add(new Html("<p style=\"font-size:11px; margin-top:10px;\"><b>Metadata</b></p>"));
final LayoutContainer lcRRTables = new LayoutContainer();
lcRRTables.setStyleAttribute("width", "99%");

View File

@ -12,6 +12,8 @@ import java.sql.Statement;
import java.util.HashMap;
import java.util.Map;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;
@ -33,7 +35,7 @@ public class DBTester {
public static void main(String[] a) throws Exception {
/*
Class.forName("org.h2.Driver");
Connection conn = DriverManager.getConnection("jdbc:h2:/home/francesco-mangiacrapa/Portal-Bundle2.2/tomcat-6.0.29/persistence/h2dbspecies/h2testusergcubedevsec;create=true", "","");
// add application code here
@ -60,8 +62,9 @@ public class DBTester {
System.out.println("\n\n");
}
conn.close();
*/
// testJdbcDataSource();
testJdbcDataSource();
}
@ -70,8 +73,12 @@ public class DBTester {
JdbcDataSource ds = new JdbcDataSource();
ds.setURL("jdbc:h2:/home/francesco-mangiacrapa/Portal-Bundle2.2/tomcat-6.0.29/persistence/h2dbspecies/h2testusergcubedevsec;create=true");
// Context ctx = new InitialContext();
// ctx.bind("jdbc/h2testusergcubedevsec/TaxonomyRow.class", ds);
Context ctx = new InitialContext();
ctx.bind("java:global/jpa-eclipselink/TaxonomyRow", ds);
// final Context context = EJBContainer.createEJBContainer(p).getContext();
//
// Movies movies = (Movies) context.lookup("java:global/jpa-eclipselink/Movies");
try {
Connection conn = ds.getConnection();
ResultSet rs = conn.createStatement().executeQuery("select * from TaxonomyRow");