Class BrowseElement
- All Implemented Interfaces:
IAccessDeniedThumbnailOutput,Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.intranda.metadata.multilanguage.IMetadataValuecreateMultiLanguageLabel(StructElement structElement) createMultiLanguageLabel.determinePageType.getAccessDeniedThumbnailUrl(Locale locale) Returns the lowestStructElementStubin 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.intGetter for the fieldimageNo.getLabel()Getter for the fieldlabel.Getter for the fieldlabel.de.intranda.metadata.multilanguage.IMetadataValuegetLabelAsMetadataValue.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) longGetter 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.booleanisAnchor()isAnchor.booleanbooleanbooleanChecks whether the search hit should identify itself as a group document when being displayed.booleanisGroup()booleanisHasImages.booleanisHasMedia.booleanbooleanbooleanisWork()voidsetAccessPermissionThumbnail(AccessPermission accessPermissionThumbnail) voidsetAnchor(boolean anchor) Setter for the fieldanchor.voidsetCmsPage(boolean cmsPage) voidsetFulltext(String fulltext) Setter for the fieldfulltext.voidsetHasImages(boolean hasImages) Setter for the fieldhasImages.voidsetHasMedia(boolean hasMedia) Setter for the fieldhasMedia.voidsetHasTeiFiles(boolean hasTeiFiles) voidsetImageNo(int imageNo) voidsetLabelShort(de.intranda.metadata.multilanguage.IMetadataValue labelShort) Setter for the fieldlabelShort.voidvoidSetter for the fieldpi.voidsetShowThumbnail(boolean showThumbnail) voidsetThumbnailUrl(String thumbnailUrl) voidsetVolumeNo(String volumeNo) Setter for the fieldvolumeNo.voidsetWork(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- aStructElementobject.- Returns:
- a
IMetadataValueobject.
-
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
IMetadataValueobject.
-
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. -
getAccessDeniedThumbnailUrl
- Specified by:
getAccessDeniedThumbnailUrlin interfaceIAccessDeniedThumbnailOutput- Parameters:
locale-- Returns:
- Configured image URI for the given language; null if none found
-
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 lowestStructElementStubin 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
-
isDisplayGroupStatus
public boolean isDisplayGroupStatus()Checks whether the search hit should identify itself as a group document when being displayed.- Returns:
- true if group and not newspaper; false otherwise
-
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
Listobject.
-
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
Listobject.
-
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
-
getAccessPermissionThumbnail
- Returns:
- the accessPermissionThumbnail
-
setAccessPermissionThumbnail
- Parameters:
accessPermissionThumbnail- the accessPermissionThumbnail to set
-
getContextObject
Returns the ContextObject value for a COinS element using the docstruct hierarchy for this search hit..- Returns:
- a
Stringobject.
-
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
PageTypeobject.
-
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
-