Re: import from WOS
Sabine Mellmann-Brown <[email protected]> Fri, 03 Feb 2006 11:47:04 -0700
| Newsgroups | gmane.comp.gnome.apps.pybliographer |
|---|---|
| Message-ID | <[email protected]> |
Sorry, there were errors in my message that I need to clarify: First,
the correct field name is JI (not J1). Second, staying with my example
the JI field included: J. Range Manage., which is the international
accepted abbreviation for the Journal, and I wanted to keep this value.
(I apologize for the confusion).
After reviewing the Pyblio/Format/isifile.py file I decided to keep
the 'journal' field as is - it takes half a page of code to coerce a
sensible journal citation out of Web of Sciences and pybliographer's
default setting is not only nice but also compatible to what Biological
Abstracts delivers. However, lots of journals now require the use of
journal abbreviations, so I changed the isifile.py to read as following
(the last two lines are added):
# journal titles come in various forms
if lines.has_key ('SO'):
uc_title = ' '.join(lines['SO'])
in_table ['journal'] = Fields.Text (uc_title)
if lines.has_key('JI'):
sh_title = ' '.join(lines['JI'])
in_table['shortjournal'] = Fields.Text (sh_title)
...
So far, this seems to be working, and now I got a choice of style. (I'll
worry about changing the citation style after I get that article
written ...).
Thanks for the help. I don't know Python but it seemed easy enough once
you know where to look for the setting!
Sabine
On Wed, 2006-02-01 at 13:48 +0000, Peter Schulte-Stracke wrote:
> Am 30.01.2006 22:33:34 schrieb(en) Sabine Mellmann-Brown:
> > Is there a way to import Journal abbreviations from Web of
> > Science into pybliographer? I am exporting the abbreviated
> > source, but pybliographer puts the abbreviation into a field
> > called isifile-j9, and capitalizes everything:
> > isifile-j9: J RANGE MANAGE
> > Under Journal it gives me Journal of Range Management, which
> > is nice, but I wanted something else.
>
> Please allow the obvious question, whether this is correct or
> not? The ISI format carries (in more recent records) the
> journal title in various forms, and the import module just tries
> to guess, by combining this information, the standard form,
> viz. unabreviated and capitalised in the usual way.
>
> Below you give an abbreviated form which does not, in my eyes,
> fit easily with the forms given above, does it?
>
> > It seems to forget the field J1, which happens to include J.
> > Am. Water Resour. Assoc.
>
> This could be a user-defined field; are you importing data from
> another program such as Endnote?
>
> What you can do is to edit the file Pyblio/Format/isifile.py
> (to be found where you have Pybliographer installed) and add the
> line »'J1' : ('journal', ','),« in the beginning of the file, as
> shown below:
>
> key_map = {
> 'AB' : ('abstract', ' '),
> . . .
> 'ED' : ('editor', ' '),
> 'IS' : ('number', ' ; '),
> 'J1' : ('journal', ','),
> 'LA' : ('language', ' ; '),
> 'PA' : ('address', ' ; '),
>
> This will result in the J1 field taking precedence over the
> journal entry as defined earlier; I did not make this variable
> accessible via the Settings menu, as I believed nobody would
> ever want to change this :(
>
> If you would like to save the full form of the journal title to
> another variable, you should change the statement later in the
> file
> in_table['journal'] = Fields.Text ("".join (Title))
> accordingly, say replacing 'journal' by 'fulljournal'.
>
> Regards,
> Peter
>
>
>