yaz-ztest returns schema for MARCXML test records
[yaz-moved-to-github.git] / ztest / ztest.c
index 32b8857..b7807d9 100644 (file)
@@ -278,7 +278,7 @@ Z_OtherInformation *build_facet_response(ODR odr, Z_FacetList *facet_list) {
         yaz_facet_attr_get_z_attributes(facet_list->elements[index]->attributes,
                                         &attrvalues);
         yaz_log(YLOG_LOG, "Attributes: %s limit=%d start=%d sort=%d",
-                attrvalues.useattr,
+                attrvalues.useattr ? attrvalues.useattr : "NONE",
                 attrvalues.limit,
                 attrvalues.start,
                 attrvalues.sortorder);
@@ -935,6 +935,7 @@ int ztest_fetch(void *handle, bend_fetch_rr *r)
         {
             r->len = strlen(cp);
             r->record = cp;
+            r->schema = "info:srw/schema/1/marcxml-1.1";
         }
         else
         {