Changeset 36047 for main


Ignore:
Timestamp:
2022-02-03T15:00:41+13:00 (2 years ago)
Author:
cstephen
Message:

Properly indent code, hopefully fix missing end tag

Location:
main/trunk/model-interfaces-dev/wmtb/transform/layouts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-interfaces-dev/wmtb/transform/layouts/header.xsl

    r36042 r36047  
    99    exclude-result-prefixes="java util gsf">
    1010
    11   <xsl:template name="wmtb-footer">
    12     <div id="wmtb-footer" class="paragraph"><em>Developed in partnership between <a href="http://www.whakatohea.co.nz/">Whakatōhea Māori Trust Board</a> and the <a href="https://www.waikato.ac.nz/">University of Waikato</a></em>
    13     <br />
    14     <em>Powered by <a href="http://www.greenstone.org">Greenstone3</a></em></div>
    15   </xsl:template>
     11    <xsl:template name="wmtb-footer">
     12        <div id="wmtb-footer" class="paragraph">
     13            <em>
     14                Developed in partnership between <a href="http://www.whakatohea.co.nz/">Whakatōhea Māori Trust Board</a>
     15                and the <a href="https://www.waikato.ac.nz/">University of Waikato</a>
     16            </em>
     17           
     18            <br />
     19            <em>Powered by <a href="http://www.greenstone.org">Greenstone3</a></em>
     20        </div>
     21    </xsl:template>
    1622 
    1723    <!-- Creates a header for the html page -->
  • main/trunk/model-interfaces-dev/wmtb/transform/layouts/main.xsl

    r36045 r36047  
    3030      <div id="spacer-for-nav">&#160;</div>
    3131      <div class="wrapper">
    32   <div class="shifted-frame">
     32        <div class="shifted-frame">
    3333 
    34   <!-- Whakatohea.co.nz's navbar - no longer in use now that the dl site is
    35        embedded in iframe on whakatohea.co.nz site which provides the navbar -->
    36   <!--<xsl:call-template name="whakatohea-navbar"/>-->
     34          <!-- Whakatohea.co.nz's navbar - no longer in use now that the dl site is
     35              embedded in iframe on whakatohea.co.nz site which provides the navbar -->
     36          <!--<xsl:call-template name="whakatohea-navbar"/>-->
    3737 
    38   <div class="site-canvas">
    39 
    40     <div class="wrapper-old">
    41       <div id="header-old">
    42        
    43         <div class="banner-wrap">
    44     <div class="wsite-elements wsite-not-footer wsite-header-elements">
    45       <div class="wsite-section-wrap">
    46           <!--<div  class="wsite-section wsite-header-section wsite-section-bg-image" style="height: auto;background-image: url(&quot;interfaces/{$interface_name}/images/digital-library.jpg&quot;) ;background-repeat: no-repeat ;background-position: 50.00% 21.94% ;background-size: 100% ;background-color: transparent ;background-size: cover;" >-->
    47         <div style="background-image: url(&quot;interfaces/{$interface_name}/images/digital-library.jpg&quot;);" >
    48           <xsl:choose>
    49       <xsl:when test="/page/pageResponse/collection or /page/pageResponse/pathList/group">
    50         <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image crop-bg</xsl:attribute>
    51       </xsl:when>
    52       <xsl:otherwise>
    53         <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image full-bg</xsl:attribute>
    54       </xsl:otherwise>
    55           </xsl:choose>
    56          
    57           <div class="wsite-section-content">
    58      
    59       <div class="container">
    60         <div class="banner">
    61           <div class="wsite-section-elements">
    62             <h2 class="wsite-content-title" style="text-align:center;"><font size="6"><a href="{$library_name}"><xsl:call-template name="siteName"/></a></font></h2>
    63 
    64             <!-- Why does this feel like it's still inside the banner-wrap? -->
    65             <xsl:choose>
    66         <xsl:when test="page/pageResponse/collection">
    67           <div id="coll-name-link">
    68             <p>&#160;
    69             <a href="{$library_name}/collection/{$collNameChecked}/page/about">
    70               <xsl:value-of select="page/pageResponse/collection/displayItemList/displayItem[@name='name']"/>
    71             </a>
    72             </p>
    73             <br class="clear"/>
    74           </div>
    75         </xsl:when>
    76 
    77         <xsl:when test="/page/pageRequest/paramList/param[@name='group']/@value">
    78           <div id="coll-name-link">
    79             <p>
    80               <xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>
    81           </p>
    82           <br class="clear"/>
    83           </div>
    84         </xsl:when>
    85             </xsl:choose>                 
    86           </div>
    87         </div>
    88       </div>
    89      
    90           </div>
    91           <!--<div class=""></div>-->
    92         </div>
    93       </div>
    94      
    95     </div>
    96 
    97        
    98     <div class="container wrapper-old col2" id="browse-search-bars">
    99       <div id="topbar">
    100         <xsl:choose>
    101           <xsl:when test="page/pageRequest/@subaction='home'">
    102       <div id="cross-coll-div">
    103         <xsl:call-template name="crossCollSearch"/>
    104       </div>
    105           </xsl:when>
    106           <xsl:when test="page/pageRequest/paramList/param/@name='c' and /page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
    107       <xsl:call-template name="quick-search-area"/>
    108           </xsl:when>
    109           <xsl:otherwise/>
    110         </xsl:choose>
    111         <!--**********************************************************************-->
    112       </div>
    113     </div>
    114 
    115    
    116         </div><!-- end banner-wrap -->
    117       </div>
    118     </div>
    119 
    120     <!--<xsl:call-template name="login-prefs-help-links"/>-->
    121     <!--<hr class="spacer" />-->
    122     <div class="outer">
    123       <xsl:if test="page/pageResponse/collection">
    124         <xsl:attribute name="class">outer collectionDisplay</xsl:attribute>
    125         <xsl:call-template name="sideNavBar"/>
    126       </xsl:if>
    127      
    128       <div id="gs_content" class="container">
    129         <xsl:apply-templates select="/page"/>               
    130       </div>
    131 
    132       <xsl:choose>
    133         <xsl:when test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']) or /page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']/@value='true'">
    134           <xsl:variable name="documentCount" select="count(/page/pageResponse/document)" />
    135           <xsl:value-of select="$documentCount" />
    136 
    137           <xsl:choose>
    138             <xsl:when test="$documentCount > 0">
    139               <!-- We need this for-each statement to select the right node -->
    140               <xsl:for-each select="/page/pageResponse/document">
    141                 <xsl:call-template name="rightSidebarTOCAlt"/>
    142               </xsl:for-each>
    143             </xsl:when>
    144 
    145             <!-- No sidebars were created, add spacer -->
    146             <xsl:otherwise>
    147               <xsl:call-template name="no-collapse-div" />
    148             </xsl:otherwise>
    149           </xsl:choose>
    150         </xsl:when>
    151 
    152         <!-- The sidbar is disabled, add spacer -->
    153         <xsl:otherwise>
    154           <xsl:call-template name="no-collapse-div" />
    155         </xsl:otherwise>
    156       </xsl:choose>
    157 
    158       <!-- <br class="clear" /> -->
    159 
    160     </div><!-- end class main-wrap-->
    161 
    162     <xsl:call-template name="wmtb-footer"/>
    163 
    164   </div> <!-- end site-canvas -->
    165       </div> <!-- end shifted-frame -->
     38          <div class="site-canvas">
     39            <div class="wrapper-old">
     40              <div id="header-old">
     41                <div class="banner-wrap">
     42                  <div class="wsite-elements wsite-not-footer wsite-header-elements">
     43                    <div class="wsite-section-wrap">
     44                      <div style="background-image: url(&quot;interfaces/{$interface_name}/images/digital-library.jpg&quot;);">
     45                        <xsl:choose>
     46                          <xsl:when test="/page/pageResponse/collection or /page/pageResponse/pathList/group">
     47                            <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image crop-bg</xsl:attribute>
     48                          </xsl:when>
     49                          <xsl:otherwise>
     50                            <xsl:attribute name="class">wsite-section wsite-header-section wsite-section-bg-image full-bg</xsl:attribute>
     51                          </xsl:otherwise>
     52                        </xsl:choose>
     53                         
     54                        <div class="wsite-section-content">
     55                          <div class="container">
     56                            <div class="banner">
     57                              <div class="wsite-section-elements">
     58                                <h2 class="wsite-content-title" style="text-align:center;"><font size="6"><a href="{$library_name}"><xsl:call-template name="siteName"/></a></font></h2>
     59
     60                                <!-- Why does this feel like it's still inside the banner-wrap? -->
     61                                <xsl:choose>
     62                                  <xsl:when test="page/pageResponse/collection">
     63                                    <div id="coll-name-link">
     64                                      <p>&#160;
     65                                        <a href="{$library_name}/collection/{$collNameChecked}/page/about">
     66                                          <xsl:value-of select="page/pageResponse/collection/displayItemList/displayItem[@name='name']"/>
     67                                        </a>
     68                                      </p>
     69                                      <br class="clear"/>
     70                                    </div>
     71                                  </xsl:when>
     72
     73                                  <xsl:when test="/page/pageRequest/paramList/param[@name='group']/@value">
     74                                    <div id="coll-name-link">
     75                                      <p>
     76                                        <xsl:value-of select="/page/pageRequest/paramList/param[@name='group']/@value"/>
     77                                      </p>
     78                                      <br class="clear"/>
     79                                    </div>
     80                                  </xsl:when>
     81                                </xsl:choose>
     82                              </div> <!-- end wsite-section-elements -->
     83                            </div> <!-- end banner -->
     84                          </div> <!-- end container -->
     85                        </div> <!-- end wsite-section-content -->
     86                      </div> <!-- end header container -->
     87                    </div> <!-- end wsite-section-wrap -->
     88                  </div> <!-- end header section -->
     89
     90                  <div class="container wrapper-old col2" id="browse-search-bars">
     91                    <div id="topbar">
     92                      <xsl:if test="page/pageRequest/@subaction='home'">
     93                        <div id="cross-coll-div">
     94                          <xsl:call-template name="crossCollSearch"/>
     95                        </div>
     96                      </xsl:if>
     97                      <xsl:if test="page/pageRequest/paramList/param/@name='c' and /page/pageResponse/collection[@name=$collNameChecked]/serviceList/service[@name='TextQuery']">
     98                        <xsl:call-template name="quick-search-area"/>
     99                      </xsl:if>
     100                    </div>
     101                  </div>
     102
     103                </div> <!-- end banner-wrap -->
     104              </div> <!-- end header-old -->
     105            </div> <!-- end wrapper-old -->
     106
     107            <!--<xsl:call-template name="login-prefs-help-links"/>-->
     108            <!--<hr class="spacer" />-->
     109            <div class="outer">
     110              <xsl:if test="page/pageResponse/collection">
     111                <xsl:attribute name="class">outer collectionDisplay</xsl:attribute>
     112                <xsl:call-template name="sideNavBar"/>
     113              </xsl:if>
     114             
     115              <div id="gs_content" class="container">
     116                <xsl:apply-templates select="/page"/>               
     117              </div>
     118
     119              <xsl:choose>
     120                <xsl:when test="not(/page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']) or /page/pageResponse/format[@type='display']/gsf:option[@name='sideBar']/@value='true'">
     121                  <xsl:variable name="documentCount" select="count(/page/pageResponse/document)" />
     122
     123                  <xsl:choose>
     124                    <xsl:when test="$documentCount > 0">
     125                      <!-- We need this for-each statement to select the right node -->
     126                      <xsl:for-each select="/page/pageResponse/document">
     127                        <xsl:call-template name="rightSidebarTOCAlt"/>
     128                      </xsl:for-each>
     129                    </xsl:when>
     130
     131                    <!-- No sidebars were created, add spacer -->
     132                    <xsl:otherwise>
     133                      <xsl:call-template name="no-collapse-div" />
     134                    </xsl:otherwise>
     135                  </xsl:choose>
     136                </xsl:when>
     137
     138                <!-- The sidbar is disabled, add spacer -->
     139                <xsl:otherwise>
     140                  <xsl:call-template name="no-collapse-div" />
     141                </xsl:otherwise>
     142              </xsl:choose>
     143
     144              <!-- <br class="clear" /> -->
     145
     146            </div> <!-- end outer -->
     147
     148            <xsl:call-template name="wmtb-footer"/>
     149
     150          </div> <!-- end site-canvas -->
     151        </div> <!-- end shifted-frame -->
    166152      </div> <!-- end wrapper-->
    167153    </body>
     
    171157<xsl:template name="no-collapse-div">
    172158  <div>
    173     <xsl:text> </xsl:text>
     159    <xsl:text>a</xsl:text>
    174160  </div>
    175161</xsl:template>
Note: See TracChangeset for help on using the changeset viewer.