Skip to content

Instantly share code, notes, and snippets.

@IanMulvany
Last active December 22, 2015 16:09
Show Gist options
  • Save IanMulvany/6497419 to your computer and use it in GitHub Desktop.
Save IanMulvany/6497419 to your computer and use it in GitHub Desktop.
elife xref reference
Within the author contrib node we link to other nodes using a key of the type
<xref ref-type="aff" rid="aff1" ...
where the rid gives the id of the node that we connect to. In that way this is how we tag the folloiwng information about an author.
# Affiliations
## key
<xref ref-type="aff" rid="aff1" ...
## node
<aff id="aff1" hwp:id="aff-1" hwp:rev-id="xref-aff-1-1 xref-aff-1-2 xref-aff-1-3 xref-aff-1-4 xref-aff-1-5 xref-aff-1-6 xref-aff-1-7">
<label>1</label>
<addr-line>
<named-content content-type="department" xlink:type="simple" hwp:id="named-content-1">Department of Biology</named-content>
</addr-line>
,
<institution xlink:type="simple" hwp:id="institution-1">
Howard Hughes Medical Institute, University of Utah
</institution>
,
<addr-line>
<named-content content-type="city" xlink:type="simple" hwp:id="named-content-2">Salt Lake City</named-content>
</addr-line>
,
<country>United States</country>
</aff>
# corresponding author
## key
<contrib contrib-type="author" corresp="yes"
## node
no node, information contained in attribute of the contrib node
# funding
## key
<xref ref-type="other" rid="par-1" ...
## node
<award-group id="par-1" xlink:type="simple" hwp:id="award-group-1" hwp:rev-id="xref-award-group-1-1">
<funding-source xlink:type="simple" hwp:id="funding-source-1">National Institutes of Health</funding-source>
<award-id xlink:type="simple" hwp:id="award-id-1">NS034307</award-id>
<principal-award-recipient>
<name name-style="western" hwp:sortable="Jorgensen Erik M">
<surname>Jorgensen</surname>
<given-names>Erik M</given-names>
</name>
</principal-award-recipient>
</award-group>
# Present address
## key
<xref ref-type="fn" rid="pa1" hwp:id="xref-fn-2-1" hwp:rel-id="fn-2">
multiple addresses can be indicated with multiple xrefs of this type.
## node
<fn fn-type="present-address" hwp:id="fn-2" hwp:rev-id="xref-fn-2-1" id="pa1">
<label>‡</label>
<p hwp:id="p-2">Department of Chemistry, Stanford University, Palo Alto, United States</p>
</fn>
If two authors contributed equally it does not link the other co author, and I guess we would not need that highlighted on the author profile page anyway?
# Contribution information
## key
<xref hwp:id="xref-fn-5-1" hwp:rel-id="fn-5" ref-type="fn" rid="con2"/>
## node
<fn fn-type="con" hwp:id="fn-5" hwp:rev-id="xref-fn-5-1" id="con2">
<p hwp:id="p-92">TL, Analysis and interpretation of data, Drafting or revising the article</p>
</fn>
# Conflict:
## key
<xref hwp:id="xref-fn-3-2" hwp:rel-id="fn-3" ref-type="fn" rid="conf3"/>
## node
<fn fn-type="conflict" hwp:id="fn-2" hwp:rev-id="xref-fn-2-1" id="conf2">
<p hwp:id="p-89">ETD: Reviewing editor,
<italic>
eLife</italic>.</p>
</fn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment