Insertion of multiple citations at once fails

Bug #326935 reported by espressodoppio
2
Affects Status Importance Assigned to Milestone
gedit-Zotero-Plugin
Fix Committed
Undecided
Frederik Elwert

Bug Description

insert multiple citations at once does not work

Revision history for this message
Frederik Elwert (frederik-elwert) wrote :

Could you explain what exactly doesn't work? I had no problem with selecting multiple sources. It inserts \cite{source1,source2}. The bibliography did also work for me.

So what exactly did you do, what did you expect, and what did you actually get?

Changed in gedit-zotero:
status: New → Incomplete
Revision history for this message
espressodoppio (chbeer) wrote :

When I try this (German Text in the Interface: Mehrere Quellen) it inserts for example:"hox_1995_schumann_1999": "11684", but no cite-key.
On the commandline I got the following Output:

DEBUG:root:<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP-ENV:Body>
    <m:updateResponse xmlns:m="http://www.zotero.org/namespaces/SOAP">
      <output xmlns="http://purl.org/net/xbiblio/csl">!:!:2:{"sort"::true,"citationItems"::[{"itemID"::"11684"},{"itemID"::"4097","position"::1}]}:hox_1995_schumann_1999</output>
    </m:updateResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
DEBUG:root:[u'!', u'!', u'2', {u'sort': True, u'citationItems': [{u'itemID': u'11684'}, {u'itemID': u'4097', u'position': 1}]}, u'hox_1995_schumann_1999']
DEBUG:root:{u'sort': True, u'citationItems': [{u'itemID': u'11684'}, {u'itemID': u'4097', u'position': 1}]}
Traceback (most recent call last):
  File "/home/chbeer/.gnome2/gedit/plugins/Zotero/zotero_interface.py", line 282, in add_citation
    self.document.add_citation(citation)
  File "/home/chbeer/.gnome2/gedit/plugins/Zotero/latex_document.py", line 249, in add_citation
    cite_string = self.styles[style].fill(citation)
  File "/home/chbeer/.gnome2/gedit/plugins/Zotero/template.py", line 215, in fill
    cite_keys.append(item['citeKey'])
  File "/home/chbeer/.gnome2/gedit/plugins/Zotero/citation.py", line 62, in __getitem__
    raise KeyError
KeyError

Revision history for this message
Frederik Elwert (frederik-elwert) wrote :

Oh, I'm sorry. I totally forgot that I had to modify the bibtex export CSL in order to make multiple citations work properly. I added the modified CSL to trunk, after you install that to Zotero it should work.

Changed in gedit-zotero:
assignee: nobody → frederik-elwert
status: Incomplete → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.