-
-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Labels
Description
Add Editable Table with File Path Matching for PDF-Only Uploads
Problem
When users upload PDFs without bibliography files, they currently have no way to create reference entries or match PDFs to file paths for extraction. This limits the usefulness of the PDF-first upload flow.
Solution
Create a MVP editable table interface that allows users to:
- Generate reference entries from uploaded PDFs (initially start with an empty editable table)
- Manually edit reference metadata (title, authors, etc.)
- Match PDFs to file paths for extraction
- Add custom reference keys
Requirements
Core Functionality
- Automatic Table Generation: When PDFs are uploaded without bibliography files, automatically generate an empty table with
referenceandfilescolumns - Editable Fields: Allow editing and adding additionally columns (title, authors, year, journal, DOI, etc.) (already implemented in RenderTable)
- File Path Matching: Listing uploaded PDFs that have mapped to the metadata table entries or not
UI Components
- Table Interface: Data table with inline editing capabilities
- File Matching: multi-selection interface to match 1 or more PDFs to each reference
- Metadata Extraction: Extract basic metadata from PDF headers/OCR when possible
Integration Points
- PDF Processing: Extract metadata from uploaded PDFs on the backend
- File Matching Logic: Intelligent matching based on filename patterns, extracted titles, etc.
- Fallback Creation: Generate placeholder entries when metadata extraction fails
Files to Modify
extralit-frontend/components/features/import/file-upload/ImportFileUpload.vue:- Integrate new table creation flow with editable table (by default) and validators for unique value in the
referencecolumn. - Additionally the
filescolumn (frozen right) need to be a multi value list editor where user can multi-select the uploaded pdf file paths to each reference, configured intableColumnspassed to BaseSimpleTable. See https://tabulator.info/docs/6.3/edit#editor-list - Potentially need to create list of PDF files not yet mapped to a reference
- Integrate new table creation flow with editable table (by default) and validators for unique value in the
extralit-frontend/components/features/import/analysis/useImportAnalysisTableViewModel.ts, trigger update onstatuson cell edits onreferenceorfilescolumn.
Files for reference
extralit-frontend/v1/domain/services/FileMatchingService.ts- only run when a BIB/CSV file uploaded for the initial pdf file mappingextralit-frontend/components/features/import/file-upload/CsvColumnSelection.vue- only use for field mapping (column renaming to reference column) with uploaded CSV
Acceptance Criteria
- Users can upload PDFs and get an editable table of reference entries
- Table allows inline editing of all reference fields
- PDF-to-entry matching works multi-select
- Uses existing validators for
filesandreferencecolumn
Dependencies
- Depends on completion of Issue Reverse File Upload Order: PDF Upload First, Then Table Upload #165 (PDF-first upload order)
- Backend PDF metadata extraction API
Copilot