colrev.ops.pdf_get.PDFGet¶
- class PDFGet(*, review_manager, notify_state_transition_operation=True)[source]¶
Bases:
Operation
Get the PDFs
Methods
Check for PDFs that are in the pdfs directory but not linked in the record file
Check the operation precondition
Conclude the operation (stop Docker containers)
Copy the PDFs to the repository
Decorator for operations
Get PDFs (based on the package endpoints in the settings)
Get the target filepath for a PDF
Import a file (PDF) and copy/symlink it
Link the PDF in its record (should be {ID}.pdf)
main
Notify the review_manager about the next operation
Relink record files to the corresponding PDFs (if available)
Rename the PDFs
Setup a custom pfd-get script
Attributes
type
to_retrieve
retrieved
not_retrieved
- check_existing_unlinked_pdfs(records)[source]¶
Check for PDFs that are in the pdfs directory but not linked in the record file
- Return type:
dict
- check_precondition()¶
Check the operation precondition
- Return type:
None
- conclude()¶
Conclude the operation (stop Docker containers)
- Return type:
None
- classmethod decorate()¶
Decorator for operations
- Return type:
Callable
- notify(*, state_transition=True)¶
Notify the review_manager about the next operation
- Return type:
None