Skip to content

Commit

Permalink
Merge pull request #1181 from annelhote/master
Browse files Browse the repository at this point in the history
Add includeRawCopyrights in the UI
  • Loading branch information
lfoppiano authored Oct 30, 2024
2 parents be44579 + 769cbdd commit 3d098ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public StringBuilder toTEIHeader(BiblioItem biblio,
if (config.getIncludeRawCopyrights() && biblio.getCopyright() != null && biblio.getCopyright().length()>0) {
tei.append("\t\t\t\t\t<p type=\"raw\">");
tei.append(TextUtilities.HTMLEncode(biblio.getCopyright()));
tei.append("</note>\n");
tei.append("</p>\n");
}

tei.append("\t\t\t\t</availability>\n");
Expand All @@ -315,7 +315,7 @@ public StringBuilder toTEIHeader(BiblioItem biblio,
if (config.getIncludeRawCopyrights() && biblio.getCopyright() != null && biblio.getCopyright().length()>0) {
tei.append("\t\t\t\t\t<p type=\"raw\">");
tei.append(TextUtilities.HTMLEncode(biblio.getCopyright()));
tei.append("</note>\n");
tei.append("</p>\n");
}

tei.append("\t\t\t\t</availability>\n");
Expand Down
3 changes: 3 additions & 0 deletions grobid-service/src/main/resources/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,9 @@ <h2>
</label>
</td>
<td>
<label class="checkbox" id="includeRawCopyrightsBlock" style="display: inherit;">
<input type="checkbox" id="includeRawCopyrights" name="includeRawCopyrights" value="1">Include raw copyrights</input>
</label>
</td>
</tr>
<tr>
Expand Down

0 comments on commit 3d098ea

Please sign in to comment.