diff --git a/grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java b/grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java index cba7339326..a6ef634103 100755 --- a/grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java +++ b/grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java @@ -2263,7 +2263,7 @@ public String toTEI(int n, int indent, GrobidAnalysisConfig config) { if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -2276,7 +2276,7 @@ public String toTEI(int n, int indent, GrobidAnalysisConfig config) { if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -2426,7 +2426,7 @@ else if (bookTitle == null) { if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -2450,7 +2450,7 @@ else if (bookTitle == null) { if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -2682,7 +2682,7 @@ else if (this.getYear().length() == 4) if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -2709,7 +2709,7 @@ else if (this.getYear().length() == 4) if (titleTokens != null && titleTokens.size()>0) { String coords = LayoutTokensUtil.getCoordsString(titleTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } } @@ -3791,7 +3791,7 @@ private void appendAffiliation( List affTokens = aff.getLayoutTokens(); String coords = LayoutTokensUtil.getCoordsString(affTokens); if (coords != null && coords.length()>0) { - tei.append(" coord=\"" + coords + "\""); + tei.append(" coords=\"" + coords + "\""); } } tei.append(">\n"); diff --git a/grobid-service/src/main/resources/web/grobid/grobid.js b/grobid-service/src/main/resources/web/grobid/grobid.js index aaf89ca926..a879790c27 100644 --- a/grobid-service/src/main/resources/web/grobid/grobid.js +++ b/grobid-service/src/main/resources/web/grobid/grobid.js @@ -13,7 +13,7 @@ var grobid = (function($) { var block = 0; - var elementCoords = ['p', 's', 'biblStruct', 'persName', 'figure', 'formula', 'head', 'note', 'title']; + var elementCoords = ['s', 'biblStruct', 'persName', 'figure', 'formula', 'head', 'note', 'title']; function defineBaseURL(ext) { var baseUrl = null;