From: Adam Dickmeiss Date: Tue, 21 Jun 2011 19:33:46 +0000 (+0200) Subject: Schema and beginnings of man page for zoom filter X-Git-Tag: v1.2.7~5 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=b8f2a2ba8d050d936b7f5fbdd6c2d057d032fec7;p=metaproxy-moved-to-github.git Schema and beginnings of man page for zoom filter --- diff --git a/doc/Makefile.am b/doc/Makefile.am index 31d6566..13d5b15 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -27,6 +27,7 @@ XMLMAN = metaproxy.xml \ template.xml \ virt_db.xml \ z3950_client.xml \ + zoom.xml \ zeerex_explain.xml MANFILES = metaproxy.1 \ @@ -47,8 +48,8 @@ MANFILES = metaproxy.1 \ template.3mp \ virt_db.3mp \ z3950_client.3mp \ - zeerex_explain.3mp - + zeerex_explain.3mp \ + zoom.3mp HTMLFILES = index.html diff --git a/doc/zoom.xml b/doc/zoom.xml new file mode 100644 index 0000000..7802331 --- /dev/null +++ b/doc/zoom.xml @@ -0,0 +1,101 @@ + + + %idcommon; +]> + + + Metaproxy + Index Data + + + + zoom + 3mp + Metaproxy Module + + + + zoom + Metaproxy Package ZOOM Module + + + DESCRIPTION + + This filter implements a generic client based on + ZOOM of YAZ. + The client implements the protocols that ZOOM C does: Z39.50, SRU + (GET, POST, SOAP) and SOLR . + + + + SCHEMA + + + + + EXAMPLES + + The following configuration illustrates most of the + facilities: + + + + + + + + + + + + + + + +]]> + + + + + + SEE ALSO + + + metaproxy + 1 + + + + + virt_db + 3mp + + + + + ©right; + + + diff --git a/etc/Makefile.am b/etc/Makefile.am index ec83b73..d3a76b1 100644 --- a/etc/Makefile.am +++ b/etc/Makefile.am @@ -20,7 +20,7 @@ xmlconfig = $(srcdir)/config-bytarget.xml \ $(srcdir)/config4.xml \ $(srcdir)/config5.xml \ $(srcdir)/config-cgi.xml \ - $(srcdir)/config-torus.xml \ + $(srcdir)/config-zoom.xml \ $(srcdir)/retrieval-info.xml config = example.simple-auth example.target-auth pqf2pqf.xsl explain.xml diff --git a/etc/config-torus.xml b/etc/config-torus.xml deleted file mode 100644 index 75abcf1..0000000 --- a/etc/config-torus.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - 10 - @:9000 - 30 - - - F - - - - - - - M - - - - roundrobin - - - B - - - - 30 - - - - - - diff --git a/xml/schema/Makefile.am b/xml/schema/Makefile.am index 3fbd9a5..93cfcdb 100644 --- a/xml/schema/Makefile.am +++ b/xml/schema/Makefile.am @@ -22,6 +22,7 @@ filter_session_shared.xsd \ filter_sru_z3950.xsd \ filter_virt_db.xsd \ filter_z3950_client.xsd \ +filter_zoom.xsd \ local.xsd \ metaproxy.xsd \ retrievalinfo.xsd @@ -44,6 +45,7 @@ filter_session_shared.rng \ filter_sru_z3950.rng \ filter_virt_db.rng \ filter_z3950_client.rng \ +filter_zoom.rng \ metaproxy.rng \ retrievalinfo.rng @@ -65,6 +67,7 @@ filter_session_shared.rnc \ filter_sru_z3950.rnc \ filter_virt_db.rnc \ filter_z3950_client.rnc \ +filter_zoom.rnc \ metaproxy.rnc \ retrievalinfo.rnc diff --git a/xml/schema/filter_virt_db.rnc b/xml/schema/filter_virt_db.rnc index 8e040f4..2e5568b 100644 --- a/xml/schema/filter_virt_db.rnc +++ b/xml/schema/filter_virt_db.rnc @@ -7,9 +7,6 @@ filter_virt_db = attribute id { xsd:NCName }?, attribute name { xsd:NCName }?, element mp:pass-vhosts { xsd:boolean }?, - element mp:torus { - attribute url { xsd:string } - }?, element mp:virtual { attribute route { xsd:NCName }?, element mp:database { xsd:string }, diff --git a/xml/schema/filter_virt_db.rng b/xml/schema/filter_virt_db.rng index cbca66a..f6708ef 100644 --- a/xml/schema/filter_virt_db.rng +++ b/xml/schema/filter_virt_db.rng @@ -20,13 +20,6 @@ - - - - - - - diff --git a/xml/schema/filter_virt_db.xsd b/xml/schema/filter_virt_db.xsd index ee610a9..d46362c 100644 --- a/xml/schema/filter_virt_db.xsd +++ b/xml/schema/filter_virt_db.xsd @@ -6,16 +6,10 @@ - - - - - - diff --git a/xml/schema/filter_zoom.rnc b/xml/schema/filter_zoom.rnc new file mode 100644 index 0000000..8882a62 --- /dev/null +++ b/xml/schema/filter_zoom.rnc @@ -0,0 +1,27 @@ +# Metaproxy XML config file schema + +namespace mp = "http://indexdata.com/metaproxy" + +filter_zoom = + attribute type { "zoom" }, + attribute id { xsd:NCName }?, + attribute name { xsd:NCName }?, + element mp:torus { + attribute url { xsd:string }, + attribute xsldir { xsd:string }? + }?, + element mp:fieldmap { + attribute cql { xsd:string }, + attribute ccl { xsd:string }? + }*, + element mp:cclmap { + element mp:qual { + attribute name { xsd:string }, + element mp:attr { + attribute type { xsd:string }, + attribute value { xsd:string } + }+ + }* + }? + + diff --git a/xml/schema/filter_zoom.rng b/xml/schema/filter_zoom.rng new file mode 100644 index 0000000..a174e3d --- /dev/null +++ b/xml/schema/filter_zoom.rng @@ -0,0 +1,64 @@ + + + + + + zoom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xml/schema/filter_zoom.xsd b/xml/schema/filter_zoom.xsd new file mode 100644 index 0000000..ef571b2 --- /dev/null +++ b/xml/schema/filter_zoom.xsd @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xml/schema/metaproxy.rnc b/xml/schema/metaproxy.rnc index 983b1cf..f128ed5 100644 --- a/xml/schema/metaproxy.rnc +++ b/xml/schema/metaproxy.rnc @@ -39,6 +39,7 @@ include "filter_session_shared.rnc" include "filter_sru_z3950.rnc" include "filter_virt_db.rnc" include "filter_z3950_client.rnc" +include "filter_zoom.rnc" any = (text | element * { attribute * { text }*, any })* @@ -79,6 +80,7 @@ filter = | filter_sru_z3950 | filter_virt_db | filter_z3950_client + | filter_zoom } filter_refid = attribute refid { xsd:NCName } diff --git a/xml/schema/metaproxy.rng b/xml/schema/metaproxy.rng index 00b42a3..81e8915 100644 --- a/xml/schema/metaproxy.rng +++ b/xml/schema/metaproxy.rng @@ -41,6 +41,7 @@ + @@ -117,6 +118,7 @@ + diff --git a/xml/schema/metaproxy.xsd b/xml/schema/metaproxy.xsd index d7cd6fa..cedc1ca 100644 --- a/xml/schema/metaproxy.xsd +++ b/xml/schema/metaproxy.xsd @@ -34,6 +34,7 @@ + @@ -103,6 +104,7 @@ + @@ -124,6 +126,7 @@ +