en:user:berry_baskets
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
en:user:berry_baskets [2018/07/30 02:31] – [Setting up the Email Results Functionality] kjdon | en:user:berry_baskets [2019/10/02 01:39] – [Metadata] kjdon | ||
---|---|---|---|
Line 24: | Line 24: | ||
</ | </ | ||
- | 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/ | + | Then restart Tomcat. |
+ | |||
+ | By default, these specified metadata elements | ||
+ | |||
+ | If you want to customise the display, take a look at the javascript code. web/ | ||
+ | |||
+ | === 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). | ||
+ | |||
+ | If we have a collection that doesn' | ||
+ | |||
+ | 1. Edit web/ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | 2. Edit web/ | ||
+ | |||
+ | Look for generateDocDisplay and edit it: | ||
+ | < | ||
+ | Replace: | ||
+ | a.href=generateURL(doc); | ||
+ | a.appendChild(document.createTextNode(doc[' | ||
+ | with either: | ||
+ | 1. Use this if all documents have dc.Title instead of Title | ||
+ | |||
+ | a.href=generateURL(doc); | ||
+ | a.appendChild(document.createTextNode(doc[' | ||
+ | |||
+ | or: | ||
+ | 2. use this if some documents have Title and some have dc.Title | ||
+ | |||
+ | a.href=generateURL(doc); | ||
+ | if (doc[' | ||
+ | | ||
+ | } else if (doc[' | ||
+ | | ||
+ | } | ||
+ | </ | ||
+ | |||
==== Document Link ==== | ==== Document Link ==== | ||
en/user/berry_baskets.txt · Last modified: 2023/07/24 01:44 by kjdon