Revision: 29207
          http://sourceforge.net/p/bibdesk/svn/29207
Author:   hofman
Date:     2025-04-26 22:07:13 +0000 (Sat, 26 Apr 2025)
Log Message:
-----------
Uppercase record syntax names

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

Modified: trunk/bibdesk/BDSKSRUGroupServer.m
===================================================================
--- trunk/bibdesk/BDSKSRUGroupServer.m  2025-04-26 21:38:42 UTC (rev 29206)
+++ trunk/bibdesk/BDSKSRUGroupServer.m  2025-04-26 22:07:13 UTC (rev 29207)
@@ -47,9 +47,9 @@
 
 #define MAX_RESULTS 100
 
-#define MARCXML_STRING  @"marcxml"
-#define DC_STRING       @"dc"
-#define MODS_STRING     @"mods"
+#define MARCXML_STRING  @"MARC XML"
+#define DC_STRING       @"DC"
+#define MODS_STRING     @"MODS"
 
 enum { BDSKIdleState, BDSKSearchState, BDSKFetchState };
 
@@ -116,7 +116,7 @@
     [query addObject:@"operation=searchRetrieve"];
     [query addObject:[@"query=%@" stringByAppendingString:[[self searchTerm] 
stringByAddingPercentEscapesForQueryTerm]]];
     if ([syntax length])
-        [query addObject:[@"recordSchema=" stringByAppendingString:syntax]];
+        [query addObject:[@"recordSchema=" stringByAppendingString:[[syntax 
stringByRemovingWhitespace] lowercaseString]]];
     if (range.length > 0) {
         [query addObject:[NSString stringWithFormat:@"startRecord=%lu", 1 + 
range.location]];
         [query addObject:[NSString stringWithFormat:@"maximumRecords=%lu", 
range.length]];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to