Fix ai-service Dockerfile: bake in drug_entities.json, override its path
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user