https://bugs.documentfoundation.org/show_bug.cgi?id=138588
--- Comment #5 from [email protected] --- Created attachment 189326 --> https://bugs.documentfoundation.org/attachment.cgi?id=189326&action=edit This picture shows what happens with copy / paste and what it should look like + reference info (In reply to Buovjaga from comment #4) > Please explain the steps better. This is my first time using Zotero. > > I created an item in Zotero. > I added a citation in Writer, picked my item. > I selected the citation mark, copied and pasted elsewhere in the Writer > document. > It pasted correctly and I had two footnotes. > > I don't see the bug? Or do I have to do something else to see the bug? > I'm using Zotero 6.0.22 > > Arch Linux 64-bit, X11 > Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community > Build ID: 617f392a0adfc07afca87eea9ec75d7852658de5 > CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb) > Locale: fi-FI (fi_FI.UTF-8); UI: en-US > Calc: threaded > Built on 6 March 2023 Steps to reproduce: 1. In LO turn on View > Field shadings 2. Install Zotero and the zotero extension in your LO installation 3. Insert a reference in LO 4. copy and paste it 5. The reference is gone (delete the real reference but don't delete the copied in reference. Now click "add bibliography". Zotero won't recognize any reference anymore). I read in ask.libreoffice.org that zotero references aren't real references. They get created and processed with macros (but they just reference a trigger). I'd guess that something is lost when you copy and paste the in-text reference. I believe the relevant code is in the file: zotero.jar (--> chrome/content/zotero/xpcom/integration.js) inside of: Zotero.Integration.Interface.prototype.addBibliography = Zotero.Promise.coroutine(function* () {}. There you'll find the following code: if (!me._session.data.style.hasBibliography) { throw new Zotero.Exception.Alert("integration.error.noBibliography", [], "integration.error.title"); } This code (I think) doesn't know that the copied in reference is indeed a reference. Tested with Libreoffice: Downloaded from: https://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@tb99-TDF/2023-09-03_04.38.37/LibreOfficeDev_24.2.0.0.alpha0_Linux_x86-64_deb.tar.gz About > help: Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 3c7a35dd28fbc337a23473873b3dd47392b883ae CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded System info (inside virtualbox): OS: Debian GNU/Linux 12 (bookworm) 64-bit Windowing system: Wayland DE: GNOME 40 -- You are receiving this mail because: You are the assignee for the bug.
