From: <jef...@us...> - 2009-01-16 13:19:04
|
Revision: 14070 http://bibdesk.svn.sourceforge.net/bibdesk/?rev=14070&view=rev Author: jefferis Date: 2009-01-16 12:33:59 +0000 (Fri, 16 Jan 2009) Log Message: ----------- Fix reversion of PubMed lookup for dropped <PMID>.pdf files - svn 14067 restricted the search to [AID] field but this only contains DOIs or published supplied IDs. - PMID is contained in [PMID] field. Modified Paths: -------------- trunk/bibdesk/BibDocument.m Modified: trunk/bibdesk/BibDocument.m =================================================================== --- trunk/bibdesk/BibDocument.m 2009-01-16 12:02:15 UTC (rev 14069) +++ trunk/bibdesk/BibDocument.m 2009-01-16 12:33:59 UTC (rev 14070) @@ -2415,7 +2415,7 @@ NSString *lastPathComponent = [[fnStr lastPathComponent] stringByDeletingPathExtension]; BOOL tryPubMed = [[OFPreferenceWrapper sharedPreferenceWrapper] boolForKey:BDSKShouldUsePubMedMetadata]; if(newBI == nil && tryPubMed && [lastPathComponent containsCharacterInSet:[NSCharacterSet nonDecimalDigitCharacterSet]] == NO) - newBI = [BibItem itemWithPubMedSearchTerm:[NSString stringWithFormat:@"%@ [AID]", lastPathComponent]]; + newBI = [BibItem itemWithPubMedSearchTerm:[NSString stringWithFormat:@"%@ [PMID]", lastPathComponent]]; // GJ try parsing pdf to extract info that is then used to get a PubMed record if(newBI == nil && [[[NSWorkspace sharedWorkspace] UTIForURL:url] isEqualToUTI:(NSString *)kUTTypePDF] && [[OFPreferenceWrapper sharedPreferenceWrapper] boolForKey:BDSKShouldParsePDFToGeneratePubMedSearchTerm]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |