Describe the bug
Occasionally, an article will be divided into subsections that are only labeled numerically--no further section title is present. In its most basic form, this could be tagged in the JATS as follows:
<sec id="S1">
<label>1.</label>
Evidently, Janeway requires
to be populated in order to display a section heading in the flow of text or a link on the floating TOC. Inspecting the HTML reveals that the article is divided into separate <div>s corresponding to the JATS <sec> tags as expected, but the text contained in the JATS <label> has disappeared entirely.
Our XML vendor tagged these particular sections with empty <title> tags accompanying the <label> tags:
<sec id="S1">
<label>1.</label><title></title>
It appears that a completely empty <title> tag is still insufficient to force the <label> to display as a section heading. However, I did determine a straightforward workaround: adding a blank space character into the previously-empty <title>
<sec id="S1">
<label>1.</label><title> </title>
This does successfully cause the <label> to display as <h2> and appear on the floating TOC.
Janeway version
1.4.1
Scroll past the epigraph quotes at the begining of the article body.
A section heading "1." should appear immediately before the paragraph beginning "I believe in moral obligation...", but at the time of writing, it does not.
Expected behavior
A tagged section label should render in the HMTL (as a visible section heading and as a link on the TOC) regardless of whether it is followed by additional title text.
Screenshots
Here's how the HTML renders with the JATS as we received it:
And here's the HTML after I added a space into the empty <title> tag as a workaround:
Describe the bug Occasionally, an article will be divided into subsections that are only labeled numerically--no further section title is present. In its most basic form, this could be tagged in the JATS as follows:
Evidently, Janeway requires
<div>
s corresponding to the JATS<sec>
tags as expected, but the text contained in the JATS<label>
has disappeared entirely.Our XML vendor tagged these particular sections with empty
<title>
tags accompanying the<label>
tags:It appears that a completely empty
<title>
tag is still insufficient to force the<label>
to display as a section heading. However, I did determine a straightforward workaround: adding a blank space character into the previously-empty<title>
This does successfully cause the
<label>
to display as<h2>
and appear on the floating TOC. Janeway version 1.4.1To Reproduce Steps to reproduce the behavior:
Expected behavior A tagged section label should render in the HMTL (as a visible section heading and as a link on the TOC) regardless of whether it is followed by additional title text.
Screenshots Here's how the HTML renders with the JATS as we received it: And here's the HTML after I added a space into the empty
<title>
tag as a workaround: