Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added htdocs/img/orcid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions htdocs/xsl/plus/data.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
/></xsl:if>
<xsl:if test="issue">
<xsl:choose>
<xsl:when test="translate(issue, '0', '')=''"><xsl:apply-templates
<xsl:when test="translate(concat(volume,issue), '0', '')=''"><xsl:apply-templates
select=".//pub-date[@pub-type='epub']/year"/>nahead</xsl:when>
<xsl:when test="contains(issue,'Suppl')">
<xsl:variable name="n"><xsl:value-of
Expand All @@ -22,9 +22,9 @@
<xsl:if test="$n!=''">n<xsl:value-of select="$n"/></xsl:if>s<xsl:value-of
select="$s"/><xsl:if test="$s=''">0</xsl:if>
</xsl:when>
<xsl:otherwise>n<xsl:value-of select="string(number(issue))"/></xsl:otherwise>
<xsl:when test="number(issue)!=0">n<xsl:value-of select="issue"/></xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>

</xsl:if>
<xsl:if test="supplement"><xsl:variable name="s"><xsl:choose>
<xsl:when test="contains(supplement, 'Suppl')"><xsl:value-of
Expand Down
28 changes: 28 additions & 0 deletions htdocs/xsl/plus/layout.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,9 @@
max-width: 80%;

}
.contribid {
font-size: 70%
}
</style>
<xsl:if test=".//math or .//mml:math">
<script type="text/javascript"
Expand Down Expand Up @@ -330,6 +333,28 @@
</p>
</xsl:if>
</xsl:template>
<xsl:template match="contrib-id" mode="HTML">
<xsl:variable name="url"><xsl:choose>
<xsl:when test="@contrib-id-type='orcid'">http://orcid.org/</xsl:when>
<xsl:when test="@contrib-id-type='lattes'">http://lattes.cnpq.br/</xsl:when>
<xsl:when test="@contrib-id-type='scopus'">https://www.scopus.com/authid/detail.uri?authorId=</xsl:when>
<xsl:when test="@contrib-id-type='researchid'">http://www.researcherid.com/rid/</xsl:when>
</xsl:choose></xsl:variable>
<xsl:variable name="location"><xsl:value-of select="$url"/><xsl:value-of select="."/></xsl:variable>
<span class="contribid">
<xsl:choose>
<xsl:when test="@contrib-id-type='orcid'">
<span style="vertical-align: middle">
<span style="margin:4px"><img src="/img/orcid.png" /></span><a href="" target="_blank" onclick="javascript: w = window.open('{$location}','','width=640,height=500,resizable=yes,scrollbars=1,menubar=yes,'); "><xsl:value-of select="$location"/></a>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@contrib-id-type"/>: <a href="" target="_blank" onclick="javascript: w = window.open('{$location}','','width=640,height=500,resizable=yes,scrollbars=1,menubar=yes,'); "><xsl:value-of select="."/></a>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position()!=last()">; </xsl:if>
</span>
</xsl:template>
<xsl:template match="name" mode="HTML">
<span>
<xsl:apply-templates select="." mode="DATA-DISPLAY"/>
Expand All @@ -338,6 +363,9 @@
<xsl:text>
<!-- manter esta quebra de linha -->
</xsl:text>
<br/>
<xsl:apply-templates select="../contrib-id" mode="HTML"></xsl:apply-templates>
<br/>
</xsl:template>

<xsl:template match="xref" mode="HTML-author">
Expand Down
30 changes: 18 additions & 12 deletions htdocs/xsl/pmc/v3.0/scielo-fulltext.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -459,18 +459,17 @@
</p>
</xsl:template>
<xsl:template match="contrib">
<xsl:variable name="sep"><xsl:choose>
<xsl:when test="role or degrees">;</xsl:when>
<xsl:otherwise>,</xsl:otherwise>
</xsl:choose></xsl:variable>
<xsl:if test="position()!=1"><xsl:value-of select="concat($sep,' ')"/></xsl:if>
<xsl:apply-templates select="*|text()"/>
<p class="author">
<xsl:apply-templates select="*[name()!='contrib-id']|text()"/>
<xsl:if test="contrib-id"><br/><span class="contribid"><xsl:apply-templates select=".//contrib-id" mode="contrib-id"></xsl:apply-templates></span></xsl:if>
</p>
</xsl:template>
<xsl:template match="contrib/name">
<span class="author-name">
<xsl:if test="prefix"><xsl:apply-templates select="prefix"/>&#160;</xsl:if>
<xsl:apply-templates select="given-names"/>&#160;<xsl:apply-templates select="surname"/>
<xsl:if test="suffix">&#160;<xsl:apply-templates select="suffix"/></xsl:if>
<xsl:if test="../contrib-id"> (<xsl:apply-templates select="..//contrib-id" mode="contrib-id"></xsl:apply-templates>)</xsl:if>
<xsl:if test="suffix">&#160;<xsl:apply-templates select="suffix"/></xsl:if>
</span>
</xsl:template>
<xsl:template match="text()" mode="normalize">
<xsl:value-of select="normalize-space(.)"/>
Expand All @@ -491,10 +490,17 @@
<xsl:when test="@contrib-id-type='researchid'">http://www.researcherid.com/rid/</xsl:when>
</xsl:choose></xsl:variable>
<xsl:variable name="location"><xsl:value-of select="$url"/><xsl:value-of select="."/></xsl:variable>

<a target="_blank" onclick="javascript: w = window.open('{$location}','','width=640,height=500,resizable=yes,scrollbars=1,menubar=yes,'); ">
<xsl:value-of select="@contrib-id-type"/>: <xsl:value-of select="."/>
</a><xsl:if test="position()!=last()">; </xsl:if>
<xsl:choose>
<xsl:when test="@contrib-id-type='orcid'">
<span style="vertical-align: middle">
<span style="margin:4px"><img src="/img/orcid.png" /></span><a href="" target="_blank" onclick="javascript: w = window.open('{$location}','','width=640,height=500,resizable=yes,scrollbars=1,menubar=yes,'); "><xsl:value-of select="$location"/></a>
</span>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@contrib-id-type"/>: <a href="" target="_blank" onclick="javascript: w = window.open('{$location}','','width=640,height=500,resizable=yes,scrollbars=1,menubar=yes,'); "><xsl:value-of select="."/></a>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="position()!=last()">; </xsl:if>
</xsl:template>
<xsl:template match="contrib/xref">
<xsl:variable name="rid" select="@rid"/>
Expand Down
4 changes: 3 additions & 1 deletion htdocs/xsl/pmc/v3.0/xml.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,11 @@ border-color: gray;
}
.autores{
margin-bottom: 25px;
font-weight: bold;
font-size: 97%;
}
.author{
font-weight: bold;
}
.aff {
margin: 0;
}
Expand Down