On Apr 12, 2014, at 14:46, Christiaan Hofman <[email protected]> wrote:
> It is now possible to also search using the Lite service, theUI is also in
> place to set this in the search group. So please test it out. I had also
> implemented the support for specific (WOS) editions, and changed the default
> servers accordingly (and added one for the whole of WOS, should we also add
> some for other databases?) I have put the UID in a field Wok-Uid, is that OK
> for everyone?
>
> As for the alternate operations, I am not completely sure about it, though I
> guess something like citations can be useful. I hate the syntax as it now is:
> the prefixes are far too long, and the syntax is inconsistent, and using ":"
> is wrong IMHO because that character also occurs in the UID. I propose to use
> something that looks more like the search syntax, by devising some alternate
> "search fields", for instance CITED=, CITING=, REL=, and UID=. Those are all
> unused.
>
> Oh, and if you want to see the full error message, you can now see it in a
> tool tip for the status bar.
I tried out the trunk version tonight and had a few comments:
1. In the search group list, I believe all instance of “Web Of Science” should
be changed to “Web of Science”, this is more correct and consistent with other
search group titles (“Library of Congress”, etc.)
2. I think the "Isi-Url” field should be changed to “Wok-Url”.
3. Is it intentional that the “Lite” checkbox is enabled by default while
everything else is disabled? I’m guessing it is but just wanted to make sure
this wasn’t a bug.
4. The default journal titles are pretty unattractive (all caps), and somewhat
useless for making cited reference lists. I wouldn’t mind, except that the
ability to customize which XML tag is used was also lost. I find the
“abbrev_iso” tag the most useful. I have restored this lost ability in my local
working copy (see diff below) and am happy to commit it if there are no
objections. I use the following setting on my computer:
defaults write edu.ucsd.cs.mmccrack.bibdesk BDSKWOKSourceXMLTagPriority
'("abbrev_iso", "source_abbrev", "source_title”)'
Unlike other things, I don’t have any preference for what the setting is called
and am happy for it to be changed.
Cheers,
Colin
nb-csmith:bibdesk colin$ svn diff BDSKISIGroupServer.m
Index: BDSKISIGroupServer.m
===================================================================
--- BDSKISIGroupServer.m (revision 19759)
+++ BDSKISIGroupServer.m (working copy)
@@ -56,7 +56,7 @@
#define BDSKAddISIXMLStringToAnnoteKey @"BDSKAddISIXMLStringToAnnote"
#define BDSKDisableISITitleCasingKey @"BDSKDisableISITitleCasing"
-#define BDSKISISourceXMLTagPriorityKey @"BDSKISISourceXMLTagPriority"
+#define BDSKWOKSourceXMLTagPriorityKey @"BDSKWOKSourceXMLTagPriority"
#define BDSKISIURLFieldNameKey @"BDSKISIURLFieldName"
#define WOK_UID_FIELDNAME @"Wok-Uid"
@@ -101,7 +101,7 @@
if ([[NSUserDefaults standardUserDefaults]
boolForKey:BDSKDisableISITitleCasingKey])
useTitlecase = NO;
// prioritized list of XML tag names for getting the source field value
- sourceXMLTagPriority = [[[NSUserDefaults standardUserDefaults]
arrayForKey:BDSKISISourceXMLTagPriorityKey] retain];
+ sourceXMLTagPriority = [[[NSUserDefaults standardUserDefaults]
arrayForKey:BDSKWOKSourceXMLTagPriorityKey] retain];
// set the ISI URL in a specified field name
ISIURLFieldName = [[[NSUserDefaults standardUserDefaults]
stringForKey:BDSKISIURLFieldNameKey] retain];
@@ -766,6 +766,7 @@
- (NSDictionary *)newWOKPublicationInfo {
// this is now a field/value set for a particular publication self
NSMutableDictionary *pubFields = [NSMutableDictionary new];
+ NSMutableDictionary *sourceTagValues = [NSMutableDictionary dictionary];
// default value for publication type
NSString *isiPubType = nil;
@@ -795,7 +796,27 @@
} else if ([typeString isEqualToString:@"source_abbrev"]) {
addStringToDictionaryIfNotNil((useTitlecase ? [[child stringValue]
titlecaseString] : [child stringValue]), @"Iso-Source-Abbreviation", pubFields);
}
+ // check to see if the current tag name matches an item in the source
XML tag priority list
+ NSString *sourceTagValue;
+ for (NSString *sourceTagName in sourceXMLTagPriority) {
+ if ([typeString isEqualToString:sourceTagName]) {
+ sourceTagValue = (useTitlecase ? [[child stringValue]
titlecaseString] : [child stringValue]);
+ if (sourceTagValue && [sourceTagValue length])
+ [sourceTagValues setObject:sourceTagValue
forKey:sourceTagName];
+ }
+ }
}
+
+ // if source field value(s) are in the priority list, subtitute the first
one
+ if ([sourceTagValues count]) {
+ NSString *sourceTagValue;
+ for (NSString *sourceTagName in sourceXMLTagPriority) {
+ if ((sourceTagValue = [sourceTagValues
objectForKey:sourceTagName])) {
+ [pubFields setObject:sourceTagValue forKey:BDSKJournalString];
+ break;
+ }
+ }
+ }
/* get publication year, volume, issue and month */
child = [[summaryChild nodesForXPath:@"./pub_info" error:NULL]
firstObject];
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Bibdesk-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-develop