+ // searchRetrieve
+ if (sru_pdu_req && sru_pdu_req->which == Z_SRW_searchRetrieve_request)
+ {
+ Z_SRW_searchRetrieveRequest *srw_req = sru_pdu_req->u.request;
+
+ // recordXPath unsupported.
+ //if (srw_req->recordXPath)
+ // yaz_add_srw_diagnostic(odr_decode(),
+ // &diag, &num_diags, 72, 0);
+ // sort unsupported
+ // if (srw_req->sort_type != Z_SRW_sort_type_none)
+ // yaz_add_srw_diagnostic(odr_decode(),
+ // &diag, &num_diags, 80, 0);
+ }
+ else
+ {
+ std::cout << "SRU OPERATION NOT SUPPORTED \n";
+ // TODO: make nice diagnostic return package
+ // package.session().close();
+ return;
+ }