Réduction / restauration de fenêtre

Le thème universality ne propose plus de bouton de réduction ou de restauration de fenêtre.

Pour les ajouter, éditez le fichier ${esup.root}/custom/uPortal/uportal-war/src/main/resources/layout/theme/universality/content.xsl :

Lignes 75, 102, 141 modifiez :

<xsl:copy-of select="."/> <!-- Write in the contents of the portlet. -->

Par :

<xsl:if test="@minimized != 'true'">
  <xsl:copy-of select="."/> <!-- Write in the contents of the portlet. -->
</xsl:if>

Dans la partie template controls, ajoutez :

 			<xsl:if test="not(//focused)">
				<xsl:choose>
					<xsl:when test="@minimized='true'"> <!-- Unminimize. -->
						<a
							href="{$baseActionURL}?uP_tcattr=minimized&amp;minimized_channelId={@ID}&amp;minimized_{@ID}_value=false#{@ID}" class="portlet-control unminimize">
							<span>
								<xsl:value-of select="$TOKEN[@name='PORTLET_UNMINIMIZE_LABEL']" />
							</span>
						</a>
					</xsl:when>
					<xsl:otherwise> <!-- Minimize. -->
						<a
							href="{$baseActionURL}?uP_tcattr=minimized&amp;minimized_channelId={@ID}&amp;minimized_{@ID}_value=true#{@ID}" class="portlet-control minimize">
							<span>
								<xsl:value-of select="$TOKEN[@name='PORTLET_MINIMIZE_LABEL']" />
							</span>
						</a>
					</xsl:otherwise>
				</xsl:choose>
			</xsl:if>

Détachement d'un canal iframe

Pour ajouter un contrôle de détachement d'un canal iframe vers un nouvel onglet/fenêtre, éditez le fichier ${esup.root}/custom/uPortal/uportal-war/src/main/resources/layout/theme/universality/content.xsl :
Dans la partie template controls, ajoutez :

       <xsl:if test="parameter[@name='url']"> <!-- Detach iframe content. -->
	      <xsl:choose>
	        <xsl:when test="string-length(substring-after(parameter[@name='url']/@value,'service='))&gt; 0">
	          <a href="{substring-after(parameter[@name='url']/@value,'service=')}" target="_blank" title="{$TOKEN[@name='PORTLET_DETACH_LONG_LABEL']}" class="portlet-control detach">
              <span><xsl:value-of select="$TOKEN[@name='PORTLET_DETACH_LABEL']"/></span>
            </a>
	        </xsl:when>
	        <xsl:otherwise>
            <a href="{parameter[@name='url']/@value}" target="_blank" title="{$TOKEN[@name='PORTLET_DETACH_LONG_LABEL']}" class="portlet-control detach">
              <span><xsl:value-of select="$TOKEN[@name='PORTLET_DETACH_LABEL']"/></span>
            </a>
	        </xsl:otherwise>
	      </xsl:choose>
      </xsl:if>