projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rename service_add_metadata to count_metadata
[pazpar2-moved-to-github.git]
/
etc
/
pz2-solr.xsl
diff --git
a/etc/pz2-solr.xsl
b/etc/pz2-solr.xsl
index
e2e0f04
..
0b7b796
100644
(file)
--- a/
etc/pz2-solr.xsl
+++ b/
etc/pz2-solr.xsl
@@
-13,11
+13,13
@@
</doc>
</xsl:template>
<xsl:template match="pz:metadata">
</doc>
</xsl:template>
<xsl:template match="pz:metadata">
- <field>
- <xsl:attribute name="name">
- <xsl:value-of select="@type"/>
- </xsl:attribute>
+ <xsl:if test="@type">
+ <field>
+ <xsl:attribute name="name">
+ <xsl:value-of select="@type"/>
+ </xsl:attribute>
<xsl:value-of select="."/>
<xsl:value-of select="."/>
- </field>
+ </field>
+ </xsl:if>
</xsl:template>
</xsl:stylesheet>
</xsl:template>
</xsl:stylesheet>