bookends-tools icon indicating copy to clipboard operation
bookends-tools copied to clipboard

Seems to be broken by Bookends 15.2.1

Open a-rock-lobster opened this issue 6 months ago • 8 comments

The search functionality all still seems to work, but it will not copy any info from bookends. At most, it pastes The unique ID “-1” is invalid, if anything.

Rolling back to the next available Bookends version 15.1.7 in the version history fixes the issue. I think all was well in 15.2, but it isn't available to download.

Can anyone confirm?

Cheers,

a-rock-lobster avatar Oct 19 '25 10:10 a-rock-lobster

Hi, I will have a look tomorrow. Script debugger is now free to download which helps for debugging the issue: https://latenightsw.com/sd8/download/ - it has been ages since I looked at the code...

iandol avatar Oct 19 '25 13:10 iandol

OK it seems that the JSON field uniqueID has been renamed to uniqueid, and this broke the pasting of the temp citation. To make the fix backwards compatible we need an if, so to fix it:

https://github.com/iandol/bookends-tools/blob/master/source/findReferences.rb#L107

Try V1.3.10 of the workflow see if it now works: https://github.com/iandol/bookends-tools/releases/tag/V1.3.10

iandol avatar Oct 20 '25 05:10 iandol

Hi, pasting is fixed, cheers, but the string for the citation ID is replaced with -1. So {Harman, 2009 #175109} becomes {Harman, 2009, #-1}. This seems to also effect the Bookends version I rolled back to.

a-rock-lobster avatar Oct 20 '25 08:10 a-rock-lobster

Ha ok, I only tested pandoc output, probably missing some more fixes for the bookends citation mode

iandol avatar Oct 20 '25 10:10 iandol

I'm no coder, but if I can provide you with anything to help diagnose etcetera, just let me know and I'll do my best.

a-rock-lobster avatar Oct 20 '25 11:10 a-rock-lobster

try this version I just pushed but not released: https://github.com/iandol/bookends-tools/blob/master/bookends-tools.alfredworkflow

I made a better fix to ignore the case of the json key for the unique ID, let me know if it works.

iandol avatar Oct 21 '25 05:10 iandol

Looks promising! On first inspection, everything seems to be back to normal.

Thank you for the quick work! I'm just trying to finish putting together my thesis. Lesson learned: Really, I should stop updating things during crunch time.

a-rock-lobster avatar Oct 21 '25 10:10 a-rock-lobster

I'll leave this open for now, just in case. Good luck with the thesis!!!

iandol avatar Oct 21 '25 13:10 iandol