X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FConnection.pm;h=8d77f5fb63de6b7b28698c35535fc081db91526d;hp=a932cdef66e713042e1b9e92def2f9b215947b5a;hb=9a26de6de61feb7e4e7850b3ded54bc1501d34ed;hpb=9f6553202d269bbbf42836d90e3e426b72868834 diff --git a/lib/ZOOM/IRSpy/Connection.pm b/lib/ZOOM/IRSpy/Connection.pm index a932cde..8d77f5f 100644 --- a/lib/ZOOM/IRSpy/Connection.pm +++ b/lib/ZOOM/IRSpy/Connection.pm @@ -1,4 +1,4 @@ -# $Id: Connection.pm,v 1.13 2007-04-30 11:28:04 mike Exp $ +# $Id: Connection.pm,v 1.14 2007-05-01 15:32:51 mike Exp $ package ZOOM::IRSpy::Connection; @@ -132,12 +132,19 @@ sub irspy_connect { } -sub irspy_search_pqf { +sub irspy_search { my $this = shift(); - my($query, $udata, $options, %cb) = @_; + my($qtype, $qstr, $udata, $options, %cb) = @_; $this->add_task(new ZOOM::IRSpy::Task::Search - ($query, $this, $udata, $options, %cb)); + ($qtype, $qstr, $this, $udata, $options, %cb)); +} + + +# Wrapper for backwards compatibility +sub irspy_search_cql { + my $this = shift(); + return $this->irspy_search("pqf", @_); }