Revision: 29331
          http://sourceforge.net/p/bibdesk/svn/29331
Author:   hofman
Date:     2025-07-22 16:06:06 +0000 (Tue, 22 Jul 2025)
Log Message:
-----------
update cite key and crossref registration in text import controller

Modified Paths:
--------------
    trunk/bibdesk/BDSKTextImportController.m

Modified: trunk/bibdesk/BDSKTextImportController.m
===================================================================
--- trunk/bibdesk/BDSKTextImportController.m    2025-07-22 16:00:13 UTC (rev 
29330)
+++ trunk/bibdesk/BDSKTextImportController.m    2025-07-22 16:06:06 UTC (rev 
29331)
@@ -571,11 +571,15 @@
     if ([notification object] != [self publication])
         return;
        
-       NSString *changeKey = [[notification userInfo] 
objectForKey:BDSKBibItemKeyKey];
+    NSDictionary *userInfo = [notification userInfo];
+       NSString *changeKey = [userInfo objectForKey:BDSKBibItemKeyKey];
     
     if ([changeKey isEqualToString:BDSKCiteKeyString]) {
+        [publications changeCiteKey:[userInfo 
objectForKey:BDSKBibItemOldValueKey] forItem:item];
         [citeKeyField setStringValue:[item citeKey]];
         [self setCiteKeyDuplicateWarning:[item isValidCiteKey:[item citeKey]] 
== NO];
+    } else if ([changeKey isEqualToString:BDSKCrossrefString]) {
+        [publications changeCrossref:[userInfo 
objectForKey:BDSKBibItemOldValueKey] forItem:item];
     } else if ([changeKey isEqualToString:BDSKPubTypeString]) {
         [self updateTypeAndFields];
     } else {

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

Reply via email to