X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy.pm;h=21b1a0f11dbdd072abe87d565e1358a123a06ce7;hb=01303eee8ef487105153d6fd8e2f9103a2ee69fd;hp=fea7d59a6915f800b1b4b77d9039b0c54871f908;hpb=614000e3248d3dffeb610c36ac28a0cc9b25bedf;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy.pm b/lib/ZOOM/IRSpy.pm index fea7d59..21b1a0f 100644 --- a/lib/ZOOM/IRSpy.pm +++ b/lib/ZOOM/IRSpy.pm @@ -1,4 +1,4 @@ -# $Id: IRSpy.pm,v 1.11 2006-07-24 17:00:36 mike Exp $ +# $Id: IRSpy.pm,v 1.14 2006-07-27 15:51:05 mike Exp $ package ZOOM::IRSpy; @@ -148,17 +148,22 @@ sub initialise { } my $rs = $this->{conn}->search(new ZOOM::Query::CQL($this->{query})); + #print "size='", $rs->size(), "'\n"; foreach my $i (1 .. $rs->size()) { my $target = _render_record($rs, $i-1, "id"); my $zeerex = _render_record($rs, $i-1, "zeerex"); + #print STDERR "making '$target' record with '$zeerex'\n"; $target2record{lc($target)} = new ZOOM::IRSpy::Record($target, $zeerex); + push @{ $this->{targets} }, $target + if $this->{allrecords}; } foreach my $target (keys %target2record) { my $record = $target2record{$target}; if (!defined $record) { $this->log("irspy_debug", "made new record for '$target'"); + #print STDERR "making '$target' record without zeerex\n"; $target2record{$target} = new ZOOM::IRSpy::Record($target); } else { $this->log("irspy_debug", "using existing record for '$target'"); @@ -196,6 +201,7 @@ sub check { my $res = $this->_run_test("Main"); foreach my $target (sort keys %{ $this->{target2record} }) { my $rec = $this->{target2record}->{$target}; + # It's a shame that LibXML can't pretty-print this print STDERR "$target: zeerex='", $rec->{zeerex}, "' = \n", $rec->{zeerex}->toString(), "\n"; ### Write record back to database, if modified.