Add new minor style for posts. styles
authorFabien Ninoles <fabien@tzone.org>
Tue, 29 Dec 2015 21:26:32 -0500
branchstyles
changeset 23 8445a48b1679
parent 14 6b2069bde265
child 24 acf70691eb31
Add new minor style for posts. Also fix the unnecessary '-' in front of shortlists.
cv_print.xsl
print.xsl
--- a/cv_print.xsl	Sun Sep 06 22:19:51 2015 -0400
+++ b/cv_print.xsl	Tue Dec 29 21:26:32 2015 -0500
@@ -315,7 +315,12 @@
 <!-- work -->
 <xsl:template match="work">
   <block space-before="12pt" keep-together="always">
-    <xsl:apply-templates/>
+    <xsl:apply-templates select="organism"/>
+    <xsl:apply-templates select="post[not(@role='minor')]"/>
+    <xsl:if test="post[@role='minor']">
+      <xsl:apply-templates select="post[@role='minor']"/>
+    </xsl:if>
+    <xsl:apply-templates select="description"/>
   </block>
 </xsl:template>
 <xsl:template match="work/organism">
@@ -377,9 +382,11 @@
         </table-row>
       </table-body>
     </table>
-    <block margin-left="24pt" space-before="5pt">
-      <xsl:apply-templates/>
-    </block>
+    <xsl:if test="not(@role='minor')">
+      <block margin-left="24pt" space-before="5pt">
+        <xsl:apply-templates/>
+      </block>
+    </xsl:if>
   </block>
 </xsl:template>
 <xsl:template match="post/supervisor|post/duration|post/title"/>
--- a/print.xsl	Sun Sep 06 22:19:51 2015 -0400
+++ b/print.xsl	Tue Dec 29 21:26:32 2015 -0500
@@ -105,7 +105,7 @@
   <block margin-left="24pt"><xsl:apply-templates mode="short"/></block>
 </xsl:template>
 <xsl:template match="formalpara/shortlist">
-  <block margin-left="24pt">- <xsl:apply-templates mode="short"/></block>
+  <block margin-left="24pt"><xsl:apply-templates mode="short"/></block>
 </xsl:template>
 
 <xsl:template match="listitem">