missing author firstname in ISI files

Frederic Mothe <mothe-IF+Zy58C8pAtZQGqxAA/[email protected]>
Newsgroups gmane.comp.gnome.apps.pybliographer
Message-ID <[email protected]>
Pybliographer 1.2.6.2 fails to read the following ISI file:

FN ISI Export Format
VR 1.0
PT J
AU Mothe
TI Taratatsoin tsoin.
ER
EF

The reason seems to be the missing firstname in the AU field as shown
by the output of pybformat :

> mothe@zarbi:~$ pybformat test.isi
> pybformat: using style `Alpha', format `Text'
> Traceback (most recent call last):
> (...)
>   File "/usr/share/pybliographer/Pyblio/Format/isifile.py", line 163, in next
>     name, firstn = string.split (item, ',')
> ValueError: unpack list of wrong size

The following patch seems to fix the problem:

--- isifile.py  2005-05-20 12:26:04.190131737 +0200
+++ ori/isifile_Fred.py 2005-05-20 12:07:31.031412991 +0200
@@ -160,6 +160,8 @@
                  if string.strip(item) =='[Anon]' :
                      auth = item
                  else:
+                    if string.find(item, ',') < 0:
+                        item = item + ','
                      name, firstn = string.split (item, ',')
                      auth = name + ', '
                      for i in string.strip(firstn):


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.