PdfImporters and merging the results.
See PdfMergeMetadataImporter#metadataImporters for the list of importers used.
After all importers are applied, this importer tries to fetch additional metadata for the entry using the DOI and ISBN.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ArXivFetcher | |
| private final DoiFetcher | |
| private static final Pattern | |
| private final IsbnFetcher | |
| private static final Logger | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Pattern | |
| private List | |
| private void | fetchData(BibEntry
The BibEntry to look for the field candidate, StandardField The field to look for field, IdBasedFetcher The fetcher to use fetcher, Set<String> The already fetched ids (will be updated) fetchedIds, List<BibEntry> New candidate (will be updated) fetchedCandidates)
|
| private List | |
| public String | getDescription()
Implements abstract org. Returns the description of the import format. |
| public String | getId()
Implements abstract org. Returns a slug, which identifies this importer. |
| public String | getName()
Implements abstract org. Returns the name of this import format. |
| public ParserResult | importDatabase(Path filePath, PDDocument document)
Implements abstract org. Makes |
| public ParserResult | importDatabase(Path filePath, @NonNull BibDatabaseContext context, @NonNull FilePreferences filePreferences)
Imports the BibTeX data from the given PDF file and relativized the paths of each linked file based on the context and the file preferences. |
| private static boolean | |
| private static BibEntry |
| arXivFetcher | back to summary |
|---|---|
| private final ArXivFetcher arXivFetcher | |
| doiFetcher | back to summary |
|---|---|
| private final DoiFetcher doiFetcher | |
| FILENAME_TITLE_PATTERN | back to summary |
|---|---|
| private static final Pattern FILENAME_TITLE_PATTERN | |
| isbnFetcher | back to summary |
|---|---|
| private final IsbnFetcher isbnFetcher | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| metadataImporters | back to summary |
|---|---|
| private final List<PdfImporter> metadataImporters | |
| PdfMergeMetadataImporter | back to summary |
|---|---|
| public PdfMergeMetadataImporter(ImportFormatPreferences importFormatPreferences) | |
| buildFilenameTitlePattern | back to summary |
|---|---|
| private static Pattern buildFilenameTitlePattern() | |
| extractCandidatesFromPdf | back to summary |
|---|---|
| private List | |
| fetchData | back to summary |
|---|---|
private void fetchData(BibEntry candidate, StandardField field, IdBasedFetcher fetcher, Set<String> fetchedIds, List<BibEntry> fetchedCandidates)
| |
| fetchIdsOfCandidates | back to summary |
|---|---|
| private List | |
| getDescription | back to summary |
|---|---|
| public String getDescription() Implements abstract org. Doc from org. Returns the description of the import format. The description should specifywhat kind of entries from what sources and based on what specification it is able to importby what criteria it
| |
| getId | back to summary |
|---|---|
| public String getId() Implements abstract org. Doc from org. Returns a slug, which identifies this importer. Used, for example, to identify the importer in CLI. Typically, this name should be short, in English, and should not contain special characters like #, %, etc.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract org. Doc from org. Returns the name of this import format. Typically, this is a string that denotes file type or format. It can also be localized, like "XMP-annotated PDF".
| |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(Path filePath, PDDocument document) throws IOException, ParseException Implements abstract org. Makes Algorithm:
| |
| importDatabase | back to summary |
|---|---|
| public ParserResult importDatabase(Path filePath, @NonNull BibDatabaseContext context, @NonNull FilePreferences filePreferences) throws IOException Imports the BibTeX data from the given PDF file and relativized the paths of each linked file based on the context and the file preferences. | |
| isTitleLikelyFilename | back to summary |
|---|---|
| private static boolean isTitleLikelyFilename(String title) | |
| mergeCandidates | back to summary |
|---|---|
| private static BibEntry mergeCandidates(List<BibEntry> candidates) | |
| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final FilePreferences |
| Access | Constructor and Description |
|---|---|
| public | EntryBasedFetcherWrapper(ImportFormatPreferences importFormatPreferences, FilePreferences filePreferences, BibDatabaseContext context)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | performSearch(@NonNull BibEntry entry)
Implements org. Looks for hits which are matched by the given |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| EntryBasedFetcherWrapper | back to summary |
|---|---|
| public EntryBasedFetcherWrapper(ImportFormatPreferences importFormatPreferences, FilePreferences filePreferences, BibDatabaseContext context) | |
| performSearch | back to summary |
|---|---|
| public List Implements org. Doc from org. Looks for hits which are matched by the given
| |