Import selected Bookends references (& save note URL back to the reference)

Bernardo, many thanks for this - it looks very interesting!
However, compiling, saving and running it, it only imports one of my selected references from Bookends into Tinderbox; and it doesn’t put anything (except the author name) into the key attributes.
I attach a screenshot to give you an idea - this is the state after I made the new note of prototype “Reference”. There were five items selected in Bookends, but only one was imported.
Any idea what the problem is - or what steps I may have missed before calling the script?
Thanks for any help you can give!