Subversion Repositories eFlore/Applications.del

Rev

Rev 2095 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2095 Rev 2135
Line 139... Line 139...
139
				
139
				
140
				@Override
140
				@Override
141
				public void onClick(ClickEvent event) {
141
				public void onClick(ClickEvent event) {
142
					Config config = new Config();
142
					Config config = new Config();
-
 
143
					String efloreUrlFicheTpl = config.getUrl("efloreTaxon");
-
 
144
					// découpage pseudo-intelligent du nom de référentiel
-
 
145
					String refFmt;
-
 
146
					int positionDeuxPoints = referentiel.indexOf(':');
-
 
147
					if (positionDeuxPoints == -1) {
-
 
148
						refFmt = referentiel;
-
 
149
					} else {
-
 
150
						refFmt = referentiel.substring(0, positionDeuxPoints);
143
					String efloreUrlFicheTpl = config.getUrl("efloreTaxon");
151
					}
144
					String efloreUrlFiche = efloreUrlFicheTpl.replaceAll("referentiel-nn-num_nom", referentiel.substring(0,5)+"-nn-"+nn);
152
					String efloreUrlFiche = efloreUrlFicheTpl.replaceAll("referentiel-nn-num_nom", refFmt+"-nn-"+nn);
145
					Window.open(efloreUrlFiche, "Fiche eflore", config.getInfo("popupOptions"));
153
					Window.open(efloreUrlFiche, "Fiche eflore", config.getInfo("popupOptions"));
146
				}
154
				}
147
			});
155
			});