Package org.dspace.browse
Class CrossLinks
java.lang.Object
org.dspace.browse.CrossLinks
Class to represent the configuration of the cross-linking between browse
pages (for example, between the author name in one full listing to the
author's list of publications).
- Author:
- Richard Jones
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new object which will obtain the configuration for itself. -
Method Summary
Modifier and TypeMethodDescriptionfindLinkType(String metadata) Find and return the browse name for a given metadata field.getLinks()Get full map of field->indexname link configurationsgetLinkType(String metadata) Get the type of link that the bit of metadata has.booleanhasBrowseName(String browseIndexName) Is there a link for the given browse name (eg 'author')booleanIs there a link for the given canonical form of metadata (i.e. schema.element.qualifier)?
-
Constructor Details
-
CrossLinks
Construct a new object which will obtain the configuration for itself.- Throws:
BrowseException- if browse error
-
-
Method Details
-
hasLink
Is there a link for the given canonical form of metadata (i.e. schema.element.qualifier)?- Parameters:
metadata- the metadata to check for a link on- Returns:
- true/false
-
hasBrowseName
Is there a link for the given browse name (eg 'author')- Parameters:
browseIndexName-- Returns:
- true/false
-
getLinkType
Get the type of link that the bit of metadata has.- Parameters:
metadata- the metadata to get the link type for- Returns:
- type
-
getLinks
Get full map of field->indexname link configurations- Returns:
-
findLinkType
Find and return the browse name for a given metadata field. If the link key contains a wildcard eg dc.subject.*, it should match dc.subject.other, etc.- Parameters:
metadata-- Returns:
-