Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xpub
xpub-epmc
Commits
ac03dfd4
Commit
ac03dfd4
authored
Jul 31, 2019
by
Audrey Hamelers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#890
parent
df64e3fe
Pipeline
#13083
passed with stages
in 5 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
app/assets/epmc_new_plus.scss
app/assets/epmc_new_plus.scss
+4
-0
server/xml-validation/xsl/nxml2html.xsl
server/xml-validation/xsl/nxml2html.xsl
+21
-10
No files found.
app/assets/epmc_new_plus.scss
View file @
ac03dfd4
...
...
@@ -271,6 +271,10 @@
display
:
inline-block
;
}
.inline
{
display
:
inline
;
}
.overflow-hidden
{
overflow
:
hidden
;
}
...
...
server/xml-validation/xsl/nxml2html.xsl
View file @
ac03dfd4
...
...
@@ -260,7 +260,7 @@
<div
class=
"abs_link_metadata"
>
<div>
<xsl:for-each
select=
"//article-meta//contrib-group/contrib[@contrib-type = 'author']"
>
<div
class=
"inline
-block
"
>
<div
class=
"inline"
>
<!--<xsl:if test="descendant::name">
<div style="display: none;" id="authspan{count(preceding-sibling::contrib)+1}">
<div class="author-refine-panel">
...
...
@@ -448,8 +448,18 @@
</xsl:for-each>
</xsl:variable>
<xsl:template
match=
"name"
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}"
>
<xsl:template
match=
"name|collab"
mode=
"authorlist"
>
<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:text>
abstract--affiliation-group
</xsl:text>
<xsl:for-each
select=
"following-sibling::xref[@ref-type = 'aff']"
>
...
...
@@ -472,7 +482,14 @@
</xsl:for-each>
</xsl:attribute>
<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>
<xsl:for-each
select=
"following-sibling::aff"
>
<xsl:variable
name=
"current"
select=
"."
/>
...
...
@@ -562,12 +579,6 @@
</xsl:choose>
</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:variable
name=
"alpha"
select=
"'abcdefghijklmnopqrstuvwxyz'"
/>
<li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment