You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi folks, just started to play with pubs. Exported my .bib file from Zotero and tried an import. Didn't get too far and got a file not found message - this item has two files listed in the file= line in the .bib file. Didn't seem to like the .HTML file:
file = {/Users/rhaynes/Zotero/storage/CDJEJLSE/Abushammala et al. - 2015 - A novel fixed point iteration method for the solut.pdf;/Users/rhaynes/Zotero/storage/D57ASCSY/S0096300315012102.htm l},
Should this work?
R Haynes
The text was updated successfully, but these errors were encountered:
Hi @rhaynes74, thanks for trying pubs and reporting this. Sorry for the response latency.
Do you have the exact error raised about the file not found?
After a quick look to https://github.com/pubs/pubs/blob/master/pubs/bibstruct.py#L81, it seems to me that the logic implemented there does not handle the Zotero case properly. To my knowledge, the file attribute is not really standard, specially with several files inside, and what we have implemented (that was done so mostly with the Mendeley use case in mind), only covers : as a separator, not ;. That could explain the issue you are facing.
For now I will mark the issue as enhancement, unless there is a standard that we fail to have implemented (in which case I would switch it to bug). Nevertheless, it should be feasible to implement a more Zotero-friendly behavior here. Either automatically, by allowing both separators, or through a command line argument to trigger some specific parsing behaviors for common sources. I assume your case would be rather common.
Please note that pubs only allows one document per entry so it would anyway only import the pdf in that case.
As a quick workaround, the import should work if you just keep one file per entry (here removing the html from the source .bib).
Hi folks, just started to play with pubs. Exported my .bib file from Zotero and tried an import. Didn't get too far and got a file not found message - this item has two files listed in the file= line in the .bib file. Didn't seem to like the .HTML file:
file = {/Users/rhaynes/Zotero/storage/CDJEJLSE/Abushammala et al. - 2015 - A novel fixed point iteration method for the solut.pdf;/Users/rhaynes/Zotero/storage/D57ASCSY/S0096300315012102.htm l},
Should this work?
R Haynes
The text was updated successfully, but these errors were encountered: