Class BrowseElement
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionde.intranda.metadata.multilanguage.IMetadataValue
createMultiLanguageLabel
(StructElement structElement) createMultiLanguageLabel.determinePageType.Returns the lowestStructElementStub
in the list.Returns the ContextObject value for a COinS element using the docstruct hierarchy for this search hit..Getter for the fielddataRepository
.Getter for the fielddocStructType
.Getter for the fielddocType
.getFirstMetadataValue
(String field) Getter for the fieldfoundMetadataList
.Getter for the fieldfulltext
.Returns a relevant full-text fragment for displaying in the search hit box, stripped of any contained JavaScript.getIddoc()
Getter for the fieldiddoc
.int
Getter for the fieldimageNo
.getLabel()
Getter for the fieldlabel
.Getter for the fieldlabel
.de.intranda.metadata.multilanguage.IMetadataValue
getLabelAsMetadataValue.Getter for the fieldlabelShort
.getLogId()
Getter for the fieldlogId
.Getter for the fieldmetadataGroupType
.Getter for the fieldmetadataList
.getMetadataList
(String metadataLabel) Getter for the fieldmetadataList
.getMetadataListForCurrentLocale.getMetadataListForLocale
(String field, Locale locale) getMetadataListForLocale
(String field, Locale locale, String metadataListType) getMetadataListForLocale
(Locale locale) getMetadataListForLocale.getMetadataListForLocale
(Locale locale, String metadataListType) getMetadataValues
(String field) long
Getter for the fieldnumVolumes
.Getter for the fieldoriginalFieldName
.getPi()
Getter for the fieldpi
.Getter for the fieldrecordLanguages
.Getter for the fieldsidebarNextUrl
.Getter for the fieldsidebarPrevUrl
.Getter for the fieldstructElements
.Getter for the fieldthumbnailUrl
.getThumbnailUrl
(String width, String height) Called from HTML.getUrl()
Returns the search hint URL (without the application root!).Getter for the fieldvolumeNo
.boolean
isAnchor()
isAnchor.boolean
boolean
boolean
isGroup()
boolean
isHasImages.boolean
isHasMedia.boolean
boolean
boolean
isWork()
void
setAnchor
(boolean anchor) Setter for the fieldanchor
.void
setCmsPage
(boolean cmsPage) void
setFulltext
(String fulltext) Setter for the fieldfulltext
.void
setHasImages
(boolean hasImages) Setter for the fieldhasImages
.void
setHasMedia
(boolean hasMedia) Setter for the fieldhasMedia
.void
setHasTeiFiles
(boolean hasTeiFiles) void
setImageNo
(int imageNo) void
setLabelShort
(de.intranda.metadata.multilanguage.IMetadataValue labelShort) Setter for the fieldlabelShort
.void
void
Setter for the fieldpi
.void
setShowThumbnail
(boolean showThumbnail) void
setThumbnailUrl
(String thumbnailUrl) void
setVolumeNo
(String volumeNo) Setter for the fieldvolumeNo
.void
setWork
(boolean work)
-
Constructor Details
-
BrowseElement
public BrowseElement(String pi, int imageNo, String label, String fulltext, Locale locale, String dataRepository, String url) Constructor for unit tests and special instances.- Parameters:
pi
-imageNo
-label
-fulltext
-locale
-dataRepository
-url
- Injected URL, overrides URL generation
-
-
Method Details
-
createMultiLanguageLabel
public de.intranda.metadata.multilanguage.IMetadataValue createMultiLanguageLabel(StructElement structElement) createMultiLanguageLabel.
- Parameters:
structElement
- aStructElement
object.- Returns:
- a
IMetadataValue
object.
-
getLabel
Getter for the field
label
.- Returns:
- the label
-
getLabel
Getter for the field
label
. -
getLabelAsMetadataValue
public de.intranda.metadata.multilanguage.IMetadataValue getLabelAsMetadataValue()getLabelAsMetadataValue.
- Returns:
- a
IMetadataValue
object.
-
getLabelShort
Getter for the field
labelShort
.- Returns:
- the labelShort
-
setLabelShort
public void setLabelShort(de.intranda.metadata.multilanguage.IMetadataValue labelShort) Setter for the field
labelShort
.- Parameters:
labelShort
- the labelShort to set
-
getDocStructType
Getter for the field
docStructType
.- Returns:
- the type
-
getIddoc
Getter for the field
iddoc
.- Returns:
- the iddoc
-
getThumbnailUrl
Getter for the field
thumbnailUrl
.- Returns:
- the thumbnailUrl
-
getThumbnailUrl
Called from HTML. -
getImageNo
public int getImageNo()Getter for the field
imageNo
.- Returns:
- a int.
-
setImageNo
public void setImageNo(int imageNo) - Parameters:
imageNo
- the imageNo to set
-
getStructElements
Getter for the field
structElements
.- Returns:
- the structElements
-
getBottomStructElement
Returns the lowestStructElementStub
in the list.- Returns:
- last StructElementStub in the list
-
getEvents
- Returns:
- the events
-
setFulltext
Setter for the field
fulltext
.- Parameters:
fulltext
- the fulltext to set
-
getFulltext
Getter for the field
fulltext
.- Returns:
- the fulltext
-
getFulltextForHtml
Returns a relevant full-text fragment for displaying in the search hit box, stripped of any contained JavaScript.- Returns:
- Full-text fragment sans any line breaks or JavaScript
-
getVolumeNo
Getter for the field
volumeNo
.- Returns:
- the volumeNo
-
setVolumeNo
Setter for the field
volumeNo
.- Parameters:
volumeNo
- the volumeNo to set
-
isGroup
public boolean isGroup()- Returns:
- true if doctype is GROUP; false otherwise
-
isArchive
public boolean isArchive()- Returns:
- true if doctype is ARCHIVE; false otherwise
-
isCmsPage
public boolean isCmsPage()- Returns:
- the cmsPage
-
setCmsPage
public void setCmsPage(boolean cmsPage) - Parameters:
cmsPage
- the cmsPage to set
-
isWork
public boolean isWork()- Returns:
- the work
-
setWork
public void setWork(boolean work) - Parameters:
work
- the work to set
-
isAnchor
public boolean isAnchor()isAnchor.
- Returns:
- the anchor
-
setAnchor
public void setAnchor(boolean anchor) Setter for the field
anchor
.- Parameters:
anchor
- the anchor to set
-
isHasImages
public boolean isHasImages()isHasImages.
- Returns:
- the hasImages
-
setHasImages
public void setHasImages(boolean hasImages) Setter for the field
hasImages
.- Parameters:
hasImages
- the hasImages to set
-
isHasTeiFiles
public boolean isHasTeiFiles()- Returns:
- the hasTeiFiles
-
setHasTeiFiles
public void setHasTeiFiles(boolean hasTeiFiles) - Parameters:
hasTeiFiles
- the hasTeiFiles to set
-
isShowThumbnail
public boolean isShowThumbnail()- Returns:
- the showThumbnail
-
setShowThumbnail
public void setShowThumbnail(boolean showThumbnail) - Parameters:
showThumbnail
- the showThumbnail to set
-
getNumVolumes
public long getNumVolumes()Getter for the field
numVolumes
.- Returns:
- the numVolumes
-
setPi
Setter for the field
pi
.- Parameters:
pi
- the identifier to set
-
getPi
Getter for the field
pi
.- Returns:
- the identifier
-
getUrl
Returns the search hint URL (without the application root!).- Returns:
- the url
-
getSidebarPrevUrl
Getter for the field
sidebarPrevUrl
.- Returns:
- the sidebarPrevUrl
-
getSidebarNextUrl
Getter for the field
sidebarNextUrl
.- Returns:
- the sidebarNextUrl
-
getRisExport
- Returns:
- the risExport
-
getMetadataFieldNames
- Returns:
- List of field names in the metadata list
-
getMetadataList
Getter for the field
metadataList
.- Returns:
- a
List
object.
-
getMetadataValues
-
getFirstMetadataValue
-
getMetadataListForLocale
- Parameters:
field
-locale
-- Returns:
- List
-
getMetadataListForLocale
public List<Metadata> getMetadataListForLocale(String field, Locale locale, String metadataListType) - Parameters:
field
- Requested field namelocale
- Requested localemetadataListType
-- Returns:
- List
-
getMetadataListForLocale
getMetadataListForLocale.
-
getMetadataListForLocale
- Parameters:
locale
-metadataListType
-- Returns:
- List
-
getMetadataListForCurrentLocale
getMetadataListForCurrentLocale.
- Returns:
- a
List
object.
-
getSecondaryMetadataListForCurrentLocale
- Returns:
- First metadata list in metadataListMap that's not the default search metadata list configuration; empty list if not found
-
getExistingMetadataFields
- Returns:
- the existingMetadataFields
-
getMetadataGroupType
Getter for the field
metadataGroupType
.- Returns:
- the metadataGroupType
-
getMetadataList
Getter for the field
metadataList
. -
getFoundMetadataList
Getter for the field
foundMetadataList
.- Returns:
- the foundMetadataList
-
getDataRepository
Getter for the field
dataRepository
.- Returns:
- the dataRepository
-
getContextObject
Returns the ContextObject value for a COinS element using the docstruct hierarchy for this search hit..- Returns:
- a
String
object.
-
getRecordLanguages
Getter for the field
recordLanguages
.- Returns:
- the recordLanguages
-
setHasMedia
public void setHasMedia(boolean hasMedia) Setter for the field
hasMedia
.- Parameters:
hasMedia
- the hasMedia to set
-
isHasMedia
public boolean isHasMedia()isHasMedia.
- Returns:
- the hasMedia
-
getOriginalFieldName
Getter for the field
originalFieldName
.- Returns:
- the originalFieldName
-
determinePageType
determinePageType.
- Returns:
- a
PageType
object.
-
getLogId
Getter for the field
logId
.- Returns:
- the logId
-
setLogId
- Parameters:
logId
- the logId to set
-
getDocType
Getter for the field
docType
.- Returns:
- the docType
-
setThumbnailUrl
-