Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:user:berry_baskets [2019/10/02 15:17]
kjdon
en:user:berry_baskets [2020/06/22 13:44]
kjdon [Activating Favourites/Berry Baskets]
Line 24: Line 24:
 While the functionality is active, it is not turned on for the user by default. (It will be for 3.10 and later). The user can go to Preferences,​ and turn it on/​off. ​ While the functionality is active, it is not turned on for the user by default. (It will be for 3.10 and later). The user can go to Preferences,​ and turn it on/​off. ​
  
-To make it turned on by default, set a paramDefault in web/​sites/​localsite/​siteConfig.xml.+To make it turned on/off by default, set a paramDefault in web/​sites/​localsite/​siteConfig.xml.
 <​code>​ <​code>​
 <​format>​ <​format>​
-  <​paramDefault name="​favouritebasket"​ value="​on"/> ​ (or '​berrybasket'​)+  <​paramDefault name="​favouritebasket"​ value="​on"/> ​ (or '​off', ​or '​berrybasket'​)
 </​format>​ </​format>​
 </​code>​ </​code>​
Line 52: Line 52:
 If you want to customise the display, take a look at the javascript code. web/​interfaces/​default/​js/​berrybasket/​berrybasket.js,​ function showBasket() displays the small version on other pages, while web/​interfaces/​default/​js/​berrybasket/​berrycheckout.js functions showFullView(),​ showTextView() and showEmail() display the different basket views. In particular, populateUrlsAndMetadata() displays the links plus metadata entries for Text and Email views, and generateDocDisplay() displays the entries for the text view. If you want to customise the display, take a look at the javascript code. web/​interfaces/​default/​js/​berrybasket/​berrybasket.js,​ function showBasket() displays the small version on other pages, while web/​interfaces/​default/​js/​berrybasket/​berrycheckout.js functions showFullView(),​ showTextView() and showEmail() display the different basket views. In particular, populateUrlsAndMetadata() displays the links plus metadata entries for Text and Email views, and generateDocDisplay() displays the entries for the text view.
  
-=== Using dc.Title instead of Title in Berry Basket display ===+=== Example: ​Using dc.Title instead of Title in Berry Basket display ===
  
 By default, the berry basket entries display Title metadata. If the linked item is a section, it will also display the book Title (root_Title). ​ By default, the berry basket entries display Title metadata. If the linked item is a section, it will also display the book Title (root_Title). ​