MARC to XML conversion
[yaz-moved-to-github.git] / zoom / zoomtst5.c
index a267465..5061d13 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: zoomtst5.c,v 1.6 2001-11-18 21:14:23 adam Exp $
+ * $Id: zoomtst5.c,v 1.9 2002-02-28 13:21:16 adam Exp $
  *
  * Asynchronous multi-target client doing search, sort and present
  */
@@ -86,7 +86,7 @@ int main(int argc, char **argv)
            int pos;
            printf ("%s: %d hits\n", ZOOM_connection_option_get(z[i], "host"),
                    ZOOM_resultset_size(r[i]));
-           /* go through all records at target */
+           /* go through first 20 records at target */
            for (pos = 0; pos < 20; pos++)
            {
                ZOOM_record rec;
@@ -97,7 +97,7 @@ int main(int argc, char **argv)
                /* get database for record and record itself at pos */
 
                db = ZOOM_record_get (rec,  "database", 0);
-               str = ZOOM_record_get (rec, "render", &len);
+               str = ZOOM_record_get (rec, "xml", &len);
                syntax = ZOOM_record_get (rec, "syntax", &len);
                /* if rec is non-null, we got a record for display */
                if (str)
@@ -106,7 +106,7 @@ int main(int argc, char **argv)
                            (db ? db : "unknown"));
                    if (rec)
                        fwrite (str, 1, len, stdout);
-                   putchar ('\n');
+                   printf ("\n");
                }
            }
        }