Revision: 22645
http://sourceforge.net/p/bibdesk/svn/22645
Author: hofman
Date: 2018-09-21 20:45:07 +0000 (Fri, 21 Sep 2018)
Log Message:
-----------
scripting support for crossers parent
Modified Paths:
--------------
trunk/bibdesk/BibItem+Scripting.h
trunk/bibdesk/BibItem+Scripting.m
trunk/bibdesk/Scripting/BibDesk.sdef
Modified: trunk/bibdesk/BibItem+Scripting.h
===================================================================
--- trunk/bibdesk/BibItem+Scripting.h 2018-09-21 15:01:59 UTC (rev 22644)
+++ trunk/bibdesk/BibItem+Scripting.h 2018-09-21 20:45:07 UTC (rev 22645)
@@ -110,6 +110,8 @@
- (NSScriptObjectSpecifier *) objectSpecifier;
+- (BibItem *)scriptingCrossrefParent;
+- (void)setScriptingCrossrefParent:(BibItem *)crossref;
@end
Modified: trunk/bibdesk/BibItem+Scripting.m
===================================================================
--- trunk/bibdesk/BibItem+Scripting.m 2018-09-21 15:01:59 UTC (rev 22644)
+++ trunk/bibdesk/BibItem+Scripting.m 2018-09-21 20:45:07 UTC (rev 22645)
@@ -543,6 +543,14 @@
// NSLog([newPub description]);
}
+- (BibItem *)scriptingCrossrefParent {
+ return [self crossrefParent];
+}
+
+- (void)setScriptingCrossrefParent:(BibItem *)crossref {
+ [self setField:BDSKCrossrefString toValue:[crossref citeKey]];
+}
+
/*
ssp: 2004-07-10
Return attribute keys corresponding to the fields present in the current
BibItem
Modified: trunk/bibdesk/Scripting/BibDesk.sdef
===================================================================
--- trunk/bibdesk/Scripting/BibDesk.sdef 2018-09-21 15:01:59 UTC (rev
22644)
+++ trunk/bibdesk/Scripting/BibDesk.sdef 2018-09-21 20:45:07 UTC (rev
22645)
@@ -1026,6 +1026,10 @@
description="The color for the publication.">
<cocoa key="scriptingColor"/>
</property>
+ <property name="crossref" code="cRef" type="publication"
+ description="Crossref parent of the publication.">
+ <cocoa key="scriptingCrossrefParent"/>
+ </property>
<element type="author" access="r"
description="Authors of the publication.">
<cocoa key="scriptingAuthors"/>
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