| Modifier and Type | Field and Description |
|---|---|
| pack-priv BibEntryTypesManager | |
| pack-priv Gson | |
| private static final Logger | |
| pack-priv CliPreferences | |
| pack-priv SrvStateManager | |
| pack-priv UiMessageHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addBibtex(String id, @Nullable String
optional name of a group the imported entries are additionally assigned to. If the group does not exist, it is created as a top-level group. JabRef merges the entries into the library (duplicate handling applies). group, String bibtex)Appends BibTeX entries to the currently selected library. |
| public void | addCslJson(String id, @Nullable String group, String cslJson)
Parses CSL-JSON (a single CSL item or an array of them, as produced by a Zotero / citation-js CSL-JSON export) into BibTeX entries and appends them to the selected library. |
| public void | addPlainCitation(String id, @Nullable String
optional name of a group the imported entry is additionally assigned to. group, String citationText)Parses a plain-text bibliography reference into a BibTeX entry and appends it to the currently selected library. |
| public void | |
| public String | getPDFFilesAsList(String id)
Loops through all entries in the specified library and adds attached files of type "PDF" to a list and JSON serialises it. |
| private Optional | resolveTargetLibrary(String id)
Resolves the path-segment library id into the on-disk path the append should target. |
| entryTypesManager | back to summary |
|---|---|
| pack-priv BibEntryTypesManager entryTypesManager
| |
| gson | back to summary |
|---|---|
| pack-priv Gson gson
| |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| preferences | back to summary |
|---|---|
| pack-priv CliPreferences preferences
| |
| srvStateManager | back to summary |
|---|---|
| pack-priv SrvStateManager srvStateManager
| |
| uiMessageHandler | back to summary |
|---|---|
| pack-priv UiMessageHandler uiMessageHandler
| |
| EntriesResource | back to summary |
|---|---|
| public EntriesResource() | |
| addBibtex | back to summary |
|---|---|
| public void addBibtex(String id, @Nullable String group, String bibtex) Appends BibTeX entries to the currently selected library. | |
| addCslJson | back to summary |
|---|---|
| public void addCslJson(String id, @Nullable String group, String cslJson) throws IOException Parses CSL-JSON (a single CSL item or an array of them, as produced by a Zotero / citation-js CSL-JSON export) into BibTeX entries and appends them to the selected library. The CSL item type and fields are mapped to Bib(La)TeX via the citation-js-based mapping selected in ADR 0064, so a conference paper, book chapter, thesis, report, etc. yields the correct entry type instead of a flat @article. The produced entries carry no citation key; JabRef generates keys on import. The optional | |
| addPlainCitation | back to summary |
|---|---|
| public void addPlainCitation(String id, @Nullable String group, String citationText) throws org.jabref.logic.importer.FetcherException, IOException Parses a plain-text bibliography reference into a BibTeX entry and appends it to the currently selected library. The reference is run through the plain-citation parser the user selected in JabRef's
preferences ( | |
| addUnknown | back to summary |
|---|---|
| public void addUnknown(String id, Reader body) throws IOException | |
| getPDFFilesAsList | back to summary |
|---|---|
| public String getPDFFilesAsList(String id) throws IOException Loops through all entries in the specified library and adds attached files of type "PDF" to a list and JSON serialises it. FIXME: JabMap should serve the files per BibEntry. See https://github.com/JabRef/jabmap/issues/56 for details | |
| resolveTargetLibrary | back to summary |
|---|---|
| private Optional Resolves the path-segment library id into the on-disk path the append should target. "current" keeps the previous behaviour (empty Optional -> active library). Any other id
is looked up among the open libraries; an unknown or closed id yields 404 via
| |