substance / texture

A visual editor for research.
MIT License
1k stars 83 forks source link

Asset citations #1284

Open fred-atherden opened 5 years ago

fred-atherden commented 5 years ago

Description

Authors should be able to cite their assets (figures, figure supplements, tables, videos, video supplements, asset-source files, source data, source code, supplementary files, reporting standard files, equations, appendices, boxes) anywhere in their main text, section titles, appendices, and asset titles and legends.

[UPDATED: 18/06/2019 to add boxes as a citable item]

User Stories

Author

Production staff

But what if . . . ?

Considerations

XML requirements

These are captured as simple xref elements, with an appropriate @ref-type and an @rid whose value is the same as the @id of the asset.

<xref ref-type="fig" rid="fig1">Figure 1B</xref>

eLife uses the following ref-type attribute values (for assets):

figure examples

<xref ref-type="fig" rid="fig7s1">Figure 7—figure supplement 1A</xref>
<xref ref-type="fig" rid="fig6">Figure 6I,J</xref>
<title>Two photon experiments (<xref ref-type="fig" rid="fig1s3">Figure 1—figure supplement 3A</xref>)</title>
<xref ref-type="fig" rid="fig1 fig2 fig3 fig4 fig5">Figures 1-5</xref>

supplementary-material examples

<p> ... <xref ref-type="supplementary-material" rid="supp1">Supplementary file 1</xref> and <xref ref-type="supplementary-material" rid="scode2">Source code 2</xref> ... </p>
<xref ref-type="supplementary-material" rid="fig4sdata2">Figure 4—source data 2</xref>
<xref ref-type="supplementary-material" rid="SD7-data">Table 1—Source code 1</xref>

video examples

<p> ... <xref ref-type="video" rid="video3">Videos 3</xref>, <xref ref-type="video" rid="video4">4</xref>, and <xref ref-type="video" rid="video5">5</xref> ... </p>
<xref ref-type="video" rid="fig7video1">Figure 7—video 1</xref>

table examples

<xref ref-type="table" rid="app1table1">Appendix 1—table 1</xref>
<p> ... <xref ref-type="table" rid="table1 table2 table3">Tables 1–3</xref> ... </p>

appendix example

<xref ref-type="app" rid="app1">Appendix 1</xref>

boxed-text example

<xref ref-type="other" rid="box1">Box 1</xref>

[These ref-type values are also allowed for non-assets:

As specified above the content of the citations should contain the label of the object that it cites, but this content needs to be editable to that more or less information can be added.

xref placement

eLife requires xref to be allowed in the following elements:

(as well as fig-group,fig,table-wrap, and media - although see this ticket for context).

Mock ups

Proposal

JGilbert-eLife commented 5 years ago

I've updated this ticket to include boxes as a citable item.