From 7b975f32e5bb0ae39b62167f9eb09b02be36d3f6 Mon Sep 17 00:00:00 2001 From: Sebastian Hammer Date: Mon, 10 Jun 1996 08:55:33 +0000 Subject: [PATCH] Added Summary. Unfinished work --- include/d1_map.h | 2 +- include/data1.h | 7 ++- include/proto.h | 36 ++++++++++++++- include/prt-arc.h | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++ include/prt-ext.h | 3 ++ 5 files changed, 174 insertions(+), 3 deletions(-) create mode 100644 include/prt-arc.h diff --git a/include/d1_map.h b/include/d1_map.h index 37dfe87..a11087b 100644 --- a/include/d1_map.h +++ b/include/d1_map.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995,1996 Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, diff --git a/include/data1.h b/include/data1.h index 25479fa..c72d9d7 100644 --- a/include/data1.h +++ b/include/data1.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: data1.h,v $ - * Revision 1.15 1996-06-03 09:46:03 quinn + * Revision 1.16 1996-06-10 08:55:34 quinn + * Added Summary. Unfinished work + * + * Revision 1.15 1996/06/03 09:46:03 quinn * Added OID type. * * Revision 1.14 1996/05/09 07:27:11 quinn @@ -261,6 +264,7 @@ typedef struct data1_element char *name; data1_tag *tag; data1_termlist *termlists; + struct data1_element *parent; struct data1_element *children; struct data1_element *next; } data1_element; @@ -382,5 +386,6 @@ data1_marctab *data1_read_marctab(char *file); char *data1_nodetomarc(data1_marctab *p, data1_node *n, int selected, int *len); char *data1_nodetoidsgml(data1_node *n, int select, int *len); Z_ExplainRecord *data1_nodetoexplain(data1_node *n, int select, ODR o); +Z_BriefBib *data1_nodetosummary(data1_node *n, int select, ODR o); #endif diff --git a/include/proto.h b/include/proto.h index a90a175..7cf2340 100644 --- a/include/proto.h +++ b/include/proto.h @@ -24,7 +24,10 @@ * OF THIS SOFTWARE. * * $Log: proto.h,v $ - * Revision 1.33 1996-02-23 10:00:51 quinn + * Revision 1.34 1996-06-10 08:55:36 quinn + * Added Summary. Unfinished work + * + * Revision 1.33 1996/02/23 10:00:51 quinn * SCAN Work * * Revision 1.32 1996/02/20 12:52:39 quinn @@ -1223,6 +1226,32 @@ typedef struct Z_SortRequest Z_OtherInformation *otherInfo; /* OPTIONAL */ } Z_SortRequest; +/* ----------------------- Resource Report ------------------ */ + +typedef struct Z_ResourceReportRequest +{ + Z_ReferenceId *referenceId; /* OPTIONAL */ + Z_ReferenceId *opId; /* OPTIONAL */ + Odr_oid *prefResourceReportFormat; /* OPTIONAL */ + Z_OtherInformation *otherInfo; /* OPTIONAL */ +} Z_ResourceReportRequest; + +typedef struct Z_ResourceReportResponse +{ + Z_ReferenceId *referenceId; /* OPTIONAL */ + int *resourceReportStatus; +#define Z_ResourceReportStatus_success 0 +#define Z_ResourceReportStatus_partial 1 +#define Z_ResourceReportStatus_failure_1 2 +#define Z_ResourceReportStatus_failure_2 3 +#define Z_ResourceReportStatus_failure_3 4 +#define Z_ResourceReportStatus_failure_4 5 +#define Z_ResourceReportStatus_failure_5 6 +#define Z_ResourceReportStatus_failure_6 7 + Z_External *resourceReport; /* OPTIONAL */ + Z_OtherInformation *otherInfo; /* OPTIONAL */ +} Z_ResourceReportResponse; + /* ------------------------ APDU ---------------------------- */ typedef struct Z_APDU @@ -1249,6 +1278,8 @@ typedef struct Z_APDU #define Z_APDU_accessControlResponse 18 #define Z_APDU_sortRequest 20 #define Z_APDU_sortResponse 21 +#define Z_APDU_resourceReportRequest 22 +#define Z_APDU_resourceReportResponse 23 union { Z_InitRequest *initRequest; @@ -1264,6 +1295,8 @@ typedef struct Z_APDU Z_ResourceControlRequest *resourceControlRequest; Z_ResourceControlResponse *resourceControlResponse; Z_TriggerResourceControlRequest *triggerResourceControlRequest; + Z_ResourceReportRequest *resourceReportRequest; + Z_ResourceReportResponse *resourceReportResponse; Z_ScanRequest *scanRequest; Z_ScanResponse *scanResponse; Z_SortRequest *sortRequest; @@ -1313,6 +1346,7 @@ Z_APDU *zget_APDU(ODR o, int which); #include #include #include +#include #include #include #include diff --git a/include/prt-arc.h b/include/prt-arc.h new file mode 100644 index 0000000..5dcabcf --- /dev/null +++ b/include/prt-arc.h @@ -0,0 +1,129 @@ +/* + * Copyright (c) 1995,1996 Index Data. + * + * Permission to use, copy, modify, distribute, and sell this software and + * its documentation, in whole or in part, for any purpose, is hereby granted, + * provided that: + * + * 1. This copyright and permission notice appear in all copies of the + * software and its documentation. Notices of copyright or attribution + * which appear at the beginning of any file must remain unchanged. + * + * 2. The names of Index Data or the individual authors may not be used to + * endorse or promote products derived from this software without specific + * prior written permission. + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED, OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * IN NO EVENT SHALL INDEX DATA BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR + * NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF + * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THIS SOFTWARE. + * + */ + +#ifndef PRT_ARC_H +#define PRT_ARC_H + +/* ------------------- Summary Record --------------------- */ + +typedef struct Z_FormatSpec +{ + char *type; + int *size; /* OPTIONAL */ + int *bestPosn; /* OPTIONAL */ +} Z_FormatSpec; + +typedef struct Z_BriefBib +{ + char *title; + char *author; /* OPTIONAL */ + char *callNumber; /* OPTIONAL */ + char *recordType; /* OPTIONAL */ + char *bibliographicLevel; /* OPTIONAL */ + int num_format; + Z_FormatSpec **format; /* OPTIONAL */ + char *publicationPlace; /* OPTIONAL */ + char *publicationDate; /* OPTIONAL */ + char *targetSystemKey; /* OPTIONAL */ + char *satisfyingElement; /* OPTIONAL */ + int *rank; /* OPTIONAL */ + char *documentId; /* OPTIONAL */ + char *abstract; /* OPTIONAL */ + Z_OtherInformation *otherInfo; /* OPTIONAL */ +} Z_BriefBib; + +/* ------------------- OPAC Record --------------------- */ + +typedef struct Z_CircRecord +{ + bool_t *availableNow; + char *availabilityDate; /* OPTIONAL */ + char *availableThru; /* OPTIONAL */ + char *restrictions; /* OPTIONAL */ + char *itemId; /* OPTIONAL */ + bool_t *renewable; + bool_t *onHold; + char *enumAndChron; /* OPTIONAL */ + char *midspine; /* OPTIONAL */ + char *temporaryLocation; /* OPTIONAL */ +} Z_CircRecord; + +typedef struct Z_Volume +{ + char *enumeration; /* OPTIONAL */ + char *chronology; /* OPTIONAL */ + char *enumAndChron; /* OPTIONAL */ +} Z_Volume; + +typedef struct Z_HoldingsAndCircData +{ + char *typeOfRecord; /* OPTIONAL */ + char *encodingLevel; /* OPTIONAL */ + char *format; /* OPTIONAL */ + char *receiptAcqStatus; /* OPTIONAL */ + char *generalRetention; /* OPTIONAL */ + char *completeness; /* OPTIONAL */ + char *dateOfReport; /* OPTIONAL */ + char *nucCode; /* OPTIONAL */ + char *localLocation; /* OPTIONAL */ + char *shelvingLocation; /* OPTIONAL */ + char *callNumber; /* OPTIONAL */ + char *shelvingData; /* OPTIONAL */ + char *copyNumber; /* OPTIONAL */ + char *publicNote; /* OPTIONAL */ + char *reproductionNote; /* OPTIONAL */ + char *termsUseRepro; /* OPTIONAL */ + char *enumAndChron; /* OPTIONAL */ + int num_volumes; + Z_Volume **volumes; /* OPTIONAL */ + int num_circulationData; + Z_CircRecord **circulationData;/* OPTIONAL */ +} Z_HoldingsAndCircData; + +typedef struct Z_HoldingsRecord +{ + int which; +#define Z_HoldingsRecord_marcHoldingsRecord 0 +#define Z_HoldingsRecord_holdingsAndCirc 1 + union + { + Z_External *marcHoldingsRecord; + Z_HoldingsAndCircData *holdingsAndCirc; + } u; +} Z_HoldingsRecord; + +typedef struct Z_OPACRecord +{ + Z_External *bibliographicRecord; /* OPTIONAL */ + int num_holdingsData; + Z_HoldingsRecord **holdingsData; /* OPTIONAL */ +} Z_OPACRecord; + +int z_BriefBib(ODR o, Z_BriefBib **p, int opt); +int z_OPACRecord(ODR o, Z_OPACRecord **p, int opt); + +#endif diff --git a/include/prt-ext.h b/include/prt-ext.h index 25ffa42..dccd86b 100644 --- a/include/prt-ext.h +++ b/include/prt-ext.h @@ -67,6 +67,8 @@ struct Z_External #define Z_External_itemOrder 10 #define Z_External_diag1 11 #define Z_External_espec1 12 +#define Z_External_summary 13 +#define Z_External_OPAC 14 union { /* Generic types */ @@ -85,6 +87,7 @@ struct Z_External Z_ItemOrder *itemOrder; Z_DiagnosticFormat *diag1; Z_Espec1 *espec1; + Z_BriefBib *summary; } u; }; -- 1.7.10.4