Hi Adam,

On 2010-06-12 21:12, "Adam R. Maxwell" <[email protected]> wrote:

> Doesn't +itemByParsingPDFFile: do this now?  I just glanced at the code, and
> it seems to try and use the file name as a search term first.
> 
> + (id)itemByParsingPDFFile:(NSString *)pdfPath;
> {
> BibItem *bi=nil;
> 
> // see if we can find any bibliographic info in the filename
> NSString *pubMedSearch=nil;
> pubMedSearch=[[[pdfPath lastPathComponent] stringByDeletingPathExtension]
> stringByMakingPubmedSearchFromAnyBibliographicIDsInString];
> if(pubMedSearch!=nil){
> bi=[BibItem itemWithPubMedSearchTerm:pubMedSearch];
> if(bi!=nil) return bi;
> }

StringByMakingPubmedSearchFromAnyBibliographicIDsInString will only look for
dois and Elsevier/NPG PIIs which are MUCH more specific than PMIDs (which
are just an 8 digit number).

Greg.



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Bibdesk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-users

Reply via email to