|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.dspace.app.webui.jsptag.ItemTag
public class ItemTag
JSP tag for displaying an item.
The fields that are displayed can be configured in dspace.cfg
using the webui.itemdisplay.(style) property. The form is
<schema prefix>.<element>[.<qualifier>|.*][(date)|(link)], ...
For example:
dc.title = Dublin Core element 'title' (unqualified) dc.title.alternative = DC element 'title', qualifier 'alternative' dc.title.* = All fields with Dublin Core element 'title' (any or no qualifier) dc.identifier.uri(link) = DC identifier.uri, render as a link dc.date.issued(date) = DC date.issued, render as a date
If an item has no value for a particular field, it won't be displayed. The name of the field for display will be drawn from the current UI dictionary, using the key:
"metadata.<style.>.<field>" e.g. "metadata.thesis.dc.title" "metadata.thesis.dc.contributor.*" "metadata.thesis.dc.date.issued" if this key is not found will be used the more general one "metadata.<field>" e.g. "metadata.dc.title" "metadata.dc.contributor.*" "metadata.dc.date.issued"
You need to specify which strategy use for select the style for an item.
plugin.single.org.dspace.app.webui.util.StyleSelection = \
org.dspace.app.webui.util.CollectionStyleSelection
#org.dspace.app.webui.util.MetadataStyleSelection
With the Collection strategy you can also specify which collections use which views.
webui.itemdisplay.<style>.collections = <collection handle>, ...
FIXME: This should be more database-driven
webui.itemdisplay.thesis.collections = 123456789/24, 123456789/35
With the Metadata strategy you MUST specify which metadata use as name of the style.
webui.itemdisplay.metadata-style = schema.element[.qualifier|.*] e.g. "dc.type"
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
|---|
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
|---|
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
|---|---|
ItemTag()
|
|
| Method Summary | |
|---|---|
int |
doStartTag()
|
Collection[] |
getCollections()
Get the collections this item is in |
Item |
getItem()
Get the item this tag should display |
String |
getStyle()
Get the style this tag should display |
void |
release()
|
void |
setCollections(Collection[] collectionsIn)
Set the collections this item is in |
void |
setItem(Item itemIn)
Set the item this tag should display |
void |
setStyle(String styleIn)
Set the style this tag should display |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ItemTag()
| Method Detail |
|---|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic Item getItem()
public void setItem(Item itemIn)
itemIn - the item to displaypublic Collection[] getCollections()
public void setCollections(Collection[] collectionsIn)
collectionsIn - the collectionspublic String getStyle()
public void setStyle(String styleIn)
styleIn - the Style to displaypublic void release()
release in interface javax.servlet.jsp.tagext.Tagrelease in class javax.servlet.jsp.tagext.TagSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||