projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e261f3f
)
Add support for 'date' type
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 23 Aug 2013 08:30:33 +0000
(10:30 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 23 Aug 2013 08:30:33 +0000
(10:30 +0200)
etc/solr-pz2.xsl
patch
|
blob
|
history
diff --git
a/etc/solr-pz2.xsl
b/etc/solr-pz2.xsl
index
b5d2f75
..
4fe7bc1
100644
(file)
--- a/
etc/solr-pz2.xsl
+++ b/
etc/solr-pz2.xsl
@@
-40,6
+40,15
@@
</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"/>