Skip to content
Snippets Groups Projects
Commit 099a0eb0 authored by Demian Katz's avatar Demian Katz
Browse files

Improved author indexing

- Added missing author_sort values to XSLT indexing.
- Added DC:contributor support to VuDL indexing.
parent 517ac465
No related merge requests found
......@@ -68,6 +68,12 @@
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
......@@ -100,6 +100,12 @@
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
......@@ -84,6 +84,12 @@
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
......@@ -161,6 +161,12 @@
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
......@@ -134,11 +134,17 @@
<!-- AUTHOR -->
<xsl:for-each select="//nlm:contrib[@contrib-type='author']/nlm:name">
<xsl:if test="normalize-space()">
<field name="author">
<xsl:value-of select="nlm:surname[normalize-space()]" />, <xsl:value-of select="nlm:given-names[normalize-space()]" />
<xsl:if test="normalize-space()">
<field name="author">
<xsl:value-of select="nlm:surname[normalize-space()]" />, <xsl:value-of select="nlm:given-names[normalize-space()]" />
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
<!-- TITLE -->
......
......@@ -62,6 +62,12 @@
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
......@@ -389,6 +389,22 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<field name="author">
<xsl:value-of select="normalize-space()"/>
</field>
<!-- use first author value for sorting -->
<xsl:if test="position()=1">
<field name="author_sort">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="$DC//dc:contributor">
<xsl:for-each select="$DC//dc:contributor">
<xsl:if test="normalize-space()">
<field name="author2">
<xsl:value-of select="normalize-space()"/>
</field>
</xsl:if>
</xsl:for-each>
</xsl:if>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment