User Tools

Site Tools


en:user:berry_baskets

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
en:user:berry_baskets [2018/07/29 23:45] kjdonen:user:berry_baskets [2018/07/30 00:12] – [Metadata] kjdon
Line 13: Line 13:
 ==== Metadata ==== ==== Metadata ====
  
 +If you want to add an extra metadata field to the display, then you need to specify that metadata in web/sites/localsite/siteConfig.xml. Look for the BerryBasket serviceRack and add a metadataList containing the desired elements. For example:
 +
 +<code>
 +<serviceRack name="BerryBaskets">
 +  <metadataList>
 +    <metadata name="dc.Creator"/>
 +    <metadata name="dc.Subject"/>
 +  </metadataList>
 +</serviceRack>
 +</code>
 +
 +By default, these will just get added to the item's display. 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.
 ==== Document Link ==== ==== Document Link ====
  
en/user/berry_baskets.txt · Last modified: 2023/07/24 01:44 by kjdon