+Added support for raw retrieval. Element Set Name R forces the
+text filter which returns the record in its original form.
+
Added numerical sort - triggered by structure=numeric (4=109).
Remote record import using Z39.50 Extended Services and Segments.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: retrieve.c,v $
- * Revision 1.13 2000-03-20 19:08:36 adam
+ * Revision 1.14 2001-01-22 11:41:41 adam
+ * Added support for raw retrieval (element set name "R").
+ *
+ * Revision 1.13 2000/03/20 19:08:36 adam
* Added remote record import using Z39.50 extended services and Segment
* Requests.
*
*basenamep = (char *) odr_malloc (stream, strlen(basename)+1);
strcpy (*basenamep, basename);
+ if (comp && comp->which == Z_RecordComp_simple &&
+ comp->u.simple->which == Z_ElementSetNames_generic)
+ {
+ if (!strcmp (comp->u.simple->u.generic, "R"))
+ file_type = "text";
+ }
if (!(rt = recType_byName (zh->service->recTypes,
file_type, subType, &clientData)))
{
/*
- * Copyright (C) 1994-1998, Index Data
+ * Copyright (C) 1994-2001, Index Data
* All rights reserved.
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: rectext.c,v $
- * Revision 1.13 1999-09-07 07:19:21 adam
+ * Revision 1.14 2001-01-22 11:41:41 adam
+ * Added support for raw retrieval (element set name "R").
+ *
+ * Revision 1.13 1999/09/07 07:19:21 adam
* Work on character mapping. Implemented replace rules.
*
* Revision 1.12 1999/05/26 07:49:14 adam
p->comp->u.simple->which == Z_ElementSetNames_generic)
elementSetName = p->comp->u.simple->u.generic;
+ /* don't make header for the R(aw) element set name */
+ if (elementSetName && !strcmp(elementSetName, "R"))
+ start_flag = 0;
while (1)
{
if (text_ptr + 4096 >= text_size)