On 5 May 2009, at 2:46 AM, Maxwell, Adam R wrote:
> On 05/04/09 15:49, "Gregory Jefferis" <[email protected]> wrote:
>
>> On 2009-05-02 23:30, "Adam R. Maxwell" <[email protected]> wrote:
>>
>>>
>>> I wrote a parser for the XML format. Can anyone suggest some
>>> PMIDs or
>> Great! Have you committed or do you have a patch?
>
> No. I developed it on my own tree, since that's what I'm set up to
> work
> with and test against. If you want to take a stab at incorporating
> it, the
> parser is here:
>
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKPu
> bMedXMLParser.h?sortby=date&view=log
>
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKPu
> bMedXMLParser.m?sortby=date&view=log
>
> Other files adapted to use the parser:
>
> // changes to URL and avoid using BDSKStringParser and guess encoding:
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BibIte
> m_PubMedLookup.m?sortby=date&view=log
>
> // standard additions for new parser class
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKSt
> ringParser.m?sortby=date&view=log
>
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKSt
> ringParser.h?sortby=date&view=log
>
> // changes to URL and avoid using BDSKStringParser and guess encoding
> http://tcobrowser.svn.sourceforge.net/viewvc/tcobrowser/trunk/bibdesk/BDSKEn
> trezGroupServer.m?sortby=date&view=log
>
>>> search terms that result in data loss presently? I also never use
>> Try PMID: 12767029
>
> Here's what I get:
>
> @article{cite-key,
> Abstract = { snipped for brevity },
> Author = {Devaud, Jean-Marc and Acebes, Angel and Ramaswami, Mani
> and
> Ferr{\'u}s, Alberto},
> Date-Added = {2009-05-04 17:03:08 -0700},
> Date-Modified = {2009-05-04 17:03:08 -0700},
> Journal = {Journal of Neurobiology},
> Mesh = {Adaptation, Physiological; Adenylate Cyclase; Animals;
> Behavior,
> Animal; Benzaldehydes; Brain; Cyclic AMP; Drosophila; Drosophila
> Proteins;
> Female; Learning; Microscopy, Confocal; Microscopy, Electron;
> Mutation;
> Neuropeptides; Olfactory Pathways; R-SNARE Proteins; Sense Organs;
> Synapses;
> Vesicular Transport Proteins},
> Month = {Jul},
> Number = {1},
> Pages = {13-23},
> Pmid = {12767029},
> Title = {Structural and functional changes in the olfactory
> pathway of
> adult Drosophila take place at a critical age},
> Volume = {56},
> Year = {2003}}
>
>>> PubMed, so I only tested with random entries.
>>
>> It would be great to test for equality of records modulo author
>> name for the
>> same record retrieved via the regular parser.
>
> There'll be some differences, since I don't attempt to handle all of
> the
> fields. The XML format documentation seems strongly oriented towards
> @article types, so I'd be curious as to how a proceedings or book
> with an
> editor is handled. I think I've done a better job at handling MeSH
> headings
> and keyword lists, but a bunch of stuff is just ignored since it looks
> irrelevant (e.g. status, ownership). Additions would be up to the
> PubMed-using crowd.
>
> regards,
> Adam
>
This line in the DTD may be relevant:
<!ELEMENT Book (%PubDate.Ref;, Publisher, Title, AuthorList?,
CollectionTitle?, Volume?)>
Also ElocationID (DOI) and PublicationTypeList may be interesting.
Christiaan
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users