liste des utilisateurs des packages esupdev et uPortal-Esup

Archives de la liste Aide


[Fwd: Re: [esup-utilisateurs] Onglet plus actif ?]


Chronologique Discussions 
  • From: Yves Daoulatian < >
  • To: esup portail utilisateur < >
  • Subject: [Fwd: Re: [esup-utilisateurs] Onglet plus actif ?]
  • Date: Fri, 05 Sep 2008 13:07:11 +0200
  • Organization: Ecole Normale Supérieure de Lyon

Bonjour,
en plus j'ai  :
./BUILD/uPortal-2.5-esup-2.1.01/UpdateEsup/uPortalCRIM/webpages/stylesheets/org/jasig/portal/layout/AL_TabColumn/integratedModes/integratedModes.xsl
./BUILD/uPortal-2.5-esup-2.1.01/UpdateEsup/uPortal/webpages/stylesheets/org/jasig/portal/layout/AL_TabColumn/integratedModes/integratedModes.xsl
./BUILD/uPortal-2.5-esup-2.1.01/UpdateEsup/uPortalWAI/webpages/stylesheets/org/jasig/portal/layout/AL_TabColumn/integratedModes/integratedModes.xsl

Comment savoir s'ils sont utilisés ? Je ne pense pas  à priori.

Merci.

-------- Message original --------
Sujet : Re: [esup-utilisateurs] Onglet plus actif ?
Date : Fri, 05 Sep 2008 12:54:30 +0200
De : Yves Daoulatian ">< >
Organisation : Ecole Normale Supérieure de Lyon
Pour : Julien Marchal ">< >, esup portail utilisateur ">< >
Références : ">< > ">< >


Bonjour,
Merci, j'ai pas tout compris dans le fichier ! à quel moment l'onglet est réactivé ? Comment se fait-il que ça soit un fonctionnement normal puisque les usagers naviguent et reviennent sur le même onglet ?

Oui mais dans l'ENT nous avons dû récupérer une feuille de style qui est en pièces jointes et les fichiers integratedModes.xsl ne sont pas pris en compte ?
avez-vous une piste ? dans le fichier en pièces jointes ?

Merci.

--------
Yves
Pôle du Système d'Information
Pages professionnelles ENS : http://perso.ens-lyon.fr/yves.daoulatian/



Julien Marchal a écrit :
" type="cite"> Bonjour,
    En fait c'est un fonctionnement voulu lorsque je clique sur le canal "ENS" on désactive le lien sur ce canal puisqu'il est déjà affiché. Je vois bien que ce qui vous arrangerais c'est ed pouvoir recliquer pour revenir a l'accueil de votre iframe.
    Vous devriez pouvoir modifier ce comportement dans le fichier :
webpages/stylesheets/org/jasig/portal/layout/AL_TabColumn/integratedModes/integratedModes.xsl

  737                 <xsl:for-each select="/layout/content/column/channel">
  738                   <xsl:variable name="actualId"><xsl:value-of select="@ID"/></xsl:variable>
  739                   <xsl:choose>

CAS OU LE CANAL EST DEJA ACTIF DONC PAS DE LIEN

  740                     <xsl:when test="$actualId=$channelActif">
  741                       <span class="navigation-selected"><!-- sousmenuselect --><xsl:value-of select="@title"/></span>
  742                       <!-- Il faut ajouter le symbole | pour separer les menus -->
  743                       <xsl:if test="position()!=last()">
  744                         <span class="uportal-channel-strong"><!-- sousmenu --> | </span>
  745                       </xsl:if>
  746                     </xsl:when>
  747                     <!--Menu de niveau 2 pour les channels non-affiches -->
  748                     <xsl:otherwise>
  749 

CAS OU LE CANAL N4EST PAS ACTIF DONC LIEN 

 750                         <a class="uportal-navigation-category"><!-- sousmenu -->
  751                           <xsl:attribute name="href">
  752                             <xsl:variable name="actualId2"><xsl:value-of select="@ID"/></xsl:variable>
  753                             <xsl:value-of select="$baseActionURL"/>?uP_tcattr=minimized
  754                             <xsl:for-each select="../../column/
 'false' and @ID!=$actualId2]"><!--
  755                               -->&amp;minimized_channelId=<xsl:value-of select="@ID"/><!--
  756                               -->&amp;minimized_<xsl:value-of select="@ID"/>_value=true<!--
  757 
  758                               <xsl:choose>
  759                                 <xsl:when test="@ID=$actualId2">false</xsl:when>
  760                                 <xsl:otherwise>true</xsl:otherwise>
  761                               </xsl:choose>-->
  762                             </xsl:for-each><!--
  763                               -->&amp;minimized_channelId=<xsl:value-of select="@ID"/><!--
  764                               -->&amp;minimized_<xsl:value-of select="@ID"/>_value=false
  765                           </xsl:attribute>
  766                           <xsl:value-of select="@title"/>
  767                         </a>
  768 
  769                       <!-- Il faut ajouter le symbole | pour separer les menus -->
  770                       <xsl:if test="position()!=last()">
  771                         <span class="uportal-navigation-category"><!-- sousmenu --> | </span>
  772                       </xsl:if>
  773                     </xsl:otherwise>
  774                   </xsl:choose>
  775                 </xsl:for-each>

 

Yves Daoulatian a écrit :
" type="cite">Bonjour,
j'avais déjà posé cette question sur le forum mais je ne suis pas sûr d'avoir été très clair :
Sur le portail https://ent.ens-lyon.fr (esup 2.5) lorsque l'on clique par exemple sur un onglet et lorsque l'on revient sur celui-ci le menu n'est plus actif il faut rafraichir la page !
Je m'explique :
si vous cliquez (hors CAS) via https://ent.ens-lyon.fr  sur l'onglet ENS un menu apparait. Si vous cliquez sur école puis que vous recliquez sur ens le menu n'apparait plus !

Faut-il modifier les paramètres du fragment  ou autre chose ? Merci d'avance .

***************
<fragment name="Accueil" type="pushed">
       <description>Accueil</description>
       <groups>
           <group>Tous les groupes de personnes</group>
       </groups>
       <restrictions>
           <restriction path="local" name="priority" value="19000-19999"/>
           <restriction path="local" name="depth" value="1"/>
       </restrictions>
       <folder name="Accueil" immutable="Y" unremovable="Y" hidden="N">
               <folder name="column1" immutable="Y" unremovable="Y" hidden="N">
               <channel fname="accueil-esup-portail" immutable="Y" unremovable="Y" hidden="N"/>
                               <channel fname="Annuaire_Nonauth" immutable="Y" unremovable="Y" hidden="N"/>                                  <channel fname="CActu" immutable="Y" unremovable="Y" hidden="N"/>                                  <channel fname="Annuaire_Auth" immutable="Y" unremovable="Y" hidden="N"/>                                  <channel fname="CAccueil-ens" immutable="Y" unremovable="Y" hidden="N"/>                                 <channel fname="CAccueil-contact" immutable="Y" unremovable="Y" hidden="N"/>                                 <channel fname="CAnnuEleves" immutable="Y" unremovable="Y" hidden="N"/>                                                           <channel fname="CAccueil-aide" immutable="Y" unremovable="Y" hidden="N"/>                                <!-- <channel fname="AnnoncePortailENS" immutable="Y" unremovable="Y" hidden="N"/> -->                </folder>
       </folder>
   </fragment>
***************



--
Pôle Lorrain de Gestion
13 rue du Maréchal Ney
CO 30075
54036 NANCY Cedex
> Téléphone 03.54.50.36.54
> Fax 03.54.50.36.51
Julien Marchal
Equipe réseau - CRI

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>


	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- xsl import										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<xsl:import href="page.xsl"/>
	<xsl:import href="channel-action.xsl"/>
	<xsl:import href="calculate.xsl"/>
	<xsl:import href="restrictions.xsl"/>
	<xsl:import href="menu.xsl"/>
	<xsl:import href="tabs.xsl"/>
	
	<xsl:import href="boxes-layout.xsl"/>
	<xsl:import href="flat-layout.xsl"/>
	 
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- xsl output										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:output method="html" indent="yes"/>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- xsl params	and varialbes						 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:param name="uP_productAndVersion">uPortal X.X.X</xsl:param>
    <!--These variables and parameters are used in all modes-->
    <xsl:param name="baseActionURL" select="'render.userLayoutRootNode.uP'"/>
    <!--modes: view (default), preferences, fragment-->
    <xsl:variable name="mode" select="/layout/@mode"/>
    <xsl:variable name="current_structure" select="/layout/@current_structure"/>
    <xsl:param name="mediaPath">media/org/jasig/portal/layout/AL_TabColumn/anywareModes</xsl:param>
    <xsl:param name="skin" select="'immII'"/>
    <xsl:variable name="mediaPathSkin" select="concat($mediaPath,'/',$skin,'/skin')"/>
    <!--<xsl:variable name="mediaPathBorder" select="concat($mediaPath,'/',$skin)"/>-->
    <xsl:variable name="mediaPathHeader" select="concat($mediaPath,'/',$skin,'/institutional')"/>
    <xsl:variable name="mediaPathMainBorder" select="concat($mediaPath,'/',$skin,'/mainBorder')"/>
    <xsl:variable name="mediaPathColumnBorder" select="concat($mediaPath,'/',$skin,'/columnBorder')"/>
    <xsl:variable name="mediaPathImg" select="concat($mediaPath,'/',$skin,'/img')"/>
    <xsl:variable name="mediaPathIcons" select="concat($mediaPath,'/',$skin,'/icons')"/>
    <xsl:param name="errorMessage" select="'no errorMessage passed'"/>
    <!-- <xsl:param name="errorMessage"> newNodID= <xsl:value-of select="/layout/@newNodeID"/> focusedTabID=<xsl:value-of select="/layout/@focusedTabID"/></xsl:param> -->
    <xsl:variable name="authenticated" select="/layout/@authenticated"/>
    <xsl:param name="authorizedChannelPublisher" select="'false'"/>
    <xsl:param name="authorizedFragmentPublisher" select="'false'"/>
    <xsl:param name="userName" select="'Guest'"/>
    <!--These variables and parameters are used in fragment mode-->
    <!-- <xsl:param name="currentFragmentID" select="'default_layout'"/> -->
    <!--These variables and parameters are used in preferences mode-->
    <xsl:param name="moveID" select="/layout/@selectedID"/>
    <xsl:param name="selectedID" select="/layout/@selectedID"/>
    <xsl:param name="focusedTabID" select="/layout/@focusedTabID"/>
    <xsl:param name="targetRestriction" select="/layout/@targetRestriction"/>
    <xsl:param name="targetAction" select="/layout/@targetAction"/>
    <!-- Commented out due to lack of evidence that it is used anywhere
	<xsl:variable name="unauthenticated" select="/layout/@unauthenticated"/>
	-->
    <xsl:variable name="userLayoutRoot" select="/layout/@userLayoutRoot"/>
    <xsl:param name="channelPublishID" select="'no channelPublishID passed'"/>
    <!-- <xsl:param name="uP_fragmentPublishID" select="'no fragmentPublishID passed'"/> -->
    <!--  <xsl:param name="uP_fragmentRootID" select="'no fragmentRootID passed'"/> -->
    
	<!-- Ajout ESUP CRIM -->
	<xsl:variable name="msgErrPref">Cet onglet a été créé par l'administrateur de l'espace numérique de travail, vous ne pouvez pas modifier son contenu.</xsl:variable>
	<xsl:variable name="nbcolumn"><xsl:value-of select="count(//column)" /></xsl:variable>
	<xsl:variable name="widthcanal"><xsl:value-of select="100 div count(//channel)" /></xsl:variable>
	<xsl:variable name="channelActif">
		<xsl:choose>
			<!-- Soit il n'y a qu'un canal maximise -->
			<xsl:when test="count(/layout/content/column/
 'false'])=1">
				<xsl:value-of select="/layout/content/column/
 'false']/@ID" />
			</xsl:when>
			<!-- Soit on prend le premier de la premiere colonne -->
			<xsl:otherwise>
				<xsl:value-of select="/layout/content/column[1]/channel[1]/@ID" />
			</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>
	<!-- Fin Ajout ESUP CRIM -->
	
	<!-- Ajout Benjamin -->
	<!-- Selection le mode de layout -->
	<xsl:variable name="layoutMode">

	<!--
	  <xsl:text>flat</xsl:text>
	-->
	 <xsl:choose>
		<!-- Attention si le channel est maximisé - 
 '' -->
		<!-- <xsl:when test="/layout/navigation/focusedTab/@name != 'Accueil' and /layout/navigation/focusedTab/@name != 'Admin Tools'"> -->

			<xsl:when test="$nbcolumn = 1">
				<xsl:text>flat</xsl:text>
			</xsl:when>
			<xsl:otherwise>
				<xsl:text>boxes</xsl:text>
			</xsl:otherwise>
		</xsl:choose>
		
	</xsl:variable>
	
	<!-- Pour switcher facilement de afficher la xml à le cacher
		Changer le style #xml_dump dans la css -->
	<xsl:variable name="debug">false</xsl:variable>
	<!-- Fin Ajout Benjamin -->


	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- focusedContent									 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="focusedContent">
    	<div id="focusedContent">
			<xsl:apply-templates select="*"/>
        </div>
    </xsl:template>


	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- move_target									 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="move_target">
        <xsl:param name="type"/>
	        <xsl:choose>
	            <xsl:when test="$type='tab'">
		            <td>
	            	<span id="move_target_tabs">
		                <!-- Move target Icon for Tabs -->
                        <a href="{$baseActionURL}?uP_move_target={$moveID}&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">
							<img src="{$mediaPathIcons}/airplanetarget.png" alt="Cliquer pour sélectionner la destination" title="Cliquer pour sélectionner la destination" width="16" height="16" border="0"/>
                        </a>
	                </span>
	                </td>
	                <!-- End Move Target Icon -->
	            </xsl:when>
	            <xsl:when test="$type='column'">
	            	<td>
	            	<span id="move_target_columns">
	                    <a href="{$baseActionURL}?uP_move_target={$moveID}&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">
	                    	<img src="{$mediaPathIcons}/add_column_ani.png" alt="Cliquer pour déplacer la colonne ici" title="Cliquer pour déplacer la colonne ici" width="22" height="18" border="0"/>
	                    </a>
	                </span>
	                </td>
	            </xsl:when>
	            <xsl:when test="$type='channel'">
		            <table id="move_target_channels"><tr><td>
	                    <a href="{$baseActionURL}?uP_move_target={$moveID}&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">
	                    	<img src="{$mediaPathIcons}/add_channel_ani.png" alt="Cliquer pour déplacer le canal ici" title="Cliquer pour déplacer le canal ici" width="22" height="18" border="0"/>
	                	</a>
	                </td></tr></table>
	            </xsl:when>
	        </xsl:choose>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- add_target										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="add_target">
    	<!-- <div id="add_target"> -->
	        <!-- Add target Icon in the Tabline -->
	        <xsl:if test="$targetRestriction='tab'">
		  <!--
	        <td>
	        	<span id="add_target_tabs">
					<a href="{$baseActionURL}?uP_add_target=folder&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_cancel_targets=true&amp;uP_sparam=newNodeID&amp;newNodeID=">
						<img src="{$mediaPathIcons}/airplanetarget.png" alt="Cliquer pour ajouter un nouvel onglet ici" title="Cliquer pour ajouter un nouvel onglet ici" width="16" height="16" border="0"/>
					</a>
	            </span>
	        </td>
		-->

		 <li class="add_target_li">
	        	<span id="add_target_tabs">
					<a href="{$baseActionURL}?uP_add_target=folder&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_cancel_targets=true&amp;uP_sparam=newNodeID&amp;newNodeID=">
						<img src="{$mediaPathIcons}/airplanetarget.png" alt="Cliquer pour ajouter un nouvel onglet ici" title="Cliquer pour ajouter un nouvel onglet ici" width="16" height="16" border="0"/>
					</a>
	            </span>
	        </li>

	        </xsl:if>
	        <!-- End Add Target Icon in the Tabline -->
	        <!-- Add target Icon in the Columns -->
	        <xsl:if test="$targetRestriction='column'">
	        <td>
	        	<span id="add_target_columns">
	                <a href="{$baseActionURL}?uP_add_target=folder&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true&amp;uP_sparam=newNodeID&amp;newNodeID=">
						<img src="{$mediaPathIcons}/add_column_ani.png" alt="Cliquer pour ajouter une nouvelle colonne ici" title="Cliquer pour ajouter une nouvelle colonne ici" width="22" height="18" border="0"/>
					</a>
	            </span>
	        </td>
	        </xsl:if>
	        <!-- End Add Target Icon in the Columns -->
	        <!-- Add target Icon in the Channels -->
	        <xsl:if test="$targetRestriction='channel'">
	        <table id="add_target_channels"><tr><td>
                <a href="{$baseActionURL}?uP_add_target=channel&amp;
 &amp;
 &amp;uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true&amp;uP_sparam=newNodeID&amp;newNodeID=">
					<img src="{$mediaPathIcons}/add_channel_ani.png" alt="Cliquer pour ajouter un nouveau canal ici" title="Cliquer pour ajouter un nouveau canal ici" width="22" height="18" border="0"/>
				</a>
			</td></tr></table>
	        </xsl:if>
	        <!-- End Add Target Icon in the Channels -->
        <!-- </div> -->
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- mode="view"									 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="@name" mode="view">
        <span id="mode_view">
            <xsl:value-of select="."/>
        </span>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- mode="preferences"								 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="@name" mode="preferences">
        <span id="mode_preferences">
            <a class="uportal-navigation-category" href="#">
                <xsl:value-of select="."/>
            </a>
        </span>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- login											 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="login"/>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- actions										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template match="actions">
    	<div id="actions">
    		<span id="actions_fragment">
	            <!-- temporary fix until fragment mode added -->
	            <xsl:choose>
	                <xsl:when test=" $current_structure = 'fragment' ">Action sur le contenu des fragments</xsl:when>
	                <xsl:otherwise>Préférences utilisateur</xsl:otherwise>
	            </xsl:choose>
            </span>
            <xsl:call-template name="actionList"/>
            <xsl:choose>
                <xsl:when test="not($errorMessage='no errorMessage passed')">
                    <xsl:call-template name="messageRow"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:call-template name="statusCheck"/>
                </xsl:otherwise>
            </xsl:choose>
        </div>    
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- statusCheck									 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="statusCheck"/>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- messageRow										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="messageRow">
    	<div id="messageRow">
			<xsl:call-template name="message"/>
		</div>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- message										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="message">
        <xsl:param name="messageString" select="$errorMessage"/>
        <div id="message">
            <!-- ~ -->
            <!--  Can be used for debugging - push messages out to the interface -->
            <!-- ~ -->
            <xsl:value-of select="$messageString"/>
        </div>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- column											 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<xsl:template match="column">
		<xsl:choose>
			<xsl:when test="$layoutMode='boxes'">
				<xsl:call-template name="boxes-column"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="flat-column"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>	

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- detachedChannelControls						 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="detachedChannelControls">
        <xsl:if test="not(@hasHelp='false')">
            <xsl:call-template name="channel.action.help"/>
        </xsl:if>
        <xsl:if test="not(@hasAbout='false')">
            <xsl:call-template name="channel.action.about"/>
        </xsl:if>
        <xsl:if test="not(@editable='false')">
            <xsl:call-template name="channel.action.edit"/>
        </xsl:if>
        <xsl:if test="@printable='true'">
            <xsl:call-template name="channel.action.print"/>
        </xsl:if>
    </xsl:template>

	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- actionList										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="actionList">
		<div id="actionList-info">Nombre de colonnes de cet onglet: <xsl:value-of select="$nbcolumn"/></div>
    
    	<div id="actionList">
	        <xsl:choose>
	            <xsl:when test=" $current_structure = 'fragment' ">
                    <xsl:if test="not($targetRestriction='no targetRestriction parameter')">
                        <a href="{$baseActionURL}?uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Annuler <xsl:call-template name="i18n-preferences-actions"><xsl:with-param name="targetAction" select="$targetAction"/></xsl:call-template>
                        </a>
                        <span> |<xsl:text>&#160;</xsl:text>
                        </span>
                    </xsl:if>
                    <!--                     <a href="{$baseActionURL}?uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Cancel <xsl:value-of select="$targetAction"/>
                    </a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span> -->
                    <!-- <a href="{$baseActionURL}?uP_sparam=mode&amp;mode=view&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Return to Fragment Manager</a>
            <span> |<xsl:text>&#160;</xsl:text>
            </span> -->
                    <!-- <a href="{$baseActionURL}?uP_request_add_targets=folder&amp;uP_sparam=mode&amp;mode=preferences&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=tab&amp;uP_sparam=targetAction&amp;targetAction=New Tab">New Tab</a>
            <span> |<xsl:text>&#160;</xsl:text>
            </span> -->
										
                    <a href="{$baseActionURL}?uP_request_add_targets=folder&amp;uP_sparam=mode&amp;mode=preferences&amp;uP_sparam=targetRestriction&amp;targetRestriction=column&amp;uP_sparam=targetAction&amp;targetAction=New Column">Nouvelle Colonne</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                    
                    <a href="{$baseActionURL}?uP_fname=contentsubscriber&amp;uPcCS_action=init&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Nouveau Canal</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                    
                    <!-- <a href="{$baseActionURL}?uP_fname=skinselector&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Skins</a>
            <span> |<xsl:text>&#160;</xsl:text>
            </span> -->
                    <!-- <a href="{$baseActionURL}?uP_fname=user-locales-selector&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Languages</a>
            <xsl:if test="$authorizedFragmentPublisher='true'">
                <span> |<xsl:text>&#160;</xsl:text>
                </span> -->
                    
                    <a href="{$baseActionURL}?uP_sparam=uP_save&amp;uP_save=all">Sauvegarder le fragment</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                                        
                    <a href="{$baseActionURL}?uP_fname=fragment-manager&amp;uPcFM_action=default&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true&amp;uP_sparam=lastSessionTabID&amp;lastSessionTabID={$focusedTabID}">Retourner à la gestion des fragments</a>
                    <!-- </xsl:if> -->
	            </xsl:when>
	            <xsl:otherwise>
                    <xsl:if test="not($targetRestriction='no targetRestriction parameter')">
												 
                        <a href="{$baseActionURL}?uP_sparam=mode&amp;mode={$mode}&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Annuler <xsl:call-template name="i18n-preferences-actions"><xsl:with-param name="targetAction" select="$targetAction"/></xsl:call-template>
                        </a>
                        <span> |<xsl:text>&#160;</xsl:text>
                        </span>
                    </xsl:if>
                      
                    <a href="{$baseActionURL}?uP_sparam=mode&amp;mode=view&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Fermer le menu Préférences</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                      
                    <a href="{$baseActionURL}?uP_request_add_targets=folder&amp;uP_sparam=mode&amp;mode=preferences&amp;uP_sparam=focusedTabID&amp;focusedTabID={$focusedTabID}&amp;uP_sparam=targetRestriction&amp;targetRestriction=tab&amp;uP_sparam=targetAction&amp;targetAction=New Tab">Nouvel Onglet</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                      
                    <a href="{$baseActionURL}?uP_request_add_targets=folder&amp;uP_sparam=mode&amp;mode=preferences&amp;uP_sparam=targetRestriction&amp;targetRestriction=column&amp;uP_sparam=targetAction&amp;targetAction=New Column">Nouvelle Colonne</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>

					<!-- TODO -->                                       
                    <!-- <xsl:if test="$nbcolumn != 1"> -->
	                    <a href="{$baseActionURL}?uP_fname=contentsubscriber&amp;uPcCS_action=init&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Nouveau Canal</a>
	                    <span> |<xsl:text>&#160;</xsl:text>
	                    </span>
                    <!-- </xsl:if> -->
                    
                    <a href="{$baseActionURL}?uP_fname=skinselector&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Skins</a>
                    <span> |<xsl:text>&#160;</xsl:text>
                    </span>
                    
                    <a href="{$baseActionURL}?uP_fname=user-locales-selector&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true">Langues</a>
                    <xsl:if test="$authorizedFragmentPublisher='true'">
                        <span> |<xsl:text>&#160;</xsl:text>
                        </span>
                        <a href="{$baseActionURL}?uP_fname=fragment-manager&amp;uPcFM_action=default&amp;uP_sparam=targetRestriction&amp;targetRestriction=no targetRestriction parameter&amp;uP_sparam=targetAction&amp;targetAction=no targetAction parameter&amp;uP_sparam=selectedID&amp;selectedID=&amp;uP_cancel_targets=true&amp;uP_sparam=lastSessionTabID&amp;lastSessionTabID={$focusedTabID}">Fragments</a>
                    </xsl:if>
	            </xsl:otherwise>
	        </xsl:choose>
		</div>
    </xsl:template>
    
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- channel										 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<xsl:template match="channel">
		<xsl:choose>
			<xsl:when test="$layoutMode='boxes'">
				<xsl:call-template name="boxes-channel"/>
			</xsl:when>
			<xsl:otherwise>
				<xsl:call-template name="flat-channel"/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>
	
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
	<!-- debug											 -->
	<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
    <xsl:template name="debug">
    	<xsl:if test="$debug='true'">
	    	<center>
		    	<div id="xml_dump">
			    	<div>Nombre de colonnes de cet onglet: <xsl:value-of select="$nbcolumn"/></div>
			    	<h1>XML Source Dump</h1>
		    		<textarea cols="100" rows="100">
				    	<xsl:copy-of select="/" />
			    	</textarea>
		    	</div>
	    	</center>
	    </xsl:if>
    </xsl:template>
    
    <xsl:template name="i18n-preferences-actions">
    	<xsl:param name="targetAction"/>
    	<xsl:choose>
    		<xsl:when test="$targetAction= 'New Tab'">Nouvel Onglet</xsl:when>
    		<xsl:when test="$targetAction= 'New Column'">Nouvelle Colonne</xsl:when>
    		<xsl:when test="$targetAction= 'New Channel'">Nouvelle Canal</xsl:when>    		
    		<xsl:when test="$targetAction= 'New Fragment'">Nouveau Fragment</xsl:when> 
    		<xsl:otherwise>TOTO</xsl:otherwise>   		    		
    	</xsl:choose>
    </xsl:template>
</xsl:stylesheet>



  • [Fwd: Re: [esup-utilisateurs] Onglet plus actif ?], Yves Daoulatian, 05/09/2008

Archives gérées par MHonArc 2.6.16.

§