When author link is clicked, all books by that author will be found.
[pazpar2-moved-to-github.git] / src / logic.c
index 1f61db6..d6a4e0b 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: logic.c,v 1.2 2007-04-16 13:22:17 marc Exp $
+/* $Id: logic.c,v 1.4 2007-04-17 07:52:03 marc Exp $
    Copyright (c) 2006-2007, Index Data.
 
 This file is part of Pazpar2.
@@ -185,10 +185,9 @@ static void send_init(IOCHAN i)
         && 0 < strlen(cl->database->database->url))
     {
 #if YAZ_VERSIONL >= 0x020163
-        const int *oid_proxy = yaz_string_to_oid(yaz_oid_std(),
-                                                 CLASS_USERINFO, OID_STR_PROXY);
         yaz_oi_set_string_oid(&a->u.initRequest->otherInfo,
-                              global_parameters.odr_out, oid_proxy,
+                              global_parameters.odr_out,
+                              yaz_oid_userinfo_proxy,
                               1, cl->database->database->url);
 #else
         yaz_oi_set_string_oidval(&a->u.initRequest->otherInfo,
@@ -700,7 +699,9 @@ static struct record *ingest_record(struct client *cl, Z_External *rec)
     xmlFree(mergekey);
     normalize_mergekey((char *) mergekey_norm, 0);
 
-    cluster = reclist_insert(global_parameters.server->service, se->reclist, res, (char *) mergekey_norm, 
+    cluster = reclist_insert(se->reclist, 
+                             global_parameters.server->service, 
+                             res, (char *) mergekey_norm, 
                              &se->total_merged);
     if (global_parameters.dump_records)
         yaz_log(YLOG_LOG, "Cluster id %d from %s (#%d)", cluster->recid,