Open PDF viewer in popup window (2)


This page should only be used if the assisted migration script asks you to pass the manual migration code.20250613.INTRANETCARDS.FlipbookPopup

Starting with version 2.2.0 of the Intranet Design charter, it is possible to choose to open the PDF viewer (flipbook) from the kiosk in a popup instead of opening a new tab.

For this purpose, a view parameter has been added to the search-kiosquexml view 

For this parameter to work, you need to call the kiosk-popup and kiosk-popup-js templates.

<xsl:template name="hits">
        <div data-ametys-search-role="hits" class="kioske" id="kiosk-{$uniqueId}">
            <xsl:for-each select="/search/hits/hit">
                <xsl:call-template name="hit"/>
            </xsl:for-each>
        </div>
        
        <xsl:call-template name="link-mobile"/> 
        
        <xsl:if test="$openFlipbookInPopup = 'true'">
            <xsl:call-template name="kiosk-popup"/>
        </xsl:if>
    </xsl:template>
<xsl:template name="common-service-head-js">
      <!-- [...] -->
        
        <xsl:if test="$openFlipbookInPopup = 'true'">
            <xsl:call-template name="kiosk-popup-js"/>
        </xsl:if>
    </xsl:template>

 

Back to top