Package: papis-zotero
Zotero compatibility for papisInstallationTo install the latest release from PyPIpython-mpipinstallpapis-zoteroTo install the latest development versionpython-mpipinstallpapis-zotero@https://github.com/papis/papis-zotero.git#egg=papis-zoteroDevelopmentThis project usessetup.pyandsetuptoolsfor its build system.
To develop the code, it is recommended to start up avirtual environmentand
install the project in editable mode using, e.g.:python -m pip install -e '.[develop]'After installation always check that the command is correctly recognized, e.g.
by looking at the help outputpapiszotero--helpImporting from BibTeXZotero supports exporting different variants of BibTeX or BibLaTeX files
(fromFiles > Export Library). The resultingbibfile can be directly
imported intopapisusingpapisbibtexreadlibrary.bibimport--allbut a better choice is using this command, as it has better support for special
Zotero fields. To import a given exported library runpapiszoteroimport--from-bibtexlibrary.bibBibTeX files exported by Zotero can also include has some PDF entries, e.g.
they can look like@article{Einstein1905Photon,author={ A. Einstein },doi={ 10.1002/andp.19053220607 },journal={ Ann. Phys. },pages={ 132--148 },title={ Über einen die Erzeugung und Verwandlung des Lichtes
        betreffenden heuristischen Gesichtspunkt },file={ Full Text:path/to/some/relative/file.pdf },volume={ 322 },year={ 1905 },}From this,papis-zoterowill interpret the path of thefileentry
as a relative path tolibrary.bibpassed to the import command using--from-bibtex. The files are skipped if they do not exist at the expected
location.By default,papis-zoterowill add the documents to your current library.
When initially importing a big library, it is recommended to always import it
into a scratch folder, so that you can check the import. This can be easily done
usingpapiszoteroimport--from-bibtexlibrary.bib--outfoldersome/folder/libWhen you are ready you can move this folder to a finalpapislibrary.Importing from Zotero SQLiteZotero also maintains a database of all its files and collections under azotero.sqlitefile. You can check where this file is located by going toEdit > Preferences > Advanced > Data Directory Location(may vary depending
on the Zotero version). The Zotero data directory should contain thezotero.sqlitefile and astoragedirectory with the files for each document.The SQLite database maintained by Zotero can be imported directly (without
using a BibTeX export) bypapis-zotero. This can be done by passingpapiszoteroimport--from-sql-folder<ZOTERO_DATA_DIRECTORY>whereZOTERO_DATA_DIRECTORYis the folder containing thezotero.sqlitefile. By default,papis-zoterowill add the imported documents to your
current library directory, but it can be customized using the--outfolderargument.Using Zotero connectorsThis plugin can also connect to a Zotero connector browser plugin. First, one
such plugin should be installed from theZotero website. Then, make sure that
Zotero itself is not running (and connected to the connector) and runpapiszoteroserveto start listening to your browser for incoming data.  Whenever you click the
Zotero button to add a paper,papis-zoterowill add this paper to its
library instead.