X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fbook.xml;h=566a9ee29f2189ab42700ea0a3ae29c8bddc405a;hb=12e3402d596875a42f3d92d251b4d8f70c0cf661;hp=bec3735d086f4364653eb59f10e42c199ca3da92;hpb=16346103d5c9e44c7e62f2989af9486e217042a5;p=metaproxy-moved-to-github.git diff --git a/doc/book.xml b/doc/book.xml index bec3735..566a9ee 100644 --- a/doc/book.xml +++ b/doc/book.xml @@ -1,25 +1,16 @@ - %local; - - - %common; - - - - + + + %idcommon; ]> - - + Metaproxy - User's Guide and Reference @@ -35,8 +26,8 @@ &version; - 2005-2007 - Index Data ApS + 2005-2011 + Index Data @@ -48,10 +39,9 @@ processes, interprets and redirects requests from IR clients using standard protocols such as the binary ANSI/NISO Z39.50 - and the information search and retireval - web services SRU - and SRW, as - well as functioning as a limited + and the information search and retrieval + web service SRU + as well as functioning as a limited HTTP server. @@ -65,10 +55,7 @@ using the filter API. - Metaproxy is not open-source software, but - may be freely downloaded, unpacked, inspected, built and run for - evaluation purposes. Deployment requires a separate, commercial, - license. + Metaproxy is covered by the GNU General Public License version 2. @@ -86,13 +73,12 @@ Introduction - Metaproxy is a stand alone program that acts as a universal router, proxy and encapsulated metasearcher for information retrieval protocols such - as Z39.50, and in the future - SRU and SRW. + as Z39.50 and + SRU. To clients, it acts as a server of these protocols: it can be searched, records can be retrieved from it, etc. To servers, it acts as a client: it searches in them, @@ -137,60 +123,6 @@ including examples. - - - The Metaproxy License - - - - You are allowed to download this software for evaluation purposes. - You can unpack it, build it, run it, see how it works and how it fits - your needs, all at zero cost. - - - - - You may NOT deploy the software. For the purposes of this license, - deployment means running it for any purpose other than evaluation, - whether or not you or anyone else makes a profit from doing so. If - you wish to deploy the software, you must first contact Index Data and - arrange to purchase a DEPLOYMENT LICENCE. If you are unsure - whether or not your proposed use of the software constitutes - deployment, email us at info@indexdata.com - for clarification. - - - - - You may modify your copy of the software (fix bugs, add features) - if you need to. We encourage you to send your changes back to us for - integration into the master copy, but you are not obliged to do so. You - may NOT pass your changes on to any other party. - - - - - There is NO WARRANTY for this software, to the extent permitted by - applicable law. We provide the software ``as is'' without warranty of - any kind, either expressed or implied, including, but not limited to, the - implied warranties of MERCHANTABILITY and FITNESS FOR A - PARTICULAR PURPOSE. The entire risk as to the quality and - performance of the software is with you. Should the software prove - defective, you assume the cost of all necessary servicing, repair or - correction. In no event unless required by applicable law will we be - liable to you for damages, arising out of the use of the software, - including but not limited to loss of data or data being rendered - inaccurate. - - - - - All rights to the software are reserved by Index Data except where - this license explicitly says otherwise. - - - - Installation @@ -217,7 +149,8 @@ The popular C++ library. Initial versions of Metaproxy - was built with 1.33.0. Version 1.33.1 works too. + was built with 1.32 but this is no longer supported. + Metaproxy is known to work with Boost version 1.33 through 1.38. @@ -244,67 +177,98 @@ tools binary packages. If, for example, Libxml2/libxslt are already installed as development packages use those (and omit compilation). - - - Libxml2/libxslt: - - - gunzip -c libxml2-version.tar.gz|tar xf - - cd libxml2-version - ./configure - make - su - make install - - - gunzip -c libxslt-version.tar.gz|tar xf - - cd libxslt-version - ./configure - make - su - make install - - - YAZ/YAZ++: - - - gunzip -c yaz-version.tar.gz|tar xf - - cd yaz-version - ./configure - make - su - make install - - - gunzip -c yazpp-version.tar.gz|tar xf - - cd yazpp-version - ./configure - make - su - make install - - - Boost: - - - gunzip -c boost-version.tar.gz|tar xf - - cd boost-version - ./configure - make - su - make install - - - Metaproxy: - - - gunzip -c metaproxy-version.tar.gz|tar xf - - cd metaproxy-version - ./configure - make - su - make install - + +
+ Libxml2/libxslt + + Libxml2/libxslt: + + + gunzip -c libxml2-version.tar.gz|tar xf - + cd libxml2-version + ./configure + make + su + make install + + + gunzip -c libxslt-version.tar.gz|tar xf - + cd libxslt-version + ./configure + make + su + make install + +
+
+ YAZ/YAZ++ + + gunzip -c yaz-version.tar.gz|tar xf - + cd yaz-version + ./configure + make + su + make install + + + gunzip -c yazpp-version.tar.gz|tar xf - + cd yazpp-version + ./configure + make + su + make install + +
+
+ Boost + + Metaproxy needs components thread and test from + Boost. + + + gunzip -c boost-version.tar.gz|tar xf - + cd boost-version + ./configure --with-libraries=thread,test --with-toolset=gcc + make + su + make install + + + However, under the hood bjam is used. You can invoke that with + + + ./bjam --toolset=gcc --with-thread --with-test stage + + + Replace stage with clean / + install to perform clean and install respectively. + + + Add --prefix=DIR to install Boost in other + prefix than /usr/local. + +
+
+ Metaproxy + + gunzip -c metaproxy-version.tar.gz|tar xf - + cd metaproxy-version + ./configure + make + su + make install + + + You may have to tell configure where Boost is installed by supplying + options --with-boost and --with-boost-toolset. + The former sets the PREFIX for Boost (same as --prefix for Boost above). + The latter the compiler toolset (eg. gcc34). + + + Pass --help to configure to get a list of + available options. + +
@@ -321,7 +285,10 @@ There is currently no official Debian package for YAZ++. - And the Debian package for YAZ is probably too old. + And the official Debian package for YAZ is probably too old. + But Index Data bulds "new" versions of those for Debian (i386 only). + + Update the /etc/apt/sources.list to include the Index Data repository. See YAZ' Download Debian @@ -329,11 +296,9 @@ apt-get install libxslt1-dev - apt-get install libyazpp-dev + apt-get install libyazpp2-dev apt-get install libboost-dev apt-get install libboost-thread-dev - apt-get install libboost-date-time-dev - apt-get install libboost-program-options-dev apt-get install libboost-test-dev @@ -366,7 +331,7 @@ There is currently no official RPM package for YAZ++. - See the YAZ++ pages + See the YAZ++ pages for more information on a Unix tarball install. @@ -381,44 +346,17 @@ Metaproxy can be compiled with Microsoft Visual Studio. - Version 2003 (C 7.1) and 2005 (C 8.0) is known to work. + Versions 2003 (C 7.1), 2005 (C 8.0) and 2008 (C 9.0) is known to work.
Boost - Get Boost from its home page. - You also need Boost Jam (an alternative to make). - That's also available from the Boost home page. - The files to be downloaded are called something like: - boost_1_33-1.exe - and - boost-jam-3.1.12-1-ntx86.zip. - Unpack Boost Jam first. Put bjam.exe - in your system path. Make a command prompt and ensure - it can be found automatically. If not check the PATH. - The Boost .exe is a self-extracting exe with - complete source for Boost. Compile that source with - Boost Jam (An alternative to Make). - The compilation takes a while. - For Visual Studio 2003, use - - bjam "-sTOOLS=vc-7_1" - - Here vc-7_1 refers to a "Toolset" (compiler system). - For Visual Studio 2005, use - - bjam "-sTOOLS=vc-8_0" - - To install the libraries in a common place, use - - bjam "-sTOOLS=vc-7_1" install - - (or vc-8_0 for VS 2005). - - - By default, the Boost build process installs the resulting - libraries + header files in - \boost\lib, \boost\include. + For Windows, it's easiest to get the precompiled Boost + package from here. + Several versions of the Boost libraries may be selected when + installing Boost for windows. Please choose at least the + multithreaded (non-DLL) version because + the Metaproxy makefile uses that. For more information about installing Boost refer to the @@ -436,7 +374,7 @@ Libxslt has other dependencies, but these can all be downloaded - from the same site. Get the following: + from the same site. Get the following package: iconv, zlib, libxml2, libxslt.
@@ -454,9 +392,7 @@ YAZ++ Get YAZ++ as well. - Version 1.0 or later is required. For now get it from - Index Data's - Snapshot area. + Version 1.1.0 or later is required. YAZ++ includes NMAKE makefiles, similar to those found in the @@ -589,7 +525,7 @@ Record cache - Unsupported + Supported by filter session_shared Supported for last result set within one Z39.50/HTTP-keep alive session @@ -610,17 +546,17 @@ Retrieval and search limits - Unsupported + Supported using filter limit Supported Bandwidth limits - Unsupported + Supported using filter limit Supported Connect limits - Unsupported + Supported by filter frontend_net (connect-max) Supported @@ -631,7 +567,8 @@ Query check - Supported in a limited way using query_rewrite + Supported by query_rewrite which may be check + a query and throw diagnostics (errors) Supported @@ -781,7 +718,7 @@ Filters -
+
Introductory notes It's useful to think of Metaproxy as an interpreter providing a small @@ -880,7 +817,7 @@ Figure out what additional information we need in: --> -
+
<literal>auth_simple</literal> (mp::filter::AuthSimple) @@ -899,7 +836,7 @@ Figure out what additional information we need in:
-
+
<literal>backend_test</literal> (mp::filter::Backend_test) @@ -910,7 +847,7 @@ Figure out what additional information we need in:
-
+
<literal>bounce</literal> (mp::filter::Bounce) @@ -928,7 +865,7 @@ Figure out what additional information we need in:
-
+
<literal>cql_rpn</literal> (mp::filter::CQLtoRPN) @@ -941,7 +878,7 @@ Figure out what additional information we need in:
-
+
<literal>frontend_net</literal> (mp::filter::FrontendNet) @@ -952,7 +889,7 @@ Figure out what additional information we need in:
-
+
<literal>http_file</literal> (mp::filter::HttpFile) @@ -969,7 +906,7 @@ Figure out what additional information we need in:
-
+
<literal>load_balance</literal> (mp::filter::LoadBalance) @@ -989,7 +926,7 @@ Figure out what additional information we need in:
-
+
<literal>log</literal> (mp::filter::Log) @@ -999,7 +936,7 @@ Figure out what additional information we need in:
-
+
<literal>multi</literal> (mp::filter::Multi) @@ -1010,7 +947,7 @@ Figure out what additional information we need in:
-
+
<literal>query_rewrite</literal> (mp::filter::QueryRewrite) @@ -1026,7 +963,7 @@ Figure out what additional information we need in:
-
+
<literal>record_transform</literal> (mp::filter::RecordTransform) @@ -1040,7 +977,7 @@ Figure out what additional information we need in:
-
+
<literal>session_shared</literal> (mp::filter::SessionShared) @@ -1051,7 +988,7 @@ Figure out what additional information we need in:
-
+
<literal>sru_z3950</literal> (mp::filter::SRUtoZ3950) @@ -1073,7 +1010,7 @@ Figure out what additional information we need in:
-
+
<literal>template</literal> (mp::filter::Template) @@ -1086,7 +1023,7 @@ Figure out what additional information we need in:
-
+
<literal>virt_db</literal> (mp::filter::VirtualDB) @@ -1101,7 +1038,7 @@ Figure out what additional information we need in:
-
+
<literal>z3950_client</literal> (mp::filter::Z3950Client) @@ -1119,7 +1056,7 @@ Figure out what additional information we need in:
-
+
<literal>zeerex_explain</literal> (mp::filter::ZeerexExplain) @@ -1187,7 +1124,7 @@ Figure out what additional information we need in: Configuration: the Metaproxy configuration file format -
+
Introductory notes If Metaproxy is an interpreter providing operations on packages, then @@ -1212,11 +1149,19 @@ Figure out what additional information we need in: <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0"> - The top-level element is <metaproxy>. This contains a - <start> element, a <filters> element and a - <routes> element, in that order. <filters> is - optional; the other two are mandatory. All three are - non-repeatable. + The top-level element is <metaproxy>. This contains + a <dlpath> element, + a <start> element, + a <filters> element and + a <routes> element, in that order. <dlpath> and + <filters> are optional; the other two are mandatory. + All four are non-repeatable. + + + The <dlpath;> element contains a text element which + specifies the location of filter modules. This is only needed + if Metaproxy must load 3rd party filters (most filters with Metaproxy + are built into the Metaproxy application). The <start> element is empty, but carries a @@ -1269,6 +1214,7 @@ Figure out what additional information we need in: + /usr/lib/metaproxy/modules @@ -1369,7 +1315,7 @@ Figure out what additional information we need in: Virtual databases and multi-database searching -
+
Introductory notes Two of Metaproxy's filters are concerned with multiple-database @@ -1703,13 +1649,8 @@ Z> merges them into a single Search response, which is what eventually makes it back to the client. -
- -
- A picture is worth a thousand words (but only five hundred on 64-bit architectures) - - + @@ -1726,13 +1667,10 @@ Z> document.] - - - +
@@ -1742,7 +1680,6 @@ Z> Metaproxy can act as SRU and - SRW web service server, which translates web service requests to ANSI/NISO Z39.50 packages and sends them off to common available targets. @@ -1833,9 +1770,8 @@ Z> - A typical minimal example SRU and - SRW server configuration file is found - in the tarball distribution at + A typical minimal example SRU + server configuration file is found in the tarball distribution at etc/config-sru-to-z3950.xml. @@ -1861,7 +1797,7 @@ Z> Classes in the Metaproxy source code -
+
Introductory notes Stop! Do not read this! @@ -1907,7 +1843,7 @@ Z> parentheses. -
+
<literal>mp::FactoryFilter</literal> (<filename>factory_filter.cpp</filename>) @@ -1922,7 +1858,7 @@ Z>
-
+
<literal>mp::FactoryStatic</literal> (<filename>factory_static.cpp</filename>) @@ -1937,7 +1873,7 @@ Z>
-
+
<literal>mp::filter::Base</literal> (<filename>filter.cpp</filename>) @@ -1954,7 +1890,7 @@ Z>
-
+
<literal>mp::filter::AuthSimple</literal>, <literal>Backend_test</literal>, etc. (<filename>filter_auth_simple.cpp</filename>, @@ -1996,7 +1932,7 @@ Z> </itemizedlist> </section> - <section> + <section id="class-Package"> <title><literal>mp::Package</literal> (<filename>package.cpp</filename>) @@ -2007,7 +1943,7 @@ Z>
-
+
<literal>mp::Pipe</literal> (<filename>pipe.cpp</filename>) @@ -2017,7 +1953,7 @@ Z>
-
+
<literal>mp::RouterChain</literal> (<filename>router_chain.cpp</filename>) @@ -2025,7 +1961,7 @@ Z>
-
+
<literal>mp::RouterFleXML</literal> (<filename>router_flexml.cpp</filename>) @@ -2033,7 +1969,7 @@ Z>
-
+
<literal>mp::Session</literal> (<filename>session.cpp</filename>) @@ -2041,7 +1977,7 @@ Z>
-
+
<literal>mp::ThreadPoolSocketObserver</literal> (<filename>thread_pool_observer.cpp</filename>) @@ -2049,7 +1985,7 @@ Z>
-
+
<literal>mp::util</literal> (<filename>util.cpp</filename>) @@ -2060,7 +1996,7 @@ Z>
-
+
<literal>mp::xml</literal> (<filename>xmlutil.cpp</filename>) @@ -2117,7 +2053,7 @@ Z> Reference - + The material in this chapter is drawn directly from the individual manual entries. In particular, the Metaproxy invocation section is @@ -2128,6 +2064,36 @@ Z> &manref; + + + License + + ©right; + + + Metaproxy is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2, or (at your option) any later + version. + + + + Metaproxy is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + for more details. + + + + You should have received a copy of the GNU General Public License + along with Metaproxy; see the file LICENSE. If not, write to the + Free Software Foundation, + 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + + + + &gpl2;