Skip to content

Commit

Permalink
Merge pull request #128 from abes-esr/develop
Browse files Browse the repository at this point in the history
Remplacement des guillemets dans les titres et résumés par des double…
  • Loading branch information
julg authored Nov 25, 2024
2 parents 59be260 + b95f661 commit 52bea13
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public TheseMappee(Mets mets, List<Set> 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());
}
Expand All @@ -154,15 +154,15 @@ public TheseMappee(Mets mets, List<Set> 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) {
Iterator<Alternative> titreAlternativeIterator = dmdSec.getMdWrap().getXmlData().getThesisRecord().getAlternative().iterator();
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) {
Expand All @@ -178,7 +178,7 @@ public TheseMappee(Mets mets, List<Set> 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());
Expand Down

0 comments on commit 52bea13

Please sign in to comment.