Revision: 13116
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=13116&view=rev
Author: hofman
Date: 2008-04-03 14:24:36 -0700 (Thu, 03 Apr 2008)
Log Message:
-----------
Import a possible crossref parent when importing by clicking the Import button
in a row.
Modified Paths:
--------------
trunk/bibdesk/BibDocument_Groups.m
Modified: trunk/bibdesk/BibDocument_Groups.m
===================================================================
--- trunk/bibdesk/BibDocument_Groups.m 2008-04-03 19:54:33 UTC (rev 13115)
+++ trunk/bibdesk/BibDocument_Groups.m 2008-04-03 21:24:36 UTC (rev 13116)
@@ -1801,13 +1801,17 @@
- (void)tableView:(NSTableView *)aTableView importItemAtRow:(int)rowIndex{
BibItem *pub = [shownPublications objectAtIndex:rowIndex];
+ // also import a possible crossref parent if that wasn't already present
+ BibItem *parent = [pub crossrefParent];
+ if ([parent isImported])
+ parent == nil;
NSMutableData *data = [NSMutableData data];
NSKeyedArchiver *archiver = [[NSKeyedArchiver alloc]
initForWritingWithMutableData:data];
NSArray *newPubs;
NSMutableArray *importedItems = [NSMutableArray array];
- [archiver encodeObject:[NSArray arrayWithObjects:pub, nil]
forKey:@"publications"];
+ [archiver encodeObject:[NSArray arrayWithObjects:pub, parent, nil]
forKey:@"publications"];
[archiver finishEncoding];
[archiver release];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit