wpoa / JATS-to-Mediawiki

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

Fix citations to use citation-wpoa template #40

Open Klortho opened 10 years ago

Klortho commented 10 years ago

@Daniel-Mietchen and @notconfusing and I got started on this.

In the XSLT, I've changed the template that's invoked from "citation" to "citation-wpoa".

We'll create this new Template:Citation-wpoa, and it will basically be a proxy for Template:Citation/core.

Next, I'm changing the parameter names and some of the logic in the XSLT to match the parameters used by Citation/core.

For testing, you can use these sandbox copies of the templates:

Klortho commented 10 years ago

Wherever possible, when necessary to override and use different parameter names than those used in Citation/core, we should look first at Cite_journal, and see if those parameters make sense, and then copy-paste the code from there.

Klortho commented 10 years ago

Example article:

Problems:

Klortho commented 10 years ago

Problem: Year is not showing up.

Daniel-Mietchen commented 10 years ago

@wrought can you try to help getting the years to show up in the HTML? Somehow, the core template swallows it.

notconfusing commented 9 years ago

i made a fall-back on to using the {{{section}}} parameter in the mean-time to workaround the single quote artefact.

Daniel-Mietchen commented 9 years ago

@notconfusing that was in the header template, whereas this thread is about the citation templates.