Add support for 'date' type
authorDennis Schafroth <dennis@indexdata.com>
Fri, 23 Aug 2013 08:30:33 +0000 (10:30 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Fri, 23 Aug 2013 08:30:33 +0000 (10:30 +0200)
etc/solr-pz2.xsl

index b5d2f75..4fe7bc1 100644 (file)
     </pz:metadata>
   </xsl:template>
 
+  <xsl:template match="date[@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="arr">
     <xsl:for-each select="str">
       <xsl:call-template name="string"/>