MAJ V4.5.0
This commit is contained in:
parent
077e3b9e77
commit
acfc0ca3c4
@ -186,18 +186,20 @@ public class actNewFichierAnalyse extends AbstractAction{
|
|||||||
Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$|^text:s$"); //le node qui peuvent rechercher par le contenu textuel
|
Pattern p = Pattern.compile("^text:p$|^text:h$|^text:span$|^text:list$|^text:list-item$|^text:line-break$|^text:span$|^text:tab$|^text:s$"); //le node qui peuvent rechercher par le contenu textuel
|
||||||
ArrayList<String> listTextesInPage = new ArrayList<String>();
|
ArrayList<String> listTextesInPage = new ArrayList<String>();
|
||||||
for(int i = 0 ; i < nodLaPage.getNodes().size();i++) {
|
for(int i = 0 ; i < nodLaPage.getNodes().size();i++) {
|
||||||
Matcher m = p.matcher(nodLaPage.getNodes().get(i).getNomElt());
|
if(nodLaPage.getNodes().get(i)!=null) {
|
||||||
if(m.find()) {
|
Matcher m = p.matcher(nodLaPage.getNodes().get(i).getNomElt());
|
||||||
String content = nodLaPage.getNodes().get(i).retourneLesContenusEnfants("");
|
if(m.find()) {
|
||||||
if(listTextesInPage.contains(content)) {
|
String content = nodLaPage.getNodes().get(i).retourneLesContenusEnfants("");
|
||||||
nodLaPage.getNodes().get(i).getAttributs().put("isDoublon", "true");
|
if(listTextesInPage.contains(content)) {
|
||||||
}else {
|
nodLaPage.getNodes().get(i).getAttributs().put("isDoublon", "true");
|
||||||
nodLaPage.getNodes().get(i).getAttributs().remove("isDoublon");
|
}else {
|
||||||
listTextesInPage.add(content);
|
nodLaPage.getNodes().get(i).getAttributs().remove("isDoublon");
|
||||||
|
listTextesInPage.add(content);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(nodLaPage.getNodes().get(i).getNodes().size()>0) {
|
||||||
|
placeIsDoublon(nodLaPage.getNodes().get(i));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if(nodLaPage.getNodes().get(i).getNodes().size()>0) {
|
|
||||||
placeIsDoublon(nodLaPage.getNodes().get(i));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user