Revision: 22625
http://sourceforge.net/p/bibdesk/svn/22625
Author: hofman
Date: 2018-09-17 14:44:22 +0000 (Mon, 17 Sep 2018)
Log Message:
-----------
get publications for authors of general type
Modified Paths:
--------------
trunk/bibdesk/BDSKPublicationsArray.h
trunk/bibdesk/BDSKPublicationsArray.m
trunk/bibdesk/BibAuthor+Scripting.m
Modified: trunk/bibdesk/BDSKPublicationsArray.h
===================================================================
--- trunk/bibdesk/BDSKPublicationsArray.h 2018-09-17 09:45:09 UTC (rev
22624)
+++ trunk/bibdesk/BDSKPublicationsArray.h 2018-09-17 14:44:22 UTC (rev
22625)
@@ -55,8 +55,6 @@
- (id)itemForIdentifierURL:(NSURL *)aURL;
- (NSArray *)itemsForIdentifierURLs:(NSArray *)anArray;
-- (NSArray *)itemsForAuthor:(BibAuthor *)anAuthor;
-- (NSArray *)itemsForEditor:(BibAuthor *)anEditor;
- (NSArray *)itemsForPerson:(BibAuthor *)aPerson forField:(NSString *)field;
@end
Modified: trunk/bibdesk/BDSKPublicationsArray.m
===================================================================
--- trunk/bibdesk/BDSKPublicationsArray.m 2018-09-17 09:45:09 UTC (rev
22624)
+++ trunk/bibdesk/BDSKPublicationsArray.m 2018-09-17 14:44:22 UTC (rev
22625)
@@ -278,16 +278,6 @@
#pragma mark Authors support
-- (NSArray *)itemsForAuthor:(BibAuthor *)anAuthor;
-{
- return [self itemsForPerson:anAuthor forField:BDSKAuthorString];
-}
-
-- (NSArray *)itemsForEditor:(BibAuthor *)anEditor;
-{
- return [self itemsForPerson:anEditor forField:BDSKEditorString];
-}
-
- (NSArray *)itemsForPerson:(BibAuthor *)aPerson forField:(NSString *)field;
{
NSMutableSet *auths = [[NSMutableSet alloc] initForFuzzyAuthors];
Modified: trunk/bibdesk/BibAuthor+Scripting.m
===================================================================
--- trunk/bibdesk/BibAuthor+Scripting.m 2018-09-17 09:45:09 UTC (rev 22624)
+++ trunk/bibdesk/BibAuthor+Scripting.m 2018-09-17 14:44:22 UTC (rev 22625)
@@ -101,10 +101,7 @@
- (NSArray *)scriptingPublications {
id owner = [[self publication] owner];
if (owner) {
- if ([field isEqualToString:BDSKEditorString])
- return [[owner publications] itemsForEditor:self];
- else
- return [[owner publications] itemsForAuthor:self];
+ return [[owner publications] itemsForPerson:self forField:field ?:
BDSKAuthorString];
}
return [NSArray array];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit