Changeset 34149

Show
Ignore:
Timestamp:
11.06.2020 13:16:20 (4 weeks ago)
Author:
ak19
Message:

Adding note to stress the importance of ensuring the div containing the apply-templates on /page in any custom main.xsl is given the id=gs_content. Otherwise a lot of GS3 could break, the way Remote GS Server's download-collection-configurations broke (the call to authentication-ping by ServletRealmCheck? requesting excerptid=gs_content broke, because no user groups were returned for a user because there was no gs_content in the custom interface file main.xsl for Opotiki.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/transform/layouts/main.xsl

    r33637 r34149  
    6868                        <xsl:call-template name="formatmanagerpre"/> 
    6969                    </xsl:if> 
    70      
     70 
     71                    <!-- IMPORTANT: when copying this file to base your own custom interface's main.xsl on this one, 
     72                         or when writing a main.xsl for your custom interface from scratch, 
     73                         it is absolutely crucial to ensure the div element containing the xsl:apply-templates for /page 
     74                         is given the id="gs_content". 
     75                         Without this, many parts of GS3 will fail as they make use of gs_content whenever they make 
     76                         calls to the GS server that include 'excerptid=gs_content' in the URL params. 
     77                         For instance, connecting a client-GLI to a remote GS3 server and attempting to view 
     78                         collections will fail as the user groups for a user will return null without this. 
     79                         ADDITIONAL NOTE: it has not been investigated whether adding addition html elements inside the 
     80                         div with id="gs_content" is wise. I've not checked whether such elements will be parsed out 
     81                         properly and just the expected portions retrieved successfully by callers that requested 
     82                         excerptid=gs_content. 
     83                    --> 
    7184                    <div id="gs_content" class="ui-widget-content"> 
    7285                        <!--