Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
kermitt2 committed Dec 21, 2023
2 parents c776e3c + 4b77e73 commit a9b6826
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions grobid-core/src/main/java/org/grobid/core/data/BiblioItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -2266,7 +2266,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 @@ -2279,7 +2279,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 @@ -2429,7 +2429,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 @@ -2453,7 +2453,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 @@ -2685,7 +2685,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 @@ -2712,7 +2712,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
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public StringBuilder toTEIHeader(BiblioItem biblio,
if (titleTokens != null && titleTokens.size()>0) {
String coords = LayoutTokensUtil.getCoordsString(titleTokens);
if (coords != null) {
tei.append(" coord=\"" + coords + "\"");
tei.append(" coords=\"" + coords + "\"");
}
}
}
Expand Down Expand Up @@ -394,7 +394,7 @@ else if (biblio.getE_Year().length() == 4)
if (titleTokens != null && titleTokens.size()>0) {
String coords = LayoutTokensUtil.getCoordsString(titleTokens);
if (coords != null) {
tei.append(" coord=\"" + coords + "\"");
tei.append(" coords=\"" + coords + "\"");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public void processFullText(final GrobidMainArgs pGbdArgs) throws Exception {
} else {
List<String> elementCoordinates = null;
if (pGbdArgs.getTeiCoordinates()) {
elementCoordinates = Arrays.asList("figure", "persName", "ref", "biblStruct", "formula", "s", "note", "affiliation");
elementCoordinates = Arrays.asList("figure", "persName", "ref", "biblStruct", "formula", "s", "note", "title", "head", "affiliation");
}
processFullTextDirectory(files, pGbdArgs, pGbdArgs.getPath2Output(), pGbdArgs.getSaveAssets(),
elementCoordinates, pGbdArgs.getSegmentSentences(), pGbdArgs.getAddElementId());
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 = ['s', 'biblStruct', 'persName', 'figure', 'formula', 'head', 'note', 'affiliation'];
var elementCoords = ['s', 'biblStruct', 'persName', 'figure', 'formula', 'head', 'note', 'title', 'affiliation'];

function defineBaseURL(ext) {
var baseUrl = null;
Expand Down

0 comments on commit a9b6826

Please sign in to comment.