Skip to content

Commit

Permalink
continuing futzing
Browse files Browse the repository at this point in the history
svn path=/bioperl-dev/branches/eutils-soap-run/; revision=16660
  • Loading branch information
maj committed Jan 11, 2010
1 parent b825d5f commit 32cfce1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions lib/Bio/DB/SoapEUtilities.pm
Expand Up @@ -113,6 +113,7 @@ use Bio::Root::Root;
use Bio::DB::ESoap;
use Bio::DB::SoapEUtilities::DocSumAdaptor;
use Bio::DB::SoapEUtilities::FetchAdaptor;
use Bio::DB::SoapEUtilities::GQueryAdaptor;
use Bio::DB::SoapEUtilities::LinkAdaptor;
use Bio::DB::SoapEUtilities::Result;

Expand Down Expand Up @@ -265,6 +266,12 @@ sub run {
);
last;
};
$_ eq 'egquery' && do {
$adaptor = Bio::DB::SoapEUtilities::GQueryAdaptor->new(
-result => $result
);
last;
};
$_ eq 'efetch' && do {
$adaptor = Bio::DB::SoapEUtilities::FetchAdaptor->new(
-result => $result
Expand Down
6 changes: 3 additions & 3 deletions lib/Bio/DB/SoapEUtilities/DocSumAdaptor.pm
Expand Up @@ -125,7 +125,7 @@ sub next_docsum {

my $names = [];
for (my $i = 1; my $data = $som->dataof("$stem/[$i]"); $i++) {
if ( $data->value ) {
if ( $data->value and $data->value !~ /^\s*$/) {
my $name = $data->attr->{'Name'}[0];
next unless $name;
my $content = $data->value->{'ItemContent'};
Expand Down Expand Up @@ -192,8 +192,8 @@ sub new {
my $d = shift;
my $k = \'_\'.$method;
$self->{$k} = $d if $d;
return (ref $self->{$k} eq \'ARRAY\') ?
@{$self->{$k}} : $self->{$k};'
return (ref($self->{$k}) eq \'ARRAY\' ?
@{$self->{$k}} : $self->{$k});'

);
return $self;
Expand Down

0 comments on commit 32cfce1

Please sign in to comment.