Quote:
When importing the RSI file to Zotero, I select "Link to files in original location" instead of "Copy files to the Zotero storage folder". However, the book is not linked, and attempting to open it from Zotero just gives an error "The attached file could not be found at the following path "/tmp/calibre...."".
|
See the L1 RIS Tag in the example RIS file shown below (created in Windows):
Code:
TY - BOOK
AU - Ed Offley
DA - 2014-03-25
DB - Calibre
LA - eng
L1 - C:\Users\[USERNAME]\AppData\Local\Temp\calibre_z2zfii\30.pdf
M2 - S:/Calibre/CalibreLibraryCodes/Ed Offley/The Burning Shore (30)/The Burning Shore - Ed Offley.pdf
SN - 9780465080694
SP - 538
T1 - The Burning Shore
ER -
ZMI must transform the Calibre absolute book path into a single temporary file name (hence your "/tmp/calibre....") that is both unique for a particular ZMI RIS export file and useful in reconciling Zotero to Calibre. The Calibre book ID (e.g. '30' as shown in the example) is unique by Calibre Library. In Calibre, searching on "id:30" will select the matching Calibre book for a Zotero item having a '30' in its filename ('30.pdf') or in the Extra field as described below.
Note that the temporary file shown in L1 will be automatically deleted no later than the very next Calibre shutdown.
Added: The use of a temporary directory to hold the book files being imported into Zotero was required to alleviate fatal security permissions errors in Zotero under Windows in 2016.
The M2 RIS Tag is (unless you change it) the Calibre absolute book path that is mapped by Zotero into the 'Extra' field. ZMI uses 'Extra' to retrieve the Zotero storage "KEY" to add to the Calibre book metadata of each respective book. That value is then used by ZMI to retrieve the Zotero Collection of each newly imported-to-Zotero book, and to determine what is and is not in Calibre based on Zotero Collection.
Added: I will look at creating a new pushbutton in ZMI for use when you ONLY want to Link to Calibre from Zotero. The original pushbutton will continue to be for ONLY importing the actual book file from Calibre into Zotero. There should be no OS security permissions for this use. I will simply set the L1 RIS Tag to be the same as the M2 Tag, which is to say the original absolute path of the Calibre book.
Added: Version 1.0.67 RIS File export: add new pushbutton (see the following post for details).
Quote:
If I choose to copy it to the Zotero storage, ZMI works correctly.
|
ZMI always works correctly, since you are supposed to always choose to copy it to Zotero local storage. See the ZMI ToolTips and the documentation images attached to the Original Post of this same thread. You will find nothing about "linking" anywhere.
By the way, ZMI works only for Zotero-Desktop, and not for Zotero-Cloud. The Zotero Storage folder must be in the default local drive location created automatically by the Zotero-Desktop installer.
DaltonST