Commit ac03dfd4 authored by Audrey Hamelers's avatar Audrey Hamelers
parent df64e3fe
Pipeline #13083 passed with stages
in 5 minutes and 43 seconds
...@@ -271,6 +271,10 @@ ...@@ -271,6 +271,10 @@
display: inline-block; display: inline-block;
} }
.inline {
display: inline;
}
.overflow-hidden { .overflow-hidden {
overflow: hidden; overflow: hidden;
} }
......
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
<div class="abs_link_metadata"> <div class="abs_link_metadata">
<div> <div>
<xsl:for-each select="//article-meta//contrib-group/contrib[@contrib-type = 'author']"> <xsl:for-each select="//article-meta//contrib-group/contrib[@contrib-type = 'author']">
<div class="inline-block"> <div class="inline">
<!--<xsl:if test="descendant::name"> <!--<xsl:if test="descendant::name">
<div style="display: none;" id="authspan{count(preceding-sibling::contrib)+1}"> <div style="display: none;" id="authspan{count(preceding-sibling::contrib)+1}">
<div class="author-refine-panel"> <div class="author-refine-panel">
...@@ -448,8 +448,18 @@ ...@@ -448,8 +448,18 @@
</xsl:for-each> </xsl:for-each>
</xsl:variable> </xsl:variable>
<xsl:template match="name" mode="authorlist"> <xsl:template match="name|collab" mode="authorlist">
<a href="{concat('https://europepmc.org/search?query=AUTH:%22', surname, '+', substring(given-names, 1, 1),'%22')}" data-target="authspan{count(parent::contrib/preceding-sibling::contrib)+1}"> <a data-target="authspan{count(parent::contrib/preceding-sibling::contrib)+1}">
<xsl:attribute name="href">
<xsl:choose>
<xsl:when test="self::name">
<xsl:value-of select="concat('https://europepmc.org/search?query=AUTH:%22', surname, '+', substring(given-names, 1, 1),'%22')"/>
</xsl:when>
<xsl:when test="self::collab">
<xsl:value-of select="concat('/search?query=AUTH:%22', translate(., ' ', '+'), '%22')"/>
</xsl:when>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="class"> <xsl:attribute name="class">
<xsl:text>abstract--affiliation-group</xsl:text> <xsl:text>abstract--affiliation-group</xsl:text>
<xsl:for-each select="following-sibling::xref[@ref-type = 'aff']"> <xsl:for-each select="following-sibling::xref[@ref-type = 'aff']">
...@@ -472,7 +482,14 @@ ...@@ -472,7 +482,14 @@
</xsl:for-each> </xsl:for-each>
</xsl:attribute> </xsl:attribute>
<span class="abstract--author-name"> <span class="abstract--author-name">
<xsl:value-of select="concat(given-names, ' ', surname)"/> <xsl:choose>
<xsl:when test="self::name">
<xsl:value-of select="concat(given-names, ' ', surname)"/>
</xsl:when>
<xsl:when test="self::collab">
<xsl:value-of select="."/>
</xsl:when>
</xsl:choose>
</span> </span>
<xsl:for-each select="following-sibling::aff"> <xsl:for-each select="following-sibling::aff">
<xsl:variable name="current" select="."/> <xsl:variable name="current" select="."/>
...@@ -562,12 +579,6 @@ ...@@ -562,12 +579,6 @@
</xsl:choose> </xsl:choose>
</xsl:template> </xsl:template>
<xsl:template match="collab" mode="authorlist">
<a href="{concat('/search?query=AUTH:%22', translate(., ' ', '+'), '%22')}">
<xsl:value-of select="."/>
</a>
</xsl:template>
<xsl:template match="aff" mode="afflist"> <xsl:template match="aff" mode="afflist">
<xsl:variable name="alpha" select="'abcdefghijklmnopqrstuvwxyz'"/> <xsl:variable name="alpha" select="'abcdefghijklmnopqrstuvwxyz'"/>
<li> <li>
......
Markdown is supported
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