Changeset 33274

Show
Ignore:
Timestamp:
02.07.2019 13:19:09 (2 weeks ago)
Author:
davidb
Message:

Shift to stronger use of Favourites over Berries terminology

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/heritage-nz/collect/pdf-reports/transform/pages/about.xsl

    r33244 r33274  
    7878    </div> 
    7979 
    80     <div id="gotoBerries" style="display: none; padding-top: 10px;"> 
    81       <a href="{$library_name}?a=g&amp;sa=berry&amp;c=&amp;s=DisplayList&amp;rt=r&amp;p.c={$collName}"> 
    82     <img src="interfaces/{$interface_name}/images/berry.png" alt="view berry basket" width="15" height="15" border="0" /> 
     80    <div id="gotoFavourites" style="display: none; padding-top: 10px;"> 
     81      <a href="{$library_name}?a=g&amp;sa=berry&amp;c=&amp;s=DisplayList&amp;rt=r&amp;p.c="> 
     82    <img src="interfaces/{$interface_name}/images/{$selected_favourite_icon}" title="view favourites" width="15" height="15" border="0" /> 
    8383      </a> 
    84       You have also added some items to the Berry Basket, which you can access 
    85       <a href="{$library_name}?a=g&amp;sa=berry&amp;c=&amp;s=DisplayList&amp;rt=r&amp;p.c={$collName}">here</a>. 
     84      You have also have <span id="favouritesCount">0</span> item(s) marked as favourites, which you can access 
     85      <a href="{$library_name}?a=g&amp;sa=berry&amp;c=&amp;s=DisplayList&amp;rt=r&amp;p.c=">here</a>. 
    8686    </div> 
    8787    <script> 
    8888      <xsl:text disable-output-escaping="yes"> 
    8989    $(document).ready( 
    90       countBerries(function(berry_count) {  
    91         if (berry_count>0) {  
    92           $('#gotoBerries').show(); 
     90      countFavourites(function(favourites_count) {  
     91        if (favourites_count>0) {  
     92          $('#favouritesCount').html(favourites_count); 
     93          $('#gotoFavourites').show(); 
    9394        }  
    9495      })