comparison flys-client/src/main/java/de/intevation/flys/client/server/ArtifactDescriptionFactory.java @ 37:b6b89ff1adee

Read i18n strings from DESCRIBE document and display those values in the UI. flys-client/trunk@1469 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Mon, 14 Mar 2011 16:35:32 +0000
parents bf84bcd4e11b
children a2923d63f530
comparison
equal deleted inserted replaced
36:3cacc9d2dd01 37:b6b89ff1adee
86 System.out.println("ArtifactDescriptionFactory - extractCurrentData()"); 86 System.out.println("ArtifactDescriptionFactory - extractCurrentData()");
87 87
88 Node data = ClientProtocolUtils.getSelectNode(dynamicNode); 88 Node data = ClientProtocolUtils.getSelectNode(dynamicNode);
89 NodeList choices = ClientProtocolUtils.getItemNodes(data); 89 NodeList choices = ClientProtocolUtils.getItemNodes(data);
90 String label = ClientProtocolUtils.getLabel(data); 90 String label = ClientProtocolUtils.getLabel(data);
91 String name = XMLUtils.xpathString(
92 data, "@art:name", ArtifactNamespaceContext.INSTANCE);
91 93
92 DataItem[] dataItems = extractCurrentDataItems(choices); 94 DataItem[] dataItems = extractCurrentDataItems(choices);
93 String uiProvider = extractUIProvider(data); 95 String uiProvider = extractUIProvider(data);
94 96
95 return new DefaultData(label, null, null, dataItems, uiProvider); 97 return new DefaultData(name, label, null, dataItems, uiProvider);
96 } 98 }
97 99
98 100
99 /** 101 /**
100 * This method extract the {@link DataItem}s of the DESCRIBE document. 102 * This method extract the {@link DataItem}s of the DESCRIBE document.

http://dive4elements.wald.intevation.org