Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
authorDennis Schafroth <dennis@indexdata.com>
Thu, 4 Oct 2012 15:48:07 +0000 (17:48 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 4 Oct 2012 15:48:07 +0000 (17:48 +0200)
1  2 
etc/solr-pz2.xsl

diff --combined etc/solr-pz2.xsl
@@@ -8,20 -8,21 +8,29 @@@
        <xsl:apply-templates></xsl:apply-templates>
    </xsl:template>
  
 +  <xsl:template  match="response">
 +      <xsl:apply-templates></xsl:apply-templates>
 +  </xsl:template>
 +
 +  <xsl:template  match="records">
 +      <xsl:apply-templates></xsl:apply-templates>
 +  </xsl:template>
 +
    <xsl:template match="doc">
      <pz:record>
        <xsl:apply-templates></xsl:apply-templates>
      </pz:record>
    </xsl:template>
  
+   <xsl:template match="float[@name]">
+     <pz:metadata>
+       <xsl:attribute  name="type">
+         <xsl:value-of select="@name"/>
+       </xsl:attribute>
+       <xsl:value-of select="."/>
+     </pz:metadata>
+   </xsl:template>
    <xsl:template match="str[@name]">
      <pz:metadata>
        <xsl:attribute  name="type">