<proxy>
<target default="1" name="voyager">
<!-- default target -->
- <url>z3950.loc.gov:7090/voyager</url>
+ <url>z3950.loc.gov:7094/voyager</url>
<keepalive>1</keepalive>
<limit><!-- limits .. -->
<bandwidth>200000</bandwidth>
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy-config.cpp,v 1.2 2003-10-03 13:01:42 adam Exp $
+ * $Id: yaz-proxy-config.cpp,v 1.3 2003-10-04 06:44:16 adam Exp $
*/
#include <yaz/log.h>
}
#endif
+#if HAVE_XML2
int Yaz_ProxyConfig::check_type_1_attributes(ODR odr, xmlNodePtr ptr,
Z_AttributeList *attrs,
char **addinfo)
}
return 0;
}
+#endif
+#if HAVE_XML2
int Yaz_ProxyConfig::check_type_1_structure(ODR odr, xmlNodePtr ptr,
Z_RPNStructure *q,
char **addinfo)
}
return 0;
}
+#endif
+#if HAVE_XML2
int Yaz_ProxyConfig::check_type_1(ODR odr, xmlNodePtr ptr, Z_RPNQuery *query,
char **addinfo)
{
// possibly check for Bib-1
return check_type_1_structure(odr, ptr, query->RPNStructure, addinfo);
}
+#endif
int Yaz_ProxyConfig::check_query(ODR odr, const char *name, Z_Query *query,
char **addinfo)
{
+#if HAVE_XML2
xmlNodePtr ptr;
ptr = find_target_node(name);
if (query->which == Z_Query_type_1 || query->which == Z_Query_type_101)
return check_type_1(odr, ptr, query->u.type_1, addinfo);
}
+#endif
return 0;
}
+#if HAVE_XML2
xmlNodePtr Yaz_ProxyConfig::find_target_node(const char *name)
{
xmlNodePtr ptr;
}
return 0;
}
-
+#endif
void Yaz_ProxyConfig::get_target_info(const char *name,
const char **url,
* Copyright (c) 1998-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-proxy.cpp,v 1.49 2003-10-03 13:01:42 adam Exp $
+ * $Id: yaz-proxy.cpp,v 1.50 2003-10-04 06:44:16 adam Exp $
*/
#include <assert.h>
if (!m_proxyTarget)
{
const char *proxy_host = get_proxy(oi);
- if (!proxy_host)
+ if (proxy_host)
{
xfree(m_default_target);
m_default_target = xstrdup(proxy_host);