Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ RUN apt-get update && \

WORKDIR /opt/grobid-source

RUN git clone --depth 1 --branch master https://github.com/kermitt2/grobid-quantities.git ./grobid-quantities && \
RUN git clone --depth 1 --branch 0.7.2-fixes https://github.com/kermitt2/grobid-quantities.git ./grobid-quantities && \
cd grobid-quantities

WORKDIR /opt/grobid-source/grobid-quantities
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=0.7.3-SNAPSHOT
version=0.7.3-SNAPSHOT
14 changes: 10 additions & 4 deletions src/main/resources/web/grobid/grobid-quantities.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ var grobid = (function ($) {

function defineBaseURL(ext) {
var baseUrl = null;
if ($(location).attr('href').indexOf("index.html") != -1)
baseUrl = $(location).attr('href').replace("index.html", ext);
else
baseUrl = $(location).attr('href') + ext;
let locaBase = $(location).attr('href');
if (locaBase.indexOf("index.html") != -1)
baseUrl = locaBase.replace("index.html", ext);
else if (locaBase.indexOf("?") != -1) {
// remove possible uri parameters
baseUrl = locaBase.substring(0,locaBase.indexOf("?")) + ext;
} else {
baseUrl = locaBase + ext;
}

return baseUrl;
}

Expand Down
Loading