-/* $Id: http_command.c,v 1.48 2007-06-06 09:00:56 marc Exp $
+/* $Id: http_command.c,v 1.49 2007-06-11 12:02:48 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
*/
/*
- * $Id: http_command.c,v 1.48 2007-06-06 09:00:56 marc Exp $
+ * $Id: http_command.c,v 1.49 2007-06-11 12:02:48 adam Exp $
*/
#include <stdio.h>
switch (cmd->type)
{
case Metadata_type_generic:
- wrbuf_puts(w, md->data.text);
+ wrbuf_xmlputs(w, md->data.text);
break;
case Metadata_type_year:
wrbuf_printf(w, "%d", md->data.number.min);
-/* $Id: logic.c,v 1.38 2007-06-07 12:27:03 adam Exp $
+/* $Id: logic.c,v 1.39 2007-06-11 12:02:48 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
int first, last;
type = xmlGetProp(n, (xmlChar *) "type");
- value = xmlNodeListGetString(xdoc, n->children, 0);
+ value = xmlNodeListGetString(xdoc, n->children, 1);
if (!type || !value)
continue;