Changeset 34144

Show
Ignore:
Timestamp:
10.06.2020 14:57:31 (3 weeks ago)
Author:
ak19
Message:

Adding in the Depositor link (visible only to logged in users) to the Opotiki interface.

Files:
1 modified

Legend:

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

    r34143 r34144  
    2828        <div class="wrapper col0"> 
    2929            <div id="topline"> 
    30                 <ul> 
    31                     <xsl:call-template name="loginLinks"/> 
     30              <ul> 
     31                        <xsl:call-template name="loginLinks"/>                   
    3232                    <li><a href="{$library_name}/collection/{$collNameChecked}/page/pref">Preferences</a></li> 
    3333                    <li><a href="{$library_name}/collection/{$collNameChecked}/page/help">Help</a></li> 
     
    249249 
    250250    <xsl:choose> 
    251         <xsl:when test="$username"> 
     251      <xsl:when test="$username"> 
     252        <!-- Depositor link: only for logged-in users. 
     253         CSS class=login to make Depositor link blue to indicate it's only available when logged in. 
     254         Don't put this depositorTitleAndLink inside the test for whether user 'admin' is 
     255         in the current list of groups, as we want the depositor link to be visible for any 
     256         logged in user. The collection they want to deposit a doc into will determine whether 
     257         that user has the right to modify that collection. 
     258        --> 
     259            <li class="login"><gslib:depositorTitleAndLink/></li> 
    252260            <xsl:if test="contains($groups,'admin')"> 
    253261                <li class="login"><a href="{$library_name}/admin/AddUser">Add user</a></li>