From b95f6612783051c15c67bd1985e368245ae76b02 Mon Sep 17 00:00:00 2001 From: gibert Date: Mon, 25 Nov 2024 12:05:37 +0100 Subject: [PATCH] =?UTF-8?q?Remplacement=20des=20guillemets=20dans=20les=20?= =?UTF-8?q?titres=20et=20r=C3=A9sum=C3=A9s=20par=20des=20doubles=20quotes?= =?UTF-8?q?=20(pour=20rendre=20le=20json=20r=C3=A9cup=C3=A9r=C3=A9=20depui?= =?UTF-8?q?s=20kibana=20valide)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../theses_batch_indexation/dto/these/TheseMappee.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/fr/abes/theses_batch_indexation/dto/these/TheseMappee.java b/src/main/java/fr/abes/theses_batch_indexation/dto/these/TheseMappee.java index 4782f49..4aca3ea 100644 --- a/src/main/java/fr/abes/theses_batch_indexation/dto/these/TheseMappee.java +++ b/src/main/java/fr/abes/theses_batch_indexation/dto/these/TheseMappee.java @@ -144,7 +144,7 @@ public TheseMappee(Mets mets, List oaiSets, int idDoc) { log.debug("traitement de titrePrincipal"); try { - titrePrincipal = dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getContent(); + titrePrincipal = dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getContent().replace("\"", "''"); } catch (NullPointerException e) { log.warn("PB pour titrePrincipal de " + nnt + e.getMessage()); } @@ -154,7 +154,7 @@ public TheseMappee(Mets mets, List oaiSets, int idDoc) { if (!dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getLang().isEmpty()) { titres.put( dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getLang(), - dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getContent()); + dmdSec.getMdWrap().getXmlData().getThesisRecord().getTitle().getContent().replace("\"", "''")); } if (dmdSec.getMdWrap().getXmlData().getThesisRecord().getAlternative() != null) { @@ -162,7 +162,7 @@ public TheseMappee(Mets mets, List oaiSets, int idDoc) { while (titreAlternativeIterator.hasNext()) { Alternative a = titreAlternativeIterator.next(); if (!a.getLang().isEmpty()) - titres.put(a.getLang(), a.getContent()); + titres.put(a.getLang(), a.getContent().replace("\"", "''")); } } } catch (NullPointerException e) { @@ -178,7 +178,7 @@ public TheseMappee(Mets mets, List oaiSets, int idDoc) { while (abstractIterator.hasNext()) { Abstract a = abstractIterator.next(); if (!a.getLang().isEmpty()) - resumes.put(a.getLang(), a.getContent()); + resumes.put(a.getLang(), a.getContent().replace("\"", "''")); } } catch (NullPointerException e) { log.warn("PB pour resumes de " + nnt + e.getMessage());