Happy new year
[yaz-moved-to-github.git] / src / zoom-record-cache.c
index e90ef02..7538ff5 100644 (file)
@@ -1,11 +1,14 @@
 /* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2012 Index Data
  * See the file LICENSE for details.
  */
 /**
  * \file zoom-record-cache.c
  * \brief Implements ZOOM record caching
  */
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
 
 #include <assert.h>
 #include <string.h>
@@ -13,6 +16,7 @@
 #include "zoom-p.h"
 
 #include <yaz/diagbib1.h>
+#include <yaz/record_render.h>
 #include <yaz/shptr.h>
 
 #if SHPTR
@@ -232,7 +236,7 @@ ZOOM_API(const char *)
         rec->wrbuf = wrbuf_alloc();
     wrbuf = rec->wrbuf;
 #endif
-    return ZOOM_npr_format(rec->npr, rec->schema, wrbuf, type_spec, len);
+    return yaz_record_render(rec->npr, rec->schema, wrbuf, type_spec, len);
 }
 
 ZOOM_API(int)