| java.lang.Object javax.servlet.jsp.tagext.TagSupport org.dspace.app.webui.jsptag.ControlledVocabularyTag
ControlledVocabularyTag | public class ControlledVocabularyTag extends TagSupport (Code) | | A Tag to load and display controlled vocabularies
author: Miguel Ferreira version: $Revision: 1414 $ |
doEndTag | public int doEndTag()(Code) | | End processing tag
|
filterVocabulary | public Document filterVocabulary(Document vocabulary, String vocabularyPrunningXSLT, String filter)(Code) | | Applies a filter to the provided vocabulary, i.e. it prunes the tree by
removing all the branches that do not contain the words in the filter.
Parameters: vocabulary - The vocabulary to be trimmed Parameters: vocabularyPrunningXSLT - The filename of the stylesheet that trims the vocabulary Parameters: filter - The filter to be applied The trimmed vocabulary. |
getFilter | public String getFilter()(Code) | | Gets the filter provided as parameter to the tag
the filter |
getVocabulary | public String getVocabulary()(Code) | | Gets the name of the vocabulary to be displayed
the name of the vocabulary |
isAllowMultipleSelection | public boolean isAllowMultipleSelection()(Code) | | Returns the value of the multiple selection parameter
true if the multiple selection was selected |
renderVocabularyAsHTML | public String renderVocabularyAsHTML(Document vocabulary, String controlledVocabulary2HtmlXSLT, boolean allowMultipleSelection, String contextPath)(Code) | | Renders a taxonomy as HTML by applying a stylesheet.
Parameters: vocabulary - The XML document representing a taxonomy Parameters: controlledVocabulary2HtmlXSLT - The filename of the stylesheet that converts the taxonomy toHTML Parameters: allowMultipleSelection - include checkboxes next to the taxonomy terms Parameters: contextPath - The context path the provided taxonomy as HTML. |
setAllowMultipleSelection | public void setAllowMultipleSelection(boolean allowMultipleSelection)(Code) | | Defines if we want to be able to select multiple terms of the taxonomy
Parameters: allowMultipleSelection - true if we want to be able to select more than on term |
setFilter | public void setFilter(String filter)(Code) | | Sets the filter
Parameters: filter - the filter |
setVocabulary | public void setVocabulary(String vocabulary)(Code) | | Sets the name of the vocabulary to be displayed. If no name is provided,
all vocabularies loaded will be rendered to the output
Parameters: vocabulary - the name of the vocabulary to be selected |
|
|