Fixed a silly bug: displayed version info also if -l was specified.
authorHeikki Levanto <heikki@indexdata.dk>
Fri, 8 Jun 2007 10:01:07 +0000 (10:01 +0000)
committerHeikki Levanto <heikki@indexdata.dk>
Fri, 8 Jun 2007 10:01:07 +0000 (10:01 +0000)
Added the missing break statement

util/ill-params.txt
util/yaz-illclient.c

index b4f55bb..77a9c23 100644 (file)
@@ -4,19 +4,21 @@
 #
 # Lines are in form 
 #   key=value
-# key is a comma-separated list of fieldnames.
+# key is a comma-separated list of fieldnames (no spaces!)
 # value is anything that follows the equal sign.
 #
 
 ill,protocol-version-num=2
 
-#ill,transaction-id,initial-requester-id,person-or-institution-symbol,institution=100-310-658
-ill,transaction-id,initial-requester-id,person-or-institution-symbol,institution=IKM
-#ill,requester-id,person-or-institution-symbol,institution=100-310-658
-#ill,responder-id,person-or-institution-symbol,institution=100-310-658
+#ill,transaction-id,initial-requester-id,person-or-institution-symbol,institution=IKM
+# (seems not to be necessary)
+
 ill,requester-id,person-or-institution-symbol,institution=IKM
-#ill,responder-id,person-or-institution-symbol,institution=IKM
+ill,requester-idname-of-person-or-institution,name-of-institution=UNT Libraries
+
 ill,responder-id,person-or-institution-symbol,institution=OZZ
+ill,responder-idname-of-person-or-institution,name-of-institution=University of North Texas Health Science Center
+
 
 # service type 1 = loan
 ill,ill-service-type=1
@@ -28,3 +30,4 @@ ill,item-id,verification-reference-source=myself
 # Where to deliver it
 ill,delivery-address,postal-address,name-of-person-or-institution,name-of-person=TEST DATA
 delivery-address,postal-address,name-of-person-or-institution,name-of-institution=INDEX DATA
+
index f2734dc..bb62655 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 1995-2006, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: yaz-illclient.c,v 1.7 2007-05-30 13:59:04 heikki Exp $
+ * $Id: yaz-illclient.c,v 1.8 2007-06-08 10:01:07 heikki Exp $
  */
 
 /* WARNING - This is work in progress - not at all ready */
@@ -184,7 +184,7 @@ void parseargs( int argc, char * argv[],  struct prog_args *args) {
     int ret;
     char *arg;
     char *prog=*argv;
-    char *version="$Id: yaz-illclient.c,v 1.7 2007-05-30 13:59:04 heikki Exp $"; /* from cvs */
+    char *version="$Id: yaz-illclient.c,v 1.8 2007-06-08 10:01:07 heikki Exp $"; /* from cvs */
     struct nameval *nv;
 
     /* default values */
@@ -222,6 +222,7 @@ void parseargs( int argc, char * argv[],  struct prog_args *args) {
             break;
         case 'l':
             yaz_log_init_file(arg);
+            break;
         case 'V':
             printf("%s %s",prog, version );
             break;