Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon only exporting when item has no extracted annotations #32

Open
donisthorpe opened this issue Oct 1, 2020 · 2 comments
Open

Addon only exporting when item has no extracted annotations #32

donisthorpe opened this issue Oct 1, 2020 · 2 comments

Comments

@donisthorpe
Copy link

For some reason, I don't seem to be able to export any of my items which include extracted annotations (I click on "Export Item(s) to Roam" but nothing happens). If I delete the relevant note, however, the item will be exported correctly. I tried generating a debug log, hope this helps. Thanks in advance for any assistance you can provide.

`
version => 5.0.90, platform => MacIntel, oscpu => Intel Mac OS X 10.15, locale => en-GB, appName => Zotero, appVersion => 5.0.90, extensions => ZotFile (5.0.16, extension), Zotero DOI Manager (1.3.9, extension), Zotero Storage Scanner (5.0.8, extension), Zotero OCR (0.3.0, extension), Zotero LibreOffice Integration (5.0.23.SA.5.0.90, extension), Zotero Word for Mac Integration (5.0.29.SA.5.0.90, extension), Zotero Roam Export (1.11, extension), Better BibTex for Zotero (5.2.74, extension), Shockwave Flash (32.0.0.433, plugin), Zotero Memento (1.0.0, extension, disabled), Zotero Date From Last Modified (0.0.12, extension, disabled), Zotero AutoIndex (5.0.6, extension, disabled), Zutilo Utility for Zotero (3.5.0, extension, disabled)

(4)(+0038603): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(4)(+0000007): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(4)(+0000003): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(4)(+0000006): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(3)(+0000013): MIME type application/pdf cannot be handled internally

(4)(+0000002): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(4)(+0000488): SELECT IA.itemID FROM itemAttachments IA NATURAL JOIN items I LEFT JOIN itemData ID ON (IA.itemID=ID.itemID AND fieldID=13) LEFT JOIN itemDataValues IDV ON (ID.valueID=IDV.valueID) WHERE parentItemID=? AND linkMode NOT IN (3) AND IA.itemID NOT IN (SELECT itemID FROM deletedItems) ORDER BY contentType='application/pdf' DESC, value=? DESC, dateAdded ASC [103, 'https://academic.oup.com/jcle/article-lookup/doi/10.1093/joclec/nhs031']

(3)(+0009927): TypeError: noteParasArray[prevParaIndex] is undefined getItemNotes@chrome://zoteroroamexport/content/roamexport.js:301:73 gatherItemData@chrome://zoteroroamexport/content/roamexport.js:324:25 getAllItemsData@chrome://zoteroroamexport/content/roamexport.js:336:28 exportItems@chrome://zoteroroamexport/content/roamexport.js:346:28
`

@melat0nin
Copy link
Owner

(3)(+0000013): MIME type application/pdf cannot be handled internally

Can you provide a screengrab of the item you're trying to export? This message 🔼 implies you might be trying to export a PDF rather than a Zotero Item (but I could be wrong).

@donisthorpe
Copy link
Author

Thanks for your reply. I'm right-clicking on the parent item. Attaching two screenshots, one of an item with extracted annotations (nothing happens after I click) and the other of an item with no annotations (the export is successful, but not that useful of course).
Screenshot 2020-10-14 at 13 20 56
Screenshot 2020-10-14 at 13 23 51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants