substance / texture

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

Boxes #1327

Open JGilbert-eLife opened 5 years ago

JGilbert-eLife commented 5 years ago

Description

Boxes are more common in Feature content than research content but have been known to occur in both kinds of article.

User stories

Author

  1. As an author, I want to be able to add a box to my article so that I can include information to support the main text.
  2. As an author, I want to be able to add a title, text and sub-headings to the box so that I can add content.
  3. As an author, I want to be able to cite assets and references in the text in a box so that I can refer to other articles or content.
  4. As an author, I want to be able to add a list to a box so that I can organise the content.
  5. As an author, I want to be able to add an attribution to a box so that I can give credit for the content.
  6. As an author, I want to be able to edit the attribution for a box so that I can correct errors.
  7. As an author, I want to be able to remove the attribution from a box so that I can correct errors.

Production staff

  1. As production staff, I want to be able to add a figure to a box so that I can illustrate the content.
  2. As production staff, I want to be able to remove a figure from a box on behalf of an author so that I can correct any errors.
  3. As production staff, I want to be able to add a table to a box so that I can include data.
  4. As production staff, I want to be able to remove a table from a box on behalf of an author so that I can correct any errors.
  5. As production staff, I want to be able to add permissions information to a box so that I can accommodate content that must be published under a license different from the article-level license.
  6. As production staff, I want to be able to edit the permissions information associated with a box so that I can correct errors.
  7. As production staff, I want to be able to remove permissions information from a box so that I can correct errors.
  8. As production staff, I want to be able to add multiple sets of permissions information (copyright statements and license paragraphs) to a box so that I can properly license content compiled from multiple sources.
  9. As production staff, I want to be able to remove a box from an article so that I can correct errors.
  10. As production staff, I want to be able to edit the label for a box so that I can correct any errors.

But what if . . . ?

Consideration

Screen Shot 2019-06-03 at 16 00 01

XML requirements

<boxed-text>
  <p>...</p>
  <sec>...</sec>
    <p>...</p>   
  <fig>...</fig>
</boxed-text>

eLife allows the following child elements:

Example of permissions for boxed-text

<boxed-text id="box2">
    <object-id pub-id-type="doi">10.7554/eLife.27041.004</object-id>
    <label>Box 2:</label>
    <caption>
        <p>On Exactitude in Science. Jorge Luis Borges (1946)</p>
    </caption>
    <p>“.. . In that Empire, the Art of Cartography attained such Perfection that the map of a
        single Province occupied the entirety of a City, and the map of the Empire, the entirety of
        a Province. In time, those Unconscionable Maps no longer satisfied, and the Cartographers
        Guilds struck a Map of the Empire whose size was that of the Empire, and which coincided
        point for point with it. The following Generations, who were not so fond of the Study of
        Cartography as their Forebears had been, saw that that vast map was Useless, and not without
        some Pitilessness was it, that they delivered it up to the Inclemencies of Sun and Winters.
        In the Deserts of the West, still today, there are Tattered Ruins of that Map, inhabited by
        Animals and Beggars; in all the Land there is no other Relic of the Disciplines of
        Geography.”</p>
    <p>Purportedly from Suárez Miranda, Travels of Prudent Men, Book Four, Ch. XLV, Lérida, 1658.</p>
    <permissions>
        <copyright-statement>© 1998 Maria Kodama; translation © 1998 Penguin Random House LLC.</copyright-statement>
        <copyright-year>1998</copyright-year>
        <copyright-holder>Maria Kodama</copyright-holder>
        <copyright-holder>Penguin Random House LLC.</copyright-holder>
        <license>
            <license-p>&#x00022;On Exactitude in Science&#x00022; from Collected Fictions: Volume 3 by
                Jorge Luis Borges, translated by Andrew Hurley. Used by permission of Viking Books,
                an imprint of Penguin Publishing Group, a division of Penguin Random House LLC. All
                rights reserved.</license-p>
        </license>
    </permissions>
</boxed-text>
Screen Shot 2019-06-06 at 11 34 01

Mock ups

Proposal