Revision: 29216 http://sourceforge.net/p/bibdesk/svn/29216 Author: hofman Date: 2025-04-27 15:30:54 +0000 (Sun, 27 Apr 2025) Log Message: ----------- Enable SRU type in search group server sheet. Change order of types.
Modified Paths: -------------- trunk/bibdesk/BDSKSearchGroupSheetController.m trunk/bibdesk/BDSKServerInfo.h trunk/bibdesk/Base.lproj/BDSKSearchGroupSheet.xib Modified: trunk/bibdesk/BDSKSearchGroupSheetController.m =================================================================== --- trunk/bibdesk/BDSKSearchGroupSheetController.m 2025-04-27 15:19:31 UTC (rev 29215) +++ trunk/bibdesk/BDSKSearchGroupSheetController.m 2025-04-27 15:30:54 UTC (rev 29216) @@ -369,9 +369,9 @@ switch (tag) { case BDSKServerTypeEntrez: [self setType:BDSKSearchGroupEntrez]; break; case BDSKServerTypeZoom: [self setType:BDSKSearchGroupZoom]; break; + case BDSKServerTypeSRU: [self setType:BDSKSearchGroupSRU]; break; + case BDSKServerTypeDBLP: [self setType:BDSKSearchGroupDBLP]; break; case BDSKServerTypeISI: [self setType:BDSKSearchGroupISI]; break; - case BDSKServerTypeDBLP: [self setType:BDSKSearchGroupDBLP]; break; - case BDSKServerTypeSRU: [self setType:BDSKSearchGroupSRU]; break; default: BDSKASSERT_NOT_REACHED("Unknown search type tag"); } } @@ -388,6 +388,13 @@ case BDSKServerTypeZoom: case BDSKServerTypeSRU: return @[]; + case BDSKServerTypeDBLP: + { + static NSArray *dblpDatabases = nil; + if (dblpDatabases == nil) + dblpDatabases = [[NSArray alloc] initWithObjects:@"Publications", @"Authors", nil]; + return dblpDatabases; + } case BDSKServerTypeISI: { static NSArray *zoomDatabases = nil; @@ -395,13 +402,6 @@ zoomDatabases = [[NSArray alloc] initWithObjects:@"WOK", @"WOS", @"WOS SCI", @"WOS SSCI", @"WOS AHCI", @"WOS BSCI", @"WOS BHCI", @"WOS ISTP", @"WOS ISSHP", @"WOS ESCI", @"WOS IC", @"WOS CCR", nil]; return zoomDatabases; } - case BDSKServerTypeDBLP: - { - static NSArray *dblpDatabases = nil; - if (dblpDatabases == nil) - dblpDatabases = [[NSArray alloc] initWithObjects:@"Publications", @"Authors", nil]; - return dblpDatabases; - } default: return @[]; } Modified: trunk/bibdesk/BDSKServerInfo.h =================================================================== --- trunk/bibdesk/BDSKServerInfo.h 2025-04-27 15:19:31 UTC (rev 29215) +++ trunk/bibdesk/BDSKServerInfo.h 2025-04-27 15:30:54 UTC (rev 29216) @@ -43,8 +43,8 @@ typedef NS_ENUM(NSInteger, BDSKServerType) { BDSKServerTypeEntrez, BDSKServerTypeZoom, + BDSKServerTypeSRU, BDSKServerTypeDBLP, - BDSKServerTypeSRU, BDSKServerTypeISI }; Modified: trunk/bibdesk/Base.lproj/BDSKSearchGroupSheet.xib =================================================================== --- trunk/bibdesk/Base.lproj/BDSKSearchGroupSheet.xib 2025-04-27 15:19:31 UTC (rev 29215) +++ trunk/bibdesk/Base.lproj/BDSKSearchGroupSheet.xib 2025-04-27 15:30:54 UTC (rev 29216) @@ -591,8 +591,8 @@ </binding> </connections> </button> - <button hidden="YES" toolTip="SRU library server, e.g. Library of Congres" horizontalHuggingPriority="749" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8U9-Rn-xYX"> - <rect key="frame" x="294" y="171.5" width="59" height="15"/> + <button toolTip="SRU library server, e.g. Library of Congres" horizontalHuggingPriority="749" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="8U9-Rn-xYX"> + <rect key="frame" x="228" y="171.5" width="59" height="15"/> <buttonCell key="cell" type="radio" title="SRU" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="oe8-bG-yFU"> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <font key="font" metaFont="smallSystem"/> @@ -599,15 +599,15 @@ </buttonCell> <connections> <binding destination="-2" name="enabled" keyPath="editable" id="wpl-Kv-HYb"/> - <binding destination="-2" name="value" keyPath="typeTag" id="4Cf-ha-9hz"> + <binding destination="-2" name="value" keyPath="typeTag" id="LRN-wZ-1zH"> <dictionary key="options"> - <string key="NSValueTransformerName">BDSKIsThree</string> + <string key="NSValueTransformerName">BDSKIsTwo</string> </dictionary> </binding> </connections> </button> <button toolTip="DBLP computer science bibliography server" horizontalHuggingPriority="749" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Let-vJ-J5z"> - <rect key="frame" x="228" y="171.5" width="59" height="15"/> + <rect key="frame" x="294" y="171.5" width="59" height="15"/> <buttonCell key="cell" type="radio" title="DBLP" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" inset="2" id="JIL-v5-3UW"> <behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/> <font key="font" metaFont="smallSystem"/> @@ -614,9 +614,9 @@ </buttonCell> <connections> <binding destination="-2" name="enabled" keyPath="editable" id="0Mu-sG-L1U"/> - <binding destination="-2" name="value" keyPath="typeTag" id="EZp-d9-V9a"> + <binding destination="-2" name="value" keyPath="typeTag" id="uJt-eK-chF"> <dictionary key="options"> - <string key="NSValueTransformerName">BDSKIsTwo</string> + <string key="NSValueTransformerName">BDSKIsThree</string> </dictionary> </binding> </connections> @@ -650,6 +650,7 @@ <constraint firstItem="247" firstAttribute="firstBaseline" secondItem="296" secondAttribute="firstBaseline" id="16M-ne-hti"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="318" secondAttribute="trailing" constant="20" symbolic="YES" id="1No-Zr-Iui"/> <constraint firstItem="198" firstAttribute="trailing" secondItem="192" secondAttribute="trailing" id="1UR-R9-l8x"/> + <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="Let-vJ-J5z" secondAttribute="trailing" constant="20" symbolic="YES" id="1cu-jm-Tus"/> <constraint firstItem="260" firstAttribute="leading" secondItem="189" secondAttribute="leading" constant="12" id="1eh-ju-j1M"/> <constraint firstItem="196" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="189" secondAttribute="leading" constant="32" id="2JG-4Y-OvQ"/> <constraint firstItem="305" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="303" secondAttribute="trailing" constant="8" symbolic="YES" id="2Kr-UC-hIB"/> @@ -682,7 +683,6 @@ <constraint firstItem="303" firstAttribute="leading" secondItem="304" secondAttribute="trailing" constant="8" symbolic="YES" id="IDj-VH-hv1"/> <constraint firstItem="247" firstAttribute="width" secondItem="250" secondAttribute="width" id="Ivv-WU-XAN"/> <constraint firstItem="316" firstAttribute="top" secondItem="189" secondAttribute="top" constant="4" id="JQx-Np-uyM"/> - <constraint firstItem="8U9-Rn-xYX" firstAttribute="leading" secondItem="Let-vJ-J5z" secondAttribute="trailing" constant="8" symbolic="YES" id="Jwk-pI-dAP"/> <constraint firstItem="194" firstAttribute="top" secondItem="uYk-gJ-82e" secondAttribute="bottom" constant="8" symbolic="YES" id="Lqq-gp-DLz"/> <constraint firstItem="192" firstAttribute="firstBaseline" secondItem="190" secondAttribute="firstBaseline" id="N4D-Zj-4Ed"/> <constraint firstItem="Let-vJ-J5z" firstAttribute="firstBaseline" secondItem="753" secondAttribute="firstBaseline" id="O6h-Dy-rhd"/> @@ -704,6 +704,7 @@ <constraint firstItem="258" firstAttribute="leading" secondItem="189" secondAttribute="leading" constant="12" id="akZ-6M-6Ke"/> <constraint firstAttribute="trailing" secondItem="258" secondAttribute="trailing" constant="12" id="bcf-zK-Eeb"/> <constraint firstAttribute="trailing" relation="greaterThanOrEqual" secondItem="8U9-Rn-xYX" secondAttribute="trailing" constant="20" symbolic="YES" id="esF-2B-ds7"/> + <constraint firstItem="8U9-Rn-xYX" firstAttribute="leading" secondItem="RmO-um-4HP" secondAttribute="trailing" constant="8" symbolic="YES" id="f2m-Sw-3hc"/> <constraint firstItem="318" firstAttribute="leading" secondItem="189" secondAttribute="leading" constant="20" symbolic="YES" id="fDF-1D-GZm"/> <constraint firstItem="uYk-gJ-82e" firstAttribute="top" secondItem="192" secondAttribute="bottom" constant="8" symbolic="YES" id="fXy-AU-fRh"/> <constraint firstItem="RmO-um-4HP" firstAttribute="firstBaseline" secondItem="753" secondAttribute="firstBaseline" id="g0f-0y-iMC"/> @@ -720,7 +721,6 @@ <constraint firstItem="199" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="189" secondAttribute="leading" constant="32" id="lI1-xp-PUf"/> <constraint firstItem="201" firstAttribute="firstBaseline" secondItem="195" secondAttribute="firstBaseline" id="lzu-ID-byH"/> <constraint firstItem="198" firstAttribute="leading" secondItem="191" secondAttribute="trailing" constant="8" symbolic="YES" id="mAc-Si-EwZ"/> - <constraint firstItem="Let-vJ-J5z" firstAttribute="leading" secondItem="RmO-um-4HP" secondAttribute="trailing" constant="8" symbolic="YES" id="mvA-ap-FgW"/> <constraint firstItem="303" firstAttribute="firstBaseline" secondItem="304" secondAttribute="firstBaseline" id="nD3-V2-I1Z"/> <constraint firstItem="303" firstAttribute="trailing" secondItem="277" secondAttribute="trailing" id="oNc-7V-nlX"/> <constraint firstItem="Let-vJ-J5z" firstAttribute="width" secondItem="3BL-J9-tal" secondAttribute="width" id="ojz-fe-KDs"/> @@ -736,6 +736,7 @@ <constraint firstItem="277" firstAttribute="firstBaseline" secondItem="275" secondAttribute="firstBaseline" id="z5g-8P-nEH"/> <constraint firstItem="3BL-J9-tal" firstAttribute="leading" secondItem="753" secondAttribute="trailing" constant="8" symbolic="YES" id="zEm-kk-sRT"/> <constraint firstItem="247" firstAttribute="leading" secondItem="248" secondAttribute="trailing" constant="8" symbolic="YES" id="znZ-7n-OJv"/> + <constraint firstItem="Let-vJ-J5z" firstAttribute="leading" secondItem="8U9-Rn-xYX" secondAttribute="trailing" constant="8" symbolic="YES" id="ztU-K2-RJX"/> </constraints> </customView> </subviews> 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