ajnyga / embedGalley

OJS3 plugin for visualizing JATS XML galleys
GNU General Public License v3.0
8 stars 3 forks source link

Tags not rendering correctly #5

Open mayolag opened 5 years ago

mayolag commented 5 years ago

Everything works fine, but in the reference lists, some tags are not rendering correctly. I noticed with book titles and chapters.

For example this one: Hondagneu-Sotelo, P. (1994). . . University of California Press: Berkeley, C.A.. .

Should look like this: Hondagneu-Sotelo, P. (1994). Gendered transitions: the Mexican experience of immigration. Berkeley, C.A.: University of California Press.

How can I fix this? Thank you

ajnyga commented 5 years ago

The plugin uses XLS from https://github.com/PeerJ/jats-conversion for conversion.

I do not know the details, but probably you have something in the JATS XML file that is not compatible with the XSL rules used in the conversion files. https://github.com/ajnyga/embedGalley/blob/master/xsl/APA.xsl

mayolag commented 5 years ago

This is an example of the xml of a book not rendering correctly: <ref id="323854675003_ref38"> <mixed-citation> <sc>Larkin, M. </sc>2009), <italic>Vulnerable Groups in Health and Social Care</italic>, Londres: sage.</mixed-citation> <element-citation publication-type="book"> <person-group person-group-type="author"> <name> <surname>Larkin</surname> <given-names>M.</given-names> </name> </person-group> <source>Vulnerable Groups in Health and Social Care</source> <year>2009</year> <publisher-loc>Londres</publisher-loc> <publisher-name>sage</publisher-name> </element-citation> </ref> <ref id="323854675003_ref39"> <mixed-citation> <sc>Lawton, P. y Brody, E.</sc> (1969), «Assessment of older people: Self-maintaining and instrumental activities of daily living», en <italic>The Gerontologist</italic>, vol. 19 (3), pp. 179-186.</mixed-citation> <element-citation publication-type="journal"> <person-group person-group-type="author"> <name> <surname>Lawton</surname> <given-names>P.</given-names> </name> <name> <surname>Brody</surname> <given-names>E.</given-names> </name> </person-group> <article-title>Assessment of older people: Self-maintaining and instrumental activities of daily living</article-title> <source>The Gerontologist</source> <year>1969</year> <volume>19</volume> <issue>3</issue> <fpage>179</fpage> <lpage>186</lpage> </element-citation> </ref>