Revision: 25183
http://sourceforge.net/p/bibdesk/svn/25183
Author: hofman
Date: 2020-12-12 17:23:59 +0000 (Sat, 12 Dec 2020)
Log Message:
-----------
There is no suggestion for parsed format anymore
Modified Paths:
--------------
trunk/bibdesk/BDSKParseFormatCommand.m
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BDSKParseFormatCommand.m
===================================================================
--- trunk/bibdesk/BDSKParseFormatCommand.m 2020-12-12 07:30:36 UTC (rev
25182)
+++ trunk/bibdesk/BDSKParseFormatCommand.m 2020-12-12 17:23:59 UTC (rev
25183)
@@ -192,17 +192,6 @@
if (isFile)
return [BDSKFormatParser parseFormat:formatString forLinkedFile:file
ofItem:pub];
- NSString *suggestion = nil;
- if ([field isEqualToString:BDSKCiteKeyString]) {
- suggestion = [pub citeKey];
- if ([pub hasEmptyOrDefaultCiteKey] || [[[pub owner] publications]
citeKeyIsUsed:suggestion byItemOtherThan:pub])
- suggestion = nil;
- } else if (isFileField) {
- suggestion = [[pub localFileURLForField:field] path];
- } else {
- suggestion = [pub valueOfField:field inherit:NO];
- }
-
return [BDSKFormatParser parseFormat:formatString forField:field
ofItem:pub];
}
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2020-12-12 07:30:36 UTC (rev 25182)
+++ trunk/bibdesk/BibItem.m 2020-12-12 17:23:59 UTC (rev 25183)
@@ -1043,10 +1043,6 @@
- (NSString *)suggestedCiteKey
{
- NSString *suggestion = [self citeKey];
- if ([self hasEmptyOrDefaultCiteKey] || [[owner publications]
citeKeyIsUsed:suggestion byItemOtherThan:self])
- suggestion = nil;
-
NSString *citeKeyFormat = [[NSUserDefaults standardUserDefaults]
stringForKey:BDSKCiteKeyFormatKey];
return [BDSKFormatParser parseFormat:citeKeyFormat
forField:BDSKCiteKeyString ofItem:self];
}
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