On Nov 29, 2005, at 1:35 PM, Walter Lewis wrote:

I'm going to break a personal rule and leave most of the rest of this thread attached at the bottom for those who missed it as they returned to work on Monday.

Eric's solution, to hard code an explain package for each SRU application, was one I'm willing to implement, unless someone has an equally brilliant way of doing it within Ed and Brian's framework.

What *is* SRU::Response::Explain->record () expecting?

Good question :-) It's expecting a SRU::Response::Record object, which you could stuff your explain XML into if you wish.

        $record = XML::Response::Record->new();
        $record->recordData($xml);

        $explain_response->record($record);

In this example $xml is simply a string containing a chunk of XML that'll go back as the <record> element in the <explainResponse> element.

//Ed

Reply via email to