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

Merge branch 'release-3.0'

parents a939c27d 099a0eb0
Branches
Tags
No related merge requests found
...@@ -68,6 +68,12 @@ ...@@ -68,6 +68,12 @@
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
......
...@@ -100,6 +100,12 @@ ...@@ -100,6 +100,12 @@
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
......
...@@ -84,6 +84,12 @@ ...@@ -84,6 +84,12 @@
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
......
...@@ -161,6 +161,12 @@ ...@@ -161,6 +161,12 @@
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
......
...@@ -134,11 +134,17 @@ ...@@ -134,11 +134,17 @@
<!-- AUTHOR --> <!-- AUTHOR -->
<xsl:for-each select="//nlm:contrib[@contrib-type='author']/nlm:name"> <xsl:for-each select="//nlm:contrib[@contrib-type='author']/nlm:name">
<xsl:if test="normalize-space()"> <xsl:if test="normalize-space()">
<field name="author"> <field name="author">
<xsl:value-of select="nlm:surname[normalize-space()]" />, <xsl:value-of select="nlm:given-names[normalize-space()]" /> <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> </field>
</xsl:if> </xsl:if>
</xsl:if>
</xsl:for-each> </xsl:for-each>
<!-- TITLE --> <!-- TITLE -->
......
...@@ -62,6 +62,12 @@ ...@@ -62,6 +62,12 @@
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </xsl:if>
......
...@@ -389,6 +389,22 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ...@@ -389,6 +389,22 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
<field name="author"> <field name="author">
<xsl:value-of select="normalize-space()"/> <xsl:value-of select="normalize-space()"/>
</field> </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:if>
</xsl:for-each> </xsl:for-each>
</xsl:if> </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