en:user:berry_baskets
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
en:user:berry_baskets [2018/07/29 23:38] – created kjdon | en:user:berry_baskets [2018/07/30 00:12] – [Metadata] kjdon | ||
---|---|---|---|
Line 5: | Line 5: | ||
===== Activating Berry Baskets ===== | ===== Activating Berry Baskets ===== | ||
- | The library administrator can enable the Berry Basket functionality by including the BerryBasket | + | The library administrator can enable the Berry Basket functionality by including the BerryBasket |
The user can turn on this feature in the Preferences page. Once it is activated, little berries will appear in browsing lists and search results. These berries can be dragged into the basket that appears on the right hand side of the page. | The user can turn on this feature in the Preferences page. Once it is activated, little berries will appear in browsing lists and search results. These berries can be dragged into the basket that appears on the right hand side of the page. | ||
+ | ===== Customizing Berry Baskets ===== | ||
+ | |||
+ | ==== Metadata ==== | ||
+ | |||
+ | If you want to add an extra metadata field to the display, then you need to specify that metadata in web/ | ||
+ | |||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 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/ | ||
+ | ==== Document Link ==== | ||
+ | |||
+ | By default the link in the basket will be to the Greenstone HTML version of the document. You can change this to link to the source document, eg the PDF version. | ||
+ | |||
+ | Edit web/ | ||
+ | |||
+ | There are three variables at the top of this file: | ||
+ | < | ||
+ | var default_link_type = " | ||
+ | var source_link_collections = new Array(); | ||
+ | var document_link_collections = new Array(); | ||
+ | </ | ||
+ | |||
+ | The default_link_type specifies whether links are to the Greenstone versions (" | ||
+ | |||
+ | For example, if most collections use document, but pdfcoll and exampapers use source, then set the variables like this: | ||
+ | |||
+ | < | ||
+ | var default_link_type = " | ||
+ | var source_link_collections = [" | ||
+ | </ | ||
+ | |||
+ | Similarly, use document_link_collections to set the excpetions if you have made the default " | ||
en/user/berry_baskets.txt · Last modified: 2023/07/24 01:44 by kjdon