|
378 | 378 | </xd:desc> |
379 | 379 | <xd:return></xd:return> |
380 | 380 | </xd:doc> |
381 | | - <xd:doc> |
382 | | - <xd:desc> |
383 | | - <xd:p></xd:p> |
384 | | - </xd:desc> |
385 | | - <xd:return></xd:return> |
386 | | - </xd:doc> |
387 | 381 | <xsl:function name="tools:generateIndizes" as="node()+"> |
388 | 382 | <xsl:message select="'Generating indices'"/> |
389 | 383 | <section id="elementIndex" class="backIndex"> |
|
426 | 420 | </div> |
427 | 421 | </xsl:for-each> |
428 | 422 | </section> |
| 423 | + </xsl:function> |
| 424 | + |
| 425 | + <xd:doc> |
| 426 | + <xd:desc> |
| 427 | + <xd:p>Generates a list of contributors for the back of the Guidelines PDF</xd:p> |
| 428 | + </xd:desc> |
| 429 | + <xd:return>an html:section containing the contributors</xd:return> |
| 430 | + </xd:doc> |
| 431 | + <xsl:function name="tools:generateContributorsList" as="node()+"> |
| 432 | + <xsl:message select="'Generating contributors list'"/> |
429 | 433 | <section id="contributorList" class="backIndex"> |
430 | 434 | <h1>Contributors</h1> |
431 | 435 | <p> |
|
452 | 456 | bridges between different musical repertoires and styles, historical periods, cultural backgrounds, musical domains, |
453 | 457 | research interests, and methodical concepts by reasoning about a common encoding framework like MEI. |
454 | 458 | </p> |
455 | | - |
456 | 459 | </section> |
457 | 460 | </xsl:function> |
458 | 461 |
|
|
464 | 467 | <xd:return></xd:return> |
465 | 468 | </xd:doc> |
466 | 469 | <xsl:function name="tools:getContributors" as="node()*"> |
| 470 | + <xsl:message select="'Getting contributors'"/> |
467 | 471 | <xsl:variable name="spec.repo.contributors" select="'https://api.github.com/repos/music-encoding/music-encoding/contributors'" as="xs:string"/> |
468 | 472 | <xsl:variable name="docs.repo.contributors" select="'https://api.github.com/repos/music-encoding/guidelines/contributors'" as="xs:string"/> |
469 | 473 |
|
470 | 474 | <xsl:variable name="contributors"> |
471 | 475 | <xsl:variable name="raw.contributors" as="node()*"> |
472 | | - <xsl:sequence select="tools:retrieveData($docs.repo.contributors)/child::json:array/json:map"/> |
473 | | - <xsl:sequence select="tools:retrieveData($spec.repo.contributors)/child::json:array/json:map"/> |
| 476 | + <xsl:if test="$retrieve-contributors"> |
| 477 | + <xsl:sequence select="tools:retrieveData($docs.repo.contributors)/child::json:array/json:map"/> |
| 478 | + <xsl:sequence select="tools:retrieveData($spec.repo.contributors)/child::json:array/json:map"/> |
| 479 | + </xsl:if> |
474 | 480 | </xsl:variable> |
475 | 481 | <xsl:variable name="unique.ids" select="distinct-values($raw.contributors//json:number[@key = 'id']/text())" as="xs:string*"/> |
476 | 482 | <xsl:variable name="unique.contributors" as="node()*"> |
|
0 commit comments