From 9a121950d3e3614bcbf3efdf52ba9aa2a6573ee0 Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Fri, 8 Jun 2007 10:01:07 +0000 Subject: [PATCH] Fixed a silly bug: displayed version info also if -l was specified. Added the missing break statement --- util/ill-params.txt | 15 +++++++++------ util/yaz-illclient.c | 5 +++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/util/ill-params.txt b/util/ill-params.txt index b4f55bb..77a9c23 100644 --- a/util/ill-params.txt +++ b/util/ill-params.txt @@ -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 + diff --git a/util/yaz-illclient.c b/util/yaz-illclient.c index f2734dc..bb62655 100644 --- a/util/yaz-illclient.c +++ b/util/yaz-illclient.c @@ -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; -- 1.7.10.4