-$Id: CHANGELOG,v 1.17 1996-06-05 08:59:22 adam Exp $
+$Id: CHANGELOG,v 1.18 1996-06-05 09:26:19 adam Exp $
06/19/95 Release of ir-tcl-1.0b
------------------------------------------------------
20/02/96 Identification of record syntaxes, etc. are handled by the YAZ
oid utilities.
-29/05/96 Set function getGrs enhanced so that specific elements can be
+05/06/96 Set function getGrs enhanced so that specific elements can be
extracted by (<tagType>,<tagVal>) - pairs.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: grs.c,v $
- * Revision 1.6 1996-06-05 08:59:23 adam
+ * Revision 1.7 1996-06-05 09:26:20 adam
+ * Bug fix: the change above introduced an error.
+ *
+ * Revision 1.6 1996/06/05 08:59:23 adam
* Changed syntax of element specs in GRS-1 retrieval.
*
* Revision 1.5 1996/05/29 20:28:08 adam
else
{
if (*cp0 == '(')
- cp++;
+ cp0++;
if (atoi(cp0) == e->tagType)
{
if (e->tagWhich == Z_StringOrNumeric_numeric)
}
else
{
- if (!strcmp (cp1+1, e->tagVal.str))
+ int len = strlen(cp1+1);
+ if (cp1[len] == ')')
+ len--;
+ if (len && strlen(e->tagVal.str) == len &&
+ !memcmp (cp1+1, e->tagVal.str, len))
yes = 1;
}
}