wpoa / JATS-to-Mediawiki

A PubMed Central to MediaWiki converter
4 stars 1 forks source link

Improper handling of titles in captions #15

Closed Klortho closed 10 years ago

Klortho commented 10 years ago

This corresponds to https://github.com/Daniel-Mietchen/OA-signalling/issues/73.

The problem is in the way that titles inside captions are being rendered.

The source XML markup looks like this:

      <supplementary-material id="zookeys.324.5827-treatment3" content-type="local-data">
        <caption>
          <title>XML Treatment for <named-content content-type="genus">Bassaricyon</named-content>
            <named-content content-type="species">neblina</named-content>
            <named-content content-type="subspecies">osborni</named-content>
          </title>
        </caption>
        <media xlink:href="zookeys.324.5827-treatment3.xml" mimetype="text" mime-subtype="xml"/>
      </supplementary-material>

It's not clear to me that these should be turned into headers. In PMC they are not.

Klortho commented 10 years ago

Rather than attempt any complicated changes in logic, which might break things for other articles, I just fixed these as headers.