Fix ai-service Dockerfile: bake in drug_entities.json, override its path

This commit is contained in:
2026-08-10 10:35:13 +07:00
parent a4b8e1c4db
commit 60b4397032
51 changed files with 4302 additions and 2087 deletions
+7 -3
View File
@@ -13,10 +13,14 @@ export default function TraCuuPage() {
function handleCitationClick(citation: Citation) {
if (citation.sourcePageRange && citation.sourcePageRange[0]) {
const page = citation.sourcePageRange[0];
setActivePage(page);
// Display the printed page (what's on the paper page, matches the
// clinician's physical copy), but navigate the PDF viewer by the
// physical page — they diverge by 1-3 pages depending on front-matter
// offset, confirmed against the real PDF (physical_page is PyMuPDF's
// 0-indexed page; the #page= fragment is 1-indexed).
setActivePage(citation.sourcePageRange[0]);
setActiveDrug(citation.drugName);
setPdfSrc(`/api/pdf#page=${page}`);
setPdfSrc(`/api/pdf#page=${citation.physicalPage + 1}`);
}
}