zoom: Set option schema in SRU mode
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Aug 2011 12:19:24 +0000 (14:19 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 22 Aug 2011 12:19:24 +0000 (14:19 +0200)
src/filter_zoom.cpp

index ff73e19..ca1c47f 100644 (file)
@@ -1008,7 +1008,8 @@ void yf::Zoom::Frontend::prepare_elements(BackendPtr b,
     }
 
     b->set_option("elementSetName", element_set_name);
-
+    if (b->sptr->sru.length() && element_set_name)
+        b->set_option("schema", element_set_name);
 }
 
 Z_Records *yf::Zoom::Frontend::get_records(Odr_int start,