Ticket #402 (assigned enhancement)

Opened 1 year ago

Last modified 5 months ago

XSL transform of RA abstracts with subsections

Reported by: rich Assigned to: stoomey (accepted)
Priority: low Milestone:
Component: ambra Version: 0.8.2-SNAPSHOT
Keywords: xsl Cc:
Blocking: Blocked By:

Description

In PLoS ONE research articles HTML abstracts with subsections have titles styled as H3 headers, e.g., <h3>Background</h3>

<p>Prophylactic zinc supplementation has been shown to...</p>

<h3>Objective</h3>

<p>To determine if zinc...</p>

This style looks bad for clinical trials articles because these articles have very sparse text in most sections. See for example the attached screenshots of articles e541 and e542 (these will be published on June 27). To best suit abstracts with subsections, I would like to request that the abstract section titles be included on the same line as the section text, e.g. <p><strong><em>Background:</em></strong> Prophylactic zinc supplementation has been shown to...</p>

<p><strong><em>Objective::</em></strong> To determine if zinc...</p>

Background: Prophylactic zinc supplementation has been shown to... Objective: To determine if zinc... Before I put in a Trac ticket to make this style change, I wanted to know if it was going to be feasible given the way that our structured abstracts are tagged in the XML: <abstract>

<sec>

<title>Background</title> <p>Prophylactic zinc supplementation has been shown to...</p>

</sec> <sec>

<title>Objective</title> <p>To determine if zinc...</p>

</sec> ...

</abstract>

Dependency Graph

Attachments

e541part.png (39.1 kB) - added by rich on 06/18/07 16:21:50.
Example of CT article abstract
e542part.png (35.3 kB) - added by rich on 06/18/07 16:22:19.
Example of CT article abstract

Change History

06/18/07 16:21:50 changed by rich

  • attachment e541part.png added.

Example of CT article abstract

06/18/07 16:22:19 changed by rich

  • attachment e542part.png added.

Example of CT article abstract

06/18/07 16:23:29 changed by rich

Reply from Steve:

Well, it is certainly possible to do this. However, it does make things a little more complicated. For the CT articles, in the XSL we will have to special case <P>'s that fall within abstracts and probably make them spans or something. The problem is that for people to annotate these things, we need to make sure the same structure is maintained in the XHTML doc. I can't do the markup as you have in the email. I have to double check the code that Joycelyn wrote to see which structural markers she looks for when figuring out where the annotation is.

Reply from Rich:

We can push back on this XSLT hack until a future time. We'll need this for the PLoS Medicine migration, but it isn't a priority for the CT migration. I'll open an enhancement ticket in Trac.

06/19/07 11:26:24 changed by jsuttor

  • milestone changed from TBD to 0.8.

08/06/07 17:42:23 changed by amit

  • milestone changed from 0.8 to WishList.

Not needed for CT.

08/07/07 12:13:22 changed by russ

couldn't we keep it as H3 for simplicity's sake, but fix it in CSS (for example, making article H3 tags inline instead of block?)

08/07/07 16:26:04 changed by

  • milestone deleted.

Milestone WishList? deleted

10/29/07 20:37:41 changed by amit

  • owner changed from stevec to jsuttor.
  • version set to 0.8.2-SNAPSHOT.

11/08/07 17:37:57 changed by rich

  • owner changed from jsuttor to rich.

12/12/07 10:49:08 changed by rich

  • owner changed from rich to stoomey.
  • milestone set to pubApp_0.8.3.

Sebastian - can you look into a CSS fix as explained by Russ

12/18/07 15:09:00 changed by stoomey

  • status changed from new to assigned.

I looked at the HTML and using CSS to fix the formating seems possible. The complicating factor is that there can be more than one div with a class of "abstract". For example, an Editorial Commentary section also is contained within div.abstract. This makes targeting only the "Abstract" section impossible and so any styles applied to an Abstract section would also have to be compatible with Editorial Commentary section or any other sections using the same class.

01/21/08 09:50:24 changed by rich

  • milestone deleted.

06/27/08 11:03:37 changed by stoomey

  • blocking changed.
  • blockedby changed.

I think I should try to address this as part of a comprehensive redesign of abstract and summary sections. Several PLoS job orders have recently been submitted that will require some visual rework (6409 and 6497), so this issue may well be addressed as part of that effort.