Makefile
src/Makefile
include/Makefile
- include/yaz/Makefile
include/yaz++/Makefile
yaz++-config
src/yaz++-config
-SUBDIRS = yaz yaz++
+SUBDIRS = yaz++
* Copyright (c) 2000-2001, Index Data.
* See the file LICENSE for details.
*
- * $Id: yaz-z-server.h,v 1.6 2001-04-04 14:02:49 adam Exp $
+ * $Id: yaz-z-server.h,v 1.7 2001-04-05 13:09:44 adam Exp $
*/
#include <yaz++/yaz-z-assoc.h>
+#if HAVE_YAZ_URSULA_H
#include <yaz/zes-ursula.h>
+#endif
class Yaz_Z_Server;
};
+#if HAVE_YAZ_URSULA_H
class YAZ_EXPORT Yaz_Facility_Ursula : public IYaz_Server_Facility {
public:
virtual void ursula_service (Z_ExtendedServicesRequest *req,
Z_InitResponse *initResponse);
int recv(Yaz_Z_Server *server, Z_APDU *apdu);
};
-
+#endif
class YAZ_EXPORT Yaz_Facility_ILL : public IYaz_Server_Facility {
public:
-## $Id: Makefile.am,v 1.4 2001-04-04 14:02:49 adam Exp $
+## $Id: Makefile.am,v 1.5 2001-04-05 13:09:44 adam Exp $
INCLUDES=$(YAZINC) -I$(srcdir)/../include
libyaz___la_SOURCES=yaz-socket-manager.cpp yaz-pdu-assoc.cpp \
yaz-z-assoc.cpp yaz-proxy.cpp yaz-z-query.cpp yaz-ir-assoc.cpp \
yaz-z-server.cpp yaz-pdu-assoc-thread.cpp yaz-z-server-sr.cpp \
- yaz-z-server-ill.cpp zes-ursula.c yaz-z-server-ursula.cpp
+ yaz-z-server-ill.cpp
libyaz___la_LDFLAGS=-version-info 0:0:0
yaz_proxy_SOURCES=yaz-proxy-main.cpp
LDADD=libyaz++.la $(YAZLALIB)
-
-zes-ursula.c $(top_srcdir)/include/yaz/zes-ursula.h: ursula.tcl ursula.asn
- cd $(srcdir); ../../yaz/util/yaz-comp -d $(srcdir)/../../yaz/z39.50/z.tcl -d ursula.tcl -i yaz -I ../include ursula.asn
+++ /dev/null
-ESFormat-Ursula
-{Z39-50-extendedService DBC(105) UrsulaItemOrder (1)} DEFINITIONS ::=
- -- oid is 1.2.840.10003.9.1000.105.3
-BEGIN
-IMPORTS InternationalString FROM Z39-50-APDU-1995;
-
--- Ursula Reserveringer / bestillinger
-PDU ::= CHOICE {
- request [1] Request,
- update [2] Update,
- reservation [3] Reservation,
- renewal [4] Renewal
-}
-
--- Foresporgsel
-Request ::= SEQUENCE {
- libraryNo [1] IMPLICIT LibraryNo OPTIONAL,
- borrowerTickerNo [2] IMPLICIT InternationalString OPTIONAL,
- disposalType [3] IMPLICIT DisposalType OPTIONAL,
- lastUseDate [4] IMPLICIT OCTET STRING OPTIONAL,
- items [5] IMPLICIT SEQUENCE OF RequestItem,
- counter [6] IMPLICIT ServiceCounter OPTIONAL,
- priority [7] IMPLICIT Priority OPTIONAL,
- disposalNote [8] IMPLICIT DisposalNote OPTIONAL,
- overrule [9] IMPLICIT BOOLEAN OPTIONAL
-}
-
--- Opdatering/sletning
-Update ::= SEQUENCE {
- libraryNo [1] IMPLICIT LibraryNo OPTIONAL,
- disposalId [2] IMPLICIT OCTET STRING OPTIONAL,
- priority [3] IMPLICIT Priority OPTIONAL,
- counter [4] IMPLICIT ServiceCounter OPTIONAL,
- lastUseDate [5] IMPLICIT OCTET STRING OPTIONAL,
- disposalNote [6] IMPLICIT DisposalNote OPTIONAL
-}
-
--- Eksemplarreserveringer
-Reservation ::= CHOICE {
- request [1] IMPLICIT RequestItem,
- update [2] IMPLICIT SEQUENCE OF UpdateItem,
- del [3] IMPLICIT DeleteItem
-}
-
--- Fornyelse
-Renewal ::= SEQUENCE {
- libraryNo [1] IMPLICIT LibraryNo OPTIONAL,
- borrowerTicketNo [2] IMPLICIT BorrowerTicketNo OPTIONAL,
- copies [3] IMPLICIT SEQUENCE OF InternationalString OPTIONAL,
- newReturnDate [4] IMPLICIT InternationalString OPTIONAL,
- overrule [5] IMPLICIT BOOLEAN OPTIONAL
-}
-
-
-RequestItem ::= SEQUENCE {
- id [1] IMPLICIT OCTET STRING,
- titlePartNo [2] IMPLICIT InternationalString
-}
-
-UpdateItem ::= SEQUENCE {
- copyNo [1] IMPLICIT InternationalString,
- adviceTxt [2] IMPLICIT InternationalString
-}
-
-DeleteItem ::= SEQUENCE {
- copyNo [1] IMPLICIT InternationalString
-}
-
-DisposalType ::= OCTET STRING
-
-BorrowerTicketNo ::= InternationalString
-
-Priority ::= INTEGER
-
-ServiceCounter ::= INTEGER
-
-LibraryNo ::= InternationalString
-
-DisposalNote ::= InternationalString
-
+++ /dev/null
-# $Id: ursula.tcl,v 1.1 2001-04-04 14:02:49 adam Exp $
-
-set prefix(ESFormat-Ursula) {z_Urs Z_Urs Z_Urs}
-
-set m ESFormat-Ursula
-set filename($m) zes-ursula
* See the file LICENSE for details.
*
* $Log: yaz-my-client.cpp,v $
- * Revision 1.2 2001-04-04 14:02:49 adam
+ * Revision 1.3 2001-04-05 13:09:44 adam
+ * Removed ursula dependancy.
+ *
+ * Revision 1.2 2001/04/04 14:02:49 adam
* URSULA / Z-ruth service.
*
* Revision 1.1 2001/03/27 14:47:45 adam
#include <yaz++/yaz-ir-assoc.h>
#include <yaz++/yaz-pdu-assoc.h>
#include <yaz++/yaz-socket-manager.h>
+
+#if HAVE_YAZ_URSULA_H
#include <yaz/zes-ursula.h>
+#endif
extern "C" {
#if HAVE_READLINE_READLINE_H
int cmd_init(char *args);
int cmd_format(char *args);
int cmd_proxy(char *args);
+#if HAVE_YAZ_URSULA_H
int cmd_ursula(char *args);
+#endif
};
return 1;
}
+#if HAVE_YAZ_URSULA_H
int MyClient::cmd_ursula(char *args)
{
Z_APDU *apdu = create_Z_PDU(Z_APDU_extendedServicesRequest);
wait();
return 1;
}
+#endif
int MyClient::processCommand(const char *commandLine)
{
{"init", &MyClient::cmd_init, ""},
{"format", &MyClient::cmd_format, "<record-syntax>"},
{"proxy", &MyClient::cmd_proxy, "<host>:[':'<port>]"},
+#if HAVE_YAZ_URSULA_H
{"ursula", &MyClient::cmd_ursula, ""},
+#endif
{0,0,0}
};
* See the file LICENSE for details.
*
* $Log: yaz-my-server.cpp,v $
- * Revision 1.3 2001-04-04 14:02:49 adam
+ * Revision 1.4 2001-04-05 13:09:44 adam
+ * Removed ursula dependancy.
+ *
+ * Revision 1.3 2001/04/04 14:02:49 adam
* URSULA / Z-ruth service.
*
* Revision 1.2 2001/03/29 15:14:26 adam
Z_Records *records);
};
+#if HAVE_YAZ_URSULA_H
class MyUrsula : public Yaz_Facility_Ursula {
public:
void ursula_service (Z_ExtendedServicesRequest *req,
Z_UrsPDU *u,
Z_ExtendedServicesResponse *res);
};
+#endif
class MyServer : public Yaz_Z_Server {
public:
private:
MyRetrieval m_retrieval;
MyILL m_ill;
+#if HAVE_YAZ_URSULA_H
MyUrsula m_ursula;
+#endif
int m_no;
};
}
+#if HAVE_YAZ_URSULA_H
void MyUrsula::ursula_service (Z_ExtendedServicesRequest *req,
Z_UrsPDU *u,
Z_ExtendedServicesResponse *res)
break;
}
}
+#endif
int MyRetrieval::sr_init (Z_InitRequest *initRequest,
Z_InitResponse *initResponse)
new_server->timeout(900);
new_server->facility_add(&new_server->m_retrieval, "my sr");
new_server->facility_add(&new_server->m_ill, "my ill");
+#if HAVE_YAZ_URSULA_H
new_server->facility_add(&new_server->m_ursula, "my ill");
+#endif
new_server->set_APDU_log(get_APDU_log());