Revision: 29228 http://sourceforge.net/p/bibdesk/svn/29228 Author: hofman Date: 2025-04-28 09:32:22 +0000 (Mon, 28 Apr 2025) Log Message: ----------- Revert changes to yaz adding CQL formatter, as it does not work
Modified Paths: -------------- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.m Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h 2025-04-28 09:26:37 UTC (rev 29227) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.h 2025-04-28 09:32:22 UTC (rev 29228) @@ -93,12 +93,4 @@ @end -/*! - @class ZOOMCQLQueryFormatter - @superclass NSFormatter - @abstract An NSFormatter subclass that validates the query syntax by attempting to convert CQL to RPN. The formatter's control delegate should implement the appropriate failure message to display an error to the user. -*/ -@interface ZOOMCQLQueryFormatter : NSFormatter -@end - NS_ASSUME_NONNULL_END Modified: trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.m =================================================================== --- trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.m 2025-04-28 09:26:37 UTC (rev 29227) +++ trunk/bibdesk_vendorsrc/indexdata/yaz/objc/ZOOMQuery.m 2025-04-28 09:32:22 UTC (rev 29228) @@ -178,31 +178,3 @@ @end -@implementation ZOOMCQLQueryFormatter - -- (NSString *)stringForObjectValue:(id)obj { return obj; } - -- (BOOL)getObjectValue:(id *)obj forString:(NSString *)string errorDescription:(NSString **)error; -{ -BOOL success; -if (string && [@"" isEqualToString:string] == NO) { -int status; - -ZOOM_query query = ZOOM_query_create(); -status = ZOOM_query_cql2rpn(query, [string UTF8String], 0); -if (status) { - if (error) *error = @"This is not a valid CQL query."; - success = NO; -} else { - success = YES; -} -ZOOM_query_destroy(query); -} else { -success = YES; -} -*obj = string; -return success; -} - -@end - 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