Skip to content

Commit

Permalink
other typo for coords; exclude p
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Dec 21, 2023
1 parent 4423079 commit 6eaa6f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 + "\"");
}
}
}
Expand All @@ -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 + "\"");
}
}
}
Expand Down Expand Up @@ -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 + "\"");
}
}
}
Expand All @@ -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 + "\"");
}
}
}
Expand Down Expand Up @@ -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 + "\"");
}
}
}
Expand All @@ -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 + "\"");
}
}
}
Expand Down Expand Up @@ -3791,7 +3791,7 @@ private void appendAffiliation(
List<LayoutToken> 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");
Expand Down
2 changes: 1 addition & 1 deletion grobid-service/src/main/resources/web/grobid/grobid.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6eaa6f4

Please sign in to comment.