3 This directory includes files for using the XQuery module to convert
4 MARCXML to BIBFRAME records within Metaproxy.
6 In order for this to work, metaproxy and the mp-xquery software modules
7 must be installed. The conversion uses the marc2bibframe software available
8 from here: https://github.com/lcnetdev/marc2bibframe
13 Before these files can used, Metaproxy and the XQuery module must be
16 Metaproxy and XQuery package depend on other packages: libmetaproxy6,
19 These packages can be auto-fetched by adding the Index Data YUM repository.
20 Refer to http://ftp.indexdata.dk/pub/yaz/redhat/centos/6/README
23 When this repository is enabled, the following command should suffice:
24 sudo yum install mp-xquery metaproxy
30 config.xml is a complete Metaproxy configuration file. It includes
31 a standalone configuration that makes Metaproxy offer Z39.50 and SRU support
32 on port 9070. The modules in use are http_file (to serve XSL files),
33 sru_z3950 (SRU service), cql_rpn (CQL to RPN conversion), xquery (to convert
34 MARCXML to BIBFRAME), record_transform (to convert MARC21 to MARCXML), virt_db
35 (for database rewrite), log (to perform backend logging) and, finally,
36 z3950_client to interface a Z39.50 target.
38 It is important that the "xquery" module comes before the "record_transform"
39 so that the "xquery" moduel sees XML _only_ and not ISO2709-records. If it
40 does, they will be ignored (passed through) by the "xquery" module.
42 The xquery'module script name points to the full path of zorba3-0.xqy part
43 of marc2bibframe . Do not move zorba3-0.xqy from its place within the
44 marc2bibframe directory as other files are referred to and their relative
45 location must be preserved.
49 Contains a simple DC/CQL profile for driving a CQL to RPN conversion.
50 It is referred to from the cql_rpn filter in config.xml .
55 SRU explain sample configuration. It is referred to from the sru_z3950
56 filter in config.xml .
61 Client side XSL for brief - and full display. These must be located
62 so that the http_file filter can fetch them. For example, if these
63 files are located in /usr/share/bibframe/xsl , then http_file would hold
65 <filter type="http_file">
67 <documentroot>/usr/share/bibframe/xsl</documentroot>
69 <passthru>true</passthru>