Skip to content

Commit

Permalink
update interface
Browse files Browse the repository at this point in the history
  • Loading branch information
lfoppiano committed Sep 22, 2024
1 parent fb611ae commit fa28ec7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions grobid-service/src/main/resources/web/grobid/grobid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1450,6 +1450,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processHeaderDocument');
}
else if (selected == 'processFulltextDocument') {
Expand All @@ -1461,6 +1462,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').show();
$('#segmentSentencesBlock').show();
$('#teiCoordinatesBlock').show();
$('#flavorBlock').show();
setBaseUrl('processFulltextDocument');
}
else if (selected == 'processDate') {
Expand All @@ -1472,6 +1474,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processDate');
}
else if (selected == 'processHeaderNames') {
Expand All @@ -1483,6 +1486,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processHeaderNames');
}
else if (selected == 'processCitationNames') {
Expand All @@ -1494,6 +1498,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processCitationNames');
}
else if (selected == 'processReferences') {
Expand All @@ -1505,6 +1510,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').show();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processReferences');
}
else if (selected == 'processAffiliations') {
Expand All @@ -1516,6 +1522,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processAffiliations');
}
else if (selected == 'processCitation') {
Expand All @@ -1527,6 +1534,7 @@ var grobid = (function($) {
$('#includeRawCitationsBlock').hide();
$('#segmentSentencesBlock').hide();
$('#teiCoordinatesBlock').hide();
$('#flavorBlock').hide();
setBaseUrl('processCitation');
}
/*else if (selected == 'processCitationPatentTEI') {
Expand Down
10 changes: 8 additions & 2 deletions grobid-service/src/main/resources/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,14 @@ <h2>
<input type="checkbox" id="teiCoordinates" name="teiCoordinates" value="ref">Add coordinates</input>
</label>
</td>
<td>
</td>
<td class="checkbox" id="flavorBlock" style="display: inherit;">
Flavor:
<select id="flavor" name="flavor">
<option value="" selected>No flavor</option>
<option value="article/light" >Light</option>
<option value="article/light-ref">Light with references</option>
</select>
</td>
</tr>
</table>
</div>
Expand Down

0 comments on commit fa28ec7

Please sign in to comment.