You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are working on complete support for editing <element-citation> records.
Step 1: JATS4R representation: We define a strict schema for JATS4R for all available publication types. This schema must be valid JATS! Here's an example for modelling a journal article.
<refid="r1">
<element-citationpublication-type="journal">
<xspecific-use="display">Townsend BR, Subasi E, Scherberger H (2011) Grasp movement decoding from premotor and parietal cortex. J Neurosci 31:14386 –14398</x>
<person-groupperson-group-type="author">
<name>
<surname>Baumann</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Fluet</surname>
<given-names>MC</given-names>
</name>
</person-group>
<year>2009</year>
<article-title>Context-specific grasp movement representation in the macaque anterior intraparietal area</article-title>
<fpage>6436</fpage>
<lpage>6448</lpage>
<pub-idpub-id-type="doi">10.1523/JNEUROSCI.5479-08.2009</pub-id>
</element-citation>
</ref>
figure out what publication types we want to support (currently journal and book are supported)
figure out requirements (required and optional fields for each supported publication type)
improve schema based on requirements (let's look at content from scielo, elife, pkp, erudit)
consider implementing other publication types once we have a complete specification for them (.e.g “book”, “letter”, “review”, “journal”, “patent”, “report”, “standard”, “data”, “working-paper”)
Step 2: We define an improved schema TextureJATS (internal schema, the model that the editor manipulates), which helps us realize our user interface in the best way. However it carries the same data, just modelled slightly differently. For instance instead of fpage,lpage,e-location-id we use a custom element content-loc wrapping these elements and providing an expclicit type attribute which states either print or electronic. This allows us to implement a switcher in the user interface, showing either fields for print publications or elocation-id for electronic publications. Also in TextureJATS all editable fields are non-optional. So there must always be at least an empty element present. This allows us to always render placeholders to be filled out or left blank.
In TextureJATS the example from above looks like so:
<refid="r1">
<element-citationpublication-type="journal">
<xspecific-use="display">Townsend BR, Subasi E, Scherberger H (2011) Grasp movement decoding from premotor and parietal cortex. J Neurosci 31:14386 –14398</x>
<person-groupperson-group-type="author">
<name>
<surname>Baumann</surname>
<given-names>MA</given-names>
</name>
<name>
<surname>Fluet</surname>
<given-names>MC</given-names>
</name>
</person-group>
<year>2009</year>
<article-title>Context-specific grasp movement representation in the macaque anterior intraparietal area</article-title>
<content-loctype="print">
<fpage>6436</fpage>
<lpage>6448</lpage>
<page-range></page-range>
</content-loc>
<pub-idpub-id-type="doi">10.1523/JNEUROSCI.5479-08.2009</pub-id>
<!-- empty elements (not optional anymore) -->
<source></source>
<volume></volume>
<!-- lots of more empty elements, e.g. fields used with user publication types -->
<chapter-title></chapter-title>
</element-citation>
</ref>
improve schema as needed, which good decisions the editor implementations can be made simpler
Step 3: Provide transformers between JATS4R and TextureJATS
write transformer JAT4R -> TextureJATS -> JATS4R (importer and exporter)
write tests for all supported transform scenarios
Step 4: Improve Editor EditRef component.
Use a separate component for each publication type (e.g. EditJournalArticle)
Reusable components where possible (e.g. EditPersonGroup)
generate a display version on each change to the element-citation <x> element. (this could be acchieved with providing a simple html renderer (based on a template string)
Improve RefListComponent to use rendered <x> element for display
The text was updated successfully, but these errors were encountered:
We are working on complete support for editing
<element-citation>
records.Step 1: JATS4R representation: We define a strict schema for JATS4R for all available publication types. This schema must be valid JATS! Here's an example for modelling a journal article.
Step 2: We define an improved schema TextureJATS (internal schema, the model that the editor manipulates), which helps us realize our user interface in the best way. However it carries the same data, just modelled slightly differently. For instance instead of
fpage
,lpage
,e-location-id
we use a custom elementcontent-loc
wrapping these elements and providing an expclicittype
attribute which states eitherprint
orelectronic
. This allows us to implement a switcher in the user interface, showing either fields for print publications or elocation-id for electronic publications. Also in TextureJATS all editable fields are non-optional. So there must always be at least an empty element present. This allows us to always render placeholders to be filled out or left blank.In TextureJATS the example from above looks like so:
Step 3: Provide transformers between JATS4R and TextureJATS
Step 4: Improve Editor EditRef component.
<x>
element. (this could be acchieved with providing a simple html renderer (based on a template string)<x>
element for displayThe text was updated successfully, but these errors were encountered: