Project

General

Profile

Revision 9fda2b40

ID9fda2b40ed247dff42298e3cb57713c1fc38b408
Parent a15e89cb
Child 6dc32b87

Added by Andreas Müller over 5 years ago

rename Reference.authorTeam -> authorship #4432

View differences:

cdmlib-print/src/main/resources/stylesheets/pdf/flore-afrique-centrale.xsl
553 553
  <xsl:template match="nomenclaturalReference">
554 554
    <xsl:text> (</xsl:text>
555 555
    <fo:inline>
556
      <xsl:value-of select="authorTeam/titleCache"/>
556
      <xsl:value-of select="authorship/titleCache"/>
557 557
      <xsl:text> </xsl:text>
558 558
      <xsl:value-of select="datePublished/start"/>: </fo:inline>
559 559
    <xsl:text> </xsl:text>
......
1324 1324
    <xsl:for-each select="//nomenclaturalReference[count(. | key('citations-by-uuid', uuid)[1]) = 1] | //citation[count(. | key('citations-by-uuid', uuid)[1]) = 1]">
1325 1325
    <!--xsl:for-each select="//nomenclaturalReference[count(. | key('nomenclaturalrefs-by-uuid', uuid)[1]) = 1]"-->
1326 1326
      <!--xsl:for-each select="//nomenclaturalReference"-->
1327
        <xsl:sort select="authorTeam/lastname | authorTeam/teamMembers/e[1]/lastname" />
1327
        <xsl:sort select="authorship/lastname | authorship/teamMembers/e[1]/lastname" />
1328 1328
      <xsl:sort select="datePublished/start"></xsl:sort>
1329 1329

  
1330 1330
      <fo:block linefeed-treatment="preserve" text-align="justify" text-indent="-{$taxon-name-indentation}" start-indent="{$taxon-name-indentation}">
......
1335 1335
          <!--xsl:value-of select="titleCache"/-->
1336 1336
          
1337 1337
          <!--I am only listing references which have at least one author name. If there are other references in the database - why don't these have an author name-->
1338
          <xsl:if test="authorTeam/teamMembers/e[1]/lastname != '' or authorTeam/lastname != '' or authorTeam/titleCache != ''">               
1338
          <xsl:if test="authorship/teamMembers/e[1]/lastname != '' or authorship/lastname != '' or authorship/titleCache != ''">               
1339 1339
                <!--xsl:text>&#xA;</xsl:text-->
1340 1340
                <xsl:choose>
1341
                  <xsl:when test="authorTeam/teamMembers/e[1]/lastname != ''">
1342
                    <xsl:for-each select="authorTeam/teamMembers/e">
1341
                  <xsl:when test="authorship/teamMembers/e[1]/lastname != ''">
1342
                    <xsl:for-each select="authorship/teamMembers/e">
1343 1343
                      <fo:inline>
1344 1344
                        <xsl:value-of select="lastname"/>
1345 1345
                        <xsl:text> </xsl:text>
......
1354 1354
                  </xsl:when>
1355 1355
                  <xsl:otherwise>
1356 1356
                    <xsl:choose>
1357
                      <xsl:when test="authorTeam/lastname != ''">
1358
                    <!--xsl:if test="authorTeam/lastname != ''"-->
1357
                      <xsl:when test="authorship/lastname != ''">
1358
                    <!--xsl:if test="authorship/lastname != ''"-->
1359 1359
                    <fo:inline>
1360
                      <xsl:value-of select="authorTeam/lastname"/>
1360
                      <xsl:value-of select="authorship/lastname"/>
1361 1361
                      <xsl:text> </xsl:text>
1362
                      <xsl:value-of select="authorTeam/firstname"/>
1362
                      <xsl:value-of select="authorship/firstname"/>
1363 1363
                    </fo:inline>
1364 1364
                      </xsl:when>
1365 1365
                      <xsl:otherwise>
1366 1366
                        <fo:inline>
1367
                          <xsl:value-of select="authorTeam/titleCache"/>
1367
                          <xsl:value-of select="authorship/titleCache"/>
1368 1368
                        </fo:inline>
1369 1369
                      </xsl:otherwise>
1370 1370
                    <!--/xsl:if-->
......
1438 1438
      <xsl:for-each select="//citation">
1439 1439

  
1440 1440
        <!-- TODO sorting only works for the first citation, implement correctly -->
1441
        <xsl:sort select="authorTeam/lastname"/>
1442
        <xsl:sort select="authorTeam/teamMembers/e[1]/lastname"/>
1441
        <xsl:sort select="authorship/lastname"/>
1442
        <xsl:sort select="authorship/teamMembers/e[1]/lastname"/>
1443 1443
        <fo:block>
1444 1444
        <fo:inline>
1445 1445
          
......
1459 1459
           <!-- .[not(preceding-sibling::Link[@personId   = current()/@personId -->
1460 1460
          <xsl:choose>
1461 1461
                         
1462
            <xsl:when test="authorTeam/teamMembers/e[1]/lastname != '' or authorTeam/lastname != ''">                                     
1462
            <xsl:when test="authorship/teamMembers/e[1]/lastname != '' or authorship/lastname != ''">                                     
1463 1463
            
1464 1464
              <xsl:choose>
1465
                <xsl:when test="authorTeam/teamMembers/e[1]/lastname != ''">
1466
                <xsl:for-each select="authorTeam/teamMembers/e">
1465
                <xsl:when test="authorship/teamMembers/e[1]/lastname != ''">
1466
                <xsl:for-each select="authorship/teamMembers/e">
1467 1467
                  <fo:inline font-weight="bold">
1468 1468
                    <xsl:value-of select="lastname"/>
1469 1469
                    <xsl:choose>
......
1475 1475
                </xsl:for-each>
1476 1476
                </xsl:when>
1477 1477
                <xsl:otherwise>
1478
                  <xsl:if test="authorTeam/lastname != ''">
1478
                  <xsl:if test="authorship/lastname != ''">
1479 1479
                  <fo:inline font-weight="bold">
1480
                    <xsl:value-of select="authorTeam/lastname"/>
1480
                    <xsl:value-of select="authorship/lastname"/>
1481 1481
                  </fo:inline>
1482 1482
                  </xsl:if>
1483 1483
                </xsl:otherwise>

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)