|
474 | 474 | <!-- Template to handle a reference to a stored process (typically in bookmarks) -->
|
475 | 475 |
|
476 | 476 | <xsl:template match="ClassifierMap[@TransformRole='StoredProcess']">
|
| 477 | + <xsl:param name="showDescription"/> |
| 478 | + <xsl:param name="showLocation"/> |
477 | 479 |
|
478 | 480 | <xsl:variable name="stpProgram">
|
479 | 481 | <xsl:for-each select="Trees//Tree">
|
|
492 | 494 | </xsl:variable>
|
493 | 495 |
|
494 | 496 | <a><xsl:attribute name="href"><xsl:value-of select="$stpURI"/></xsl:attribute><xsl:value-of select="@Name"/></a><br/>
|
495 |
| - <span style="white-space: nowrap;" colspan="13" class="treeDescription">- <xsl:value-of select="@Desc"/></span><br/> |
496 |
| - <span style="white-space: nowrap;" colspan="13" class="treeDescription">- METASERVER<xsl:value-of select="$stpLocation"/></span> |
| 497 | + |
| 498 | + <xsl:choose> |
| 499 | + <xsl:when test="$showDescription = 'true' and @Desc != ''"> |
| 500 | + <span style="white-space: nowrap;" colspan="13" class="treeDescription">- <xsl:value-of select="@Desc"/></span><br/> |
| 501 | + </xsl:when> |
| 502 | + </xsl:choose> |
| 503 | + <xsl:choose> |
| 504 | + <xsl:when test="$showLocation = 'true' and $stpLocation != ''"> |
| 505 | + <span style="white-space: nowrap;" colspan="13" class="treeDescription">- METASERVER<xsl:value-of select="$stpLocation"/></span> |
| 506 | + </xsl:when> |
| 507 | + </xsl:choose> |
497 | 508 |
|
498 | 509 | </xsl:template>
|
499 | 510 |
|
500 | 511 | <!-- Template to handle a reference to a Report (typically in bookmarks)-->
|
501 | 512 |
|
502 | 513 | <xsl:template match="Transformation[@TransformRole='Report']">
|
503 |
| - |
| 514 | + <xsl:param name="showDescription"/> |
| 515 | + <xsl:param name="showLocation"/> |
504 | 516 | <!-- Unfortunately, to display a report, you need the entire path to it, thus it is required to navigate the parent tree
|
505 | 517 | structure.
|
506 | 518 | -->
|
|
515 | 527 | </xsl:variable>
|
516 | 528 |
|
517 | 529 | <xsl:call-template name="reportLink">
|
518 |
| - <xsl:with-param name="reportSBIPURI" select="$reportSBIPURI"/> |
| 530 | + <xsl:with-param name="reportSBIPURI" select="$reportSBIPURI"/> |
| 531 | + <xsl:with-param name="showDescription" select="$showDescription"/> |
| 532 | + <xsl:with-param name="showLocation" select="$showLocation"/> |
519 | 533 | </xsl:call-template>
|
520 | 534 |
|
521 | 535 | </xsl:template>
|
|
553 | 567 | In this case, we simply want to make a link to the right tab for this referenced portal page.
|
554 | 568 | -->
|
555 | 569 | <xsl:choose>
|
556 |
| - <xsl:when test="name(.)='PSPortalPage'"> |
| 570 | + <xsl:when test="name(.)='PSPortalPage'"> |
557 | 571 | <xsl:call-template name="PortalPageLink">
|
558 |
| - <xsl:with-param name="showDescription" select="$showDescription"/> |
559 |
| - <xsl:with-param name="showLocation" select="$showLocation"/> |
560 |
| - </xsl:call-template> |
561 |
| - </xsl:when> |
562 |
| - <xsl:otherwise> |
563 |
| - <xsl:apply-templates select="."> |
564 |
| - <xsl:with-param name="showDescription" select="$showDescription"/> |
565 |
| - <xsl:with-param name="showLocation" select="$showLocation"/> |
566 |
| - </xsl:apply-templates> |
| 572 | + <xsl:with-param name="showDescription" select="$showDescription"/> |
| 573 | + <xsl:with-param name="showLocation" select="$showLocation"/> |
| 574 | + </xsl:call-template> |
| 575 | + </xsl:when> |
| 576 | + <xsl:otherwise> |
| 577 | + <xsl:apply-templates select="."> |
| 578 | + <xsl:with-param name="showDescription" select="$showDescription"/> |
| 579 | + <xsl:with-param name="showLocation" select="$showLocation"/> |
| 580 | + </xsl:apply-templates> |
567 | 581 | </xsl:otherwise>
|
568 | 582 | </xsl:choose>
|
569 | 583 | </td>
|
|
780 | 794 | </xsl:template>
|
781 | 795 |
|
782 | 796 | <xsl:template name="reportLink">
|
783 |
| - |
784 |
| - <xsl:param name = "reportSBIPURI" /> |
| 797 | + <xsl:param name = "reportSBIPURI" /> |
| 798 | + <xsl:param name="showDescription"/> |
| 799 | + <xsl:param name="showLocation"/> |
785 | 800 |
|
786 | 801 | <tr>
|
787 | 802 | <td class="portletEntry" valign="top" colspan="2">
|
|
792 | 807 | <xsl:variable name="wrsURI"><xsl:text>/SASWebReportStudio/openRVUrl.do?rsRID=</xsl:text><xsl:value-of select="$wrsProgram"/></xsl:variable>
|
793 | 808 |
|
794 | 809 | <a><xsl:attribute name="href"><xsl:value-of select="$wrsURI"/></xsl:attribute><xsl:value-of select="@Name"/></a><br/>
|
| 810 | + |
795 | 811 | <xsl:variable name="stpLocation">
|
796 | 812 | <xsl:for-each select="Trees//Tree">
|
797 | 813 | <xsl:sort select="position()" order="descending"/>
|
798 | 814 | <xsl:text>/</xsl:text><xsl:value-of select="@Name"/>
|
799 | 815 | </xsl:for-each>
|
800 |
| - </xsl:variable> |
| 816 | + </xsl:variable> |
| 817 | + |
| 818 | + <xsl:choose> |
| 819 | + <xsl:when test="$showDescription = 'true' and @Desc != ''"> |
| 820 | + <span style="white-space: nowrap;" colspan="13" class="treeDescription">- <xsl:value-of select="@Desc"/><br/></span> |
| 821 | + </xsl:when> |
| 822 | + </xsl:choose> |
| 823 | + <xsl:choose> |
| 824 | + <xsl:when test="$showLocation = 'true' and $stpLocation != ''"> |
| 825 | + <span style="white-space: nowrap;" colspan="13" class="treeDescription">- METASERVER<xsl:value-of select="$stpLocation"/></span> |
| 826 | + </xsl:when> |
| 827 | + </xsl:choose> |
801 | 828 |
|
802 |
| - <span style="white-space: nowrap;" colspan="13" class="treeDescription">- <xsl:value-of select="@Desc"/><br/></span> |
803 |
| - <span style="white-space: nowrap;" colspan="13" class="treeDescription">- METASERVER<xsl:value-of select="$stpLocation"/></span> |
804 | 829 |
|
805 | 830 | <!--
|
806 | 831 | <iframe style="overflow: auto;width: 100%" frameborder="0" >
|
|
0 commit comments