Project

General

Profile

« Previous | Next » 

Revision 6dc32b87

Added by Andreas Müller over 9 years ago

rename Reference.authorTeam -> authorship #4432

View differences:

cdmlib-print/src/main/resources/stylesheets/pdf/flore-afrique-centrale.xsl
1226 1226
      <xsl:sort select="sources/e[1]/citation/datePublished/start"/>
1227 1227
      <xsl:for-each select="sources/e">
1228 1228
        
1229
        <xsl:variable name="lastname_text" select="citation/authorTeam/lastname"/>
1230
        <xsl:variable name="prev_lastname_text" select="preceding-sibling::e[1]/citation/authorTeam/lastname"/>
1229
        <xsl:variable name="lastname_text" select="citation/authorship/lastname"/>
1230
        <xsl:variable name="prev_lastname_text" select="preceding-sibling::e[1]/citation/authorship/lastname"/>
1231 1231
        
1232 1232
        <xsl:if test="nameUsedInSource/uuid=$name-uuid">
1233 1233
          <xsl:text>; </xsl:text>
1234 1234
          <fo:inline>
1235
            <!--xsl:value-of select="citation/authorTeam/titleCache"/-->
1235
            <!--xsl:value-of select="citation/authorship/titleCache"/-->
1236 1236
            <!--TODO wrap this in a variable and compare the previous variable to this one to see if we're dealing with the same name-->
1237
            <xsl:for-each select="citation/authorTeam/teamMembers/e">
1237
            <xsl:for-each select="citation/authorship/teamMembers/e">
1238 1238
              <xsl:value-of select="lastname"/>
1239 1239
              <xsl:choose>
1240 1240
                <xsl:when test="position() != last()">
......
1245 1245

  
1246 1246
<xsl:choose>
1247 1247
            <xsl:when test="$lastname_text != $prev_lastname_text">
1248
            <xsl:value-of select="citation/authorTeam/lastname"/><!--TODO We print lastname here as well as the author list is this a mistake?-->
1248
            <xsl:value-of select="citation/authorship/lastname"/><!--TODO We print lastname here as well as the author list is this a mistake?-->
1249 1249
            
1250 1250
            <xsl:text> (</xsl:text>
1251 1251
            <xsl:value-of select="citation/datePublished/start"/>
......
1283 1283
        <xsl:if test="nameUsedInSource/uuid=$name-uuid">
1284 1284
          <xsl:text>; </xsl:text>
1285 1285
          <fo:inline>
1286
            <!--xsl:value-of select="citation/authorTeam/titleCache"/-->
1287
            <xsl:for-each select="citation/authorTeam/teamMembers/e">
1286
            <!--xsl:value-of select="citation/authorship/titleCache"/-->
1287
            <xsl:for-each select="citation/authorship/teamMembers/e">
1288 1288
              <xsl:value-of select="lastname"/>
1289 1289
              <xsl:choose>
1290 1290
                <xsl:when test="position() != last()">
......
1293 1293
              </xsl:choose>
1294 1294
            </xsl:for-each>
1295 1295
            
1296
            <xsl:value-of select="citation/authorTeam/lastname"/>
1296
            <xsl:value-of select="citation/authorship/lastname"/>
1297 1297
            <xsl:text> (</xsl:text>
1298 1298
            <xsl:value-of select="citation/datePublished/start"/>
1299 1299
            <xsl:text>: </xsl:text>
......
1434 1434

  
1435 1435
  <xsl:template name="Referencesold">
1436 1436
    
1437
      <!-- need to sort by lastname of the first author i.e. //citation/authorTeam/teamMembers/e[1]/lastname -->
1437
      <!-- need to sort by lastname of the first author i.e. //citation/authorship/teamMembers/e[1]/lastname -->
1438 1438
      <xsl:for-each select="//citation">
1439 1439

  
1440 1440
        <!-- TODO sorting only works for the first citation, implement correctly -->

Also available in: Unified diff