Fix Metaproxy stops logging after check config failed MP-590
[metaproxy-moved-to-github.git] / etc / config-record-transform.xml
index 79c8c3c..af2d7a8 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0"?>
-<!-- $Id: config-record-transform.xml,v 1.2 2006-11-29 13:00:53 marc Exp $ -->
 <metaproxy xmlns="http://indexdata.com/metaproxy" version="1.0">
   <start route="start"/>
   <filters>
      <timeout>30</timeout>
     </filter>
   </filters>
-  <routes>  
+  <routes>
     <route id="start">
       <filter refid="frontend"/>
       <filter type="log">
         <message>Front</message>
       </filter>
+      <filter type="sort">
+        <sort
+           xpath="/marc:record/marc:datafield[@tag='245']/marc:subfield[@code='a']"
+           namespaces="marc=http://www.loc.gov/MARC21/slim"
+           prefetch="5"
+           ascending="true"
+           debug="true"
+             />
+      </filter>
       <filter type="record_transform">
-        <retrievalinfo>
-          <retrieval syntax="grs-1"/>
-          <retrieval syntax="usmarc" name="F"/>
-          <retrieval syntax="usmarc" name="B"/>
-          <retrieval syntax="xml" name="marcxml"
-                     identifier="info:srw/schema/1/marcxml-v1.1"
-                     backendsyntax="usmarc" backendname="F">
-            <convert>
-              <marc inputformat="marc" outputformat="marcxml"
-                    inputcharset="marc-8"/>
-            </convert>
-          </retrieval>
-          <retrieval syntax="xml" name="danmarc"
-                     backendsyntax="usmarc" backendname="F">
-            <convert>
-              <marc inputformat="marc" outputformat="marcxchange"
-                    inputcharset="marc-8"/>
-            </convert>
-          </retrieval>
-          <retrieval syntax="xml" name="dc"
-                     identifier="info:srw/schema/1/dc-v1.1"
-                     backendsyntax="usmarc" backendname="F">
-            <convert>
-              <marc inputformat="marc" outputformat="marcxml"
-                    inputcharset="marc-8"/>
-              <xslt stylesheet="xml/xslt/MARC21slim2DC.xsl"/>
-            </convert>
-          </retrieval>
-        </retrievalinfo>
+        <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
+                    href="retrieval-info.xml"/>
       </filter>
       <filter type="log">
         <message>Back</message>