Package io.goobi.viewer.controller
Class Configuration
java.lang.Object
io.goobi.viewer.controller.AbstractConfiguration
io.goobi.viewer.controller.Configuration
Central configuration holder that reads and provides access to all viewer configuration settings from the config XML file.
-
Field Summary
FieldsFields inherited from class io.goobi.viewer.controller.AbstractConfiguration
builder, builderLocal, localConfigDisabled, localConfigDisabledTimestamp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAbbyyFolder.intReturns a regex such that all download files which filenames fit this regex should not be visible in the downloads widget.getAdvancedSearchFieldDefaultOperator(String field, String template, boolean fallbackToDefaultTemplate) intgetAdvancedSearchFieldDisplaySelectItemsThreshold(String field, String template, boolean fallbackToDefaultTemplate) getAdvancedSearchFieldReplaceRegex(String field, String template, boolean fallbackToDefaultTemplate) getAdvancedSearchFieldReplaceWith(String field, String template, boolean fallbackToDefaultTemplate) getAdvancedSearchFields(String template, boolean fallbackToDefaultTemplate, String language) getAdvancedSearchFields.getAdvancedSearchFieldSelectType(String field, String template, boolean fallbackToDefaultTemplate) getAdvancedSearchFieldSeparatorLabel(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldHierarchical.getAdvancedSearchTemplateQuery(String template) Returns a list containing all simple facet fields.getAltoCrowdsourcingFolder.getAltoFolder.getAncestorIdentifierFieldFilterQuery(String).getAncestorIdentifierFields.getAnchorLabelInTitleBarPrefix(String template) getAnchorLabelInTitleBarSuffix(String template) getAnchorThumbnailMode.getAnnotationFolder.Returns the list of configured metadata for the archives.intgetAuthenticationProviders.getBooleanFacetFields.intgetBreadcrumbsClipping.Returns the list of index fields to be used for term browsing.intgetBrowsingMenuHitsPerPage.intgetBrowsingMenuIndexSizeThreshold.getCmdiFolder.intgetCmsMediaDisplayHeight.intgetCmsMediaDisplayWidth.getCmsMediaFolder.getCmsTextFolder.getCollectionBlacklist(String field) Returns collection names to be omitted from search results, listings etc.Returns the index field by which records in the collection with the given name are to be sorted in a listing.intgetCollectionDisplayDepthForSearch.intgetCollectionDisplayNumberOfVolumesLevel.getCollectionHierarchyField.getCollectionSorting(String field) getCollectionSorting.getCollectionSortOrders(String field) Gets all configured sortOrders for collections in the given field, mapped against a regex matching the collection(s).getCollectionSplittingChar(String field) getCollectionSplittingChar.intgetConfigLocalPath.getConfiguredCollections.Gets the value configured in webapi.cors.intintgetDatabaseConnectionAttempts.intReturns the TTL (in minutes) for cached data repository name lookups.getDbPersistenceUnit.getDcUrl()getDcUrl.getDefaultSortField(String language) getDefaultSortField.getDescription.getDeveloperScriptPath(String purpose) getDfgViewerUrl.getDisplayAdditionalMetadataIgnoreFields.getDisplayAdditionalMetadataNoHighlightFields.getDisplayAdditionalMetadataIgnoreFields.getDisplayAdditionalMetadataSnippetFields.Returns a list of additional metadata fields thats are configured to have their values translated.booleangetDisplayBreadcrumbs.booleangetDisplayMetadataPageLinkBlock.booleangetDisplayStructType.booleangetDisplayTitleBreadcrumbs.getDocstrctWhitelistFilterQuery.getDocstructNavigationTypes(String template, boolean fallbackToDefaultTemplate) getDownloadFolder(String type) getDownloadFolder.getDownloadHeader(String externalResourceUrl) Deprecated.getEndYearForTimeline.getEseUrl.intgetExcelDownloadTimeout.getFacetFieldDescriptionKey(String facetField) getFacetFieldDescriptionKey.getFacetFieldStyle(String facetField) getFacetFieldType(String facetField) getFeedbackEmailAddresses.intgetFooterHeight.intgetFooterHeight(ViewAttributes viewAttributes) getFooterHeight.intgetFullscreenFooterHeight.getFulltextCrowdsourcingFolder.getFulltextFolder.intgetFulltextFragmentLength.intgetFulltextPercentageWarningThreshold.getGeoFacetFieldPredicate(String facetField) getGeoFacetFields.intfloatintgetGeoMapFeatureConfiguration(String option, String template) getGeomapFeatureConfigurations(String option) getGeomapFilter(String name) getGeomapItemConfigurations(String option) getGeoMapMarker(String name) intgetGroupToLengthForFacetField(String facetField) getHierarchicalFacetFields.getHighlightMetadataForTemplate(String template) Returns the list of configured metadata forHighlights which reference a record.getHotfolder.url to rest api url for record media files.getIIIFAttribution.getIIIFDescriptionFields.intConfigured in webapi.iiif.discovery.activitiesPerPage.getIIIFEventFields.getIIIFLogo.getIIIFMetadataFields.getIIIFMetadataLabel(String field) getIIIFMetadataLabel.getIIIFNavDateField.UsesgetIIIFAttribution()as fallback.config:<iiif use-version="3.0"></iiif>.getImageViewZoomScales.getImageViewZoomScales(ViewAttributes viewAttributes) getImageViewZoomScales.getImageViewZoomScales(String view) getImageViewZoomScales.booleangetIncludeAnchorInTitleBreadcrumbs.getIndexedDenkxwebFolder.getIndexedDublinCoreFolder.getIndexedEadFolder.getIndexedLidoFolder.getIndexedMetsFolder.intgetInitialFacetElementNumber(String facetField) getInitialFacetElementNumber.getLabelFieldForFacetField(String facetField) floatgetLimitImageHeightLowerRatioThreshold.floatgetLimitImageHeightUpperRatioThreshold.getLocalRessourceBundleFile.getMainMetadataForTemplate(int index, String template) getMainMetadataListItemsForTemplate(int index, String template) getMarcUrl.getMediaFolder.getMediaTypeHandling(String mimeType) getMediaTypeRedirectUrl(String mimeType) getMetadataConfigurationForTemplate(String type, String template, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) getMetadataListItemsForTemplate(String type, String template, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) getMetadataListTypes(String prefix) getMetadataTemplates(String type) getMetadataTemplates(String type, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) getMultiValueOperatorForField(String facetField) getName()getName.getNextVersionIdentifierField.getNormdataFieldsForTemplate(String template) getNormdataFieldsForTemplate.intgetOrigContentFolder.getPageBrowseSteps.intgetPageLoaderThreshold.getPageMetadataForTemplate(String template) Returns the list of configured metadata for pages.intgetPageSelectionFormat.getPageType(PageType type) Returns the locally configured page type name for URLs (e.g.getPageTypeExitView(PageType type) getPdfFolder.getPiwikBaseURL.getPiwikSiteID.getPreviousVersionIdentifierField.Returns a list of values to prioritize for the given facet field.intgetQuartzSchedulerCronExpression(String taskName) intgetRangeFacetFieldMaxValue(String facetField) intgetRangeFacetFieldMinValue(String facetField) getRangeFacetFields.getReCaptchaSiteKey.getRecordGeomapFeatureSetConfigs(String templateName) getRecordGeomapMarker(String templateName) Deprecated.Group identifier fields are now detected implicitly via theGROUPID_prefix.getRecordTargetPageType(String publicationType) getRecordTargetPageType.getRestApiUrl.getRestrictedImageUrls.getRssCopyrightText.getRssDescription.intgetRssFeedItems.getRssTitle.intintgetSearchExcelExportFields.getSearchFilters.getSearchHitMetadataForTemplate(String template) Returns the list of configured metadata for search hit elements.intgetSearchHitMetadataValueLength.intgetSearchHitMetadataValueNumber.intgetSearchHitsPerPageDefaultValue.getSearchHitsPerPageValues.getSearchSortingOptions(String language) getSidebarMetadataForTemplate(String template) Returns the list of configured metadata for the sidebar.intgetSidebarTocCollapseLengthThreshold.intgetSidebarTocInitialCollapseLevel.intgetSidebarTocLengthBeforeCut.intgetSidebarTocLowestLevelToCollapseForLength.booleangetSidebarTocPageNumbersVisible.Returns a list of configured page download options.getSitelinksField.getSitelinksFilterQuery.getSmtpPassword.intgetSmtpSecurity.getSmtpSenderAddress.getSmtpSenderName.getSmtpServer.getSmtpUser.getSolrUrl.getSortFields.getSortOrder(String facetField) getSortOrder.getSourceFileUrl.getStartYearForTimeline.getStaticQuerySuffix.getStaticSortFields.Returns the stopwords loading during initialization.getStopwordsFilePath.getStringFormat(String type, Locale locale) getSubthemeDiscriminatorField.getSubthemeMainTheme.intgetTagCloudSampleSize(String fieldName) getTagCloudSampleSize.getTeiFolder.getTempFolder.A folder for temporary storage of media files.getTheme()getTheme.getThemeRootPath.intThe maximal image size retrievable with only the permission to view thumbnails.intgetThumbnailsHeight.intgetThumbnailsWidth.getTileSizes.getTileSizes(ViewAttributes viewAttributes) getTileSizes.getTimelineHits.intgetTitleBreadcrumbsMaxTitleLength.intReturns number of elements displayed per paginator page in a table of contents for anchors and groups.Return the layout type for TOCs of anchor records.intgetTocIndentation.getTocLabelConfiguration(String template) getTocLabelConfiguration.getTocVolumeGroupFieldForTemplate(String template) Returns the grouping Solr field for the given anchor TOC sort configuration.getTocVolumeSortFieldsForTemplate(String template) getTocVolumeSortFieldsForTemplate.getTranskribusAllowedDocumentTypes.getTranskribusDefaultCollection.getTranskribusPassword.getTranskribusRestApiUrl.getTranskribusUserName.getTwitterUserName.intThe maximal image size retrievable with the permission to view images but without the permission to zoom images.getUrnResolverUrl.getVersionLabelField.Get the base url of the viewer.getViewerHome.intgetViewerMaxImageHeight.intgetViewerMaxImageScale.intgetViewerMaxImageWidth.intgetViewerThumbnailsPerPage.getVocabulariesFolder.getWatermarkFormat.getWatermarkIdField.Returns the preference order of data to be used as an image footer text.getWebApiFields(String template) getWebApiFields.getWebApiToken.getWorkflowRestUrl.org.apache.commons.configuration2.BaseHierarchicalConfigurationgetZoomImageViewConfig(ViewAttributes viewAttributes) getZoomImageViewConfig.booleanbooleanisAddCollectionHierarchyToBreadcrumbs.booleanisAddCORSHeader.booleanisAdvancedSearchEnabled.booleanisAdvancedSearchFieldAllowMultipleItems(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldAllowMultipleItems.booleanisAdvancedSearchFieldDatepicker(String field, String template, boolean fallbackToDefaultTemplate) booleanisAdvancedSearchFieldHierarchical(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldHierarchical.booleanisAdvancedSearchFieldRange(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldRange.booleanisAdvancedSearchFieldUntokenizeForPhraseSearch(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldUntokenizeForPhraseSearch.booleanisAllowRedirectCollectionToWork.booleanisAlwaysApplyFacetFieldToUnfilteredHits(String facetField) booleanisBookmarksEnabled.booleanisBrowsingMenuEnabled.booleanisCalendarSearchEnabled.booleanbooleanbooleanbooleanbooleanisDisplayAdditionalMetadataEnabled.booleanbooleanisDisplayAnchorLabelInTitleBar(String template) booleanbooleanisDisplayCollectionBrowsing.booleanisDisplayCrowdsourcingModuleLinks.booleanbooleanisDisplaySearchResultNavigation.booleanisDisplaySearchRssLinks.booleanisDisplaySidebarBrowsingTerms.booleanbooleanbooleanbooleanbooleanisDisplayStatistics.booleanisDisplayTagCloudNavigation.booleanbooleanisDisplayTimeMatrix.booleanisDisplayTitlePURL.booleanbooleanisDisplayUserNavigation.booleanbooleanisDocHierarchyPdfEnabled.booleanbooleanisDoublePageNavigationDefault(ViewAttributes viewAttributes) Return true if double page navigation should be used per default for the givenPageTypeandImageType.booleanisDoublePageNavigationEnabled(ViewAttributes viewAttributes) Return true if double page navigation is enabled for the givenPageTypeandImageType.booleanbooleanisFacetFieldDisplayValueFilter(String facetField) booleanisFacetFieldSkipInWidget(String facetField) booleanisFoldout.booleanisFullAccessForLocalhost.booleanisGeneratePdfInMessageQueue.booleanstatic booleanisLanguageVersionOtherThan(String field, String language) booleanisLimitImageHeight.booleanisMetadataEpubEnabled.booleanisMetadataPdfEnabled.booleanisPageBrowseEnabled.booleanisPagePdfEnabled.booleanisPdfApiDisabled.booleanisPiwikTrackingEnabled.booleanisPreventProxyCaching.booleanbooleanbooleanisRememberImageRotation.booleanisRememberImageZoom.booleanisSearchExcelExportEnabled.booleanisSearchInItemOnlyIfFullTextAvailable.booleanbooleanisSearchRisExportEnabled.booleanisSearchSavingEnabled.booleanisSequencePageNavigationEnabled(ViewAttributes viewAttributes) Return true if sequence page navigation is enabled for the givenPageTypeandImageType.booleanisShowOpenIdConnect.booleanisShowSearchHitsInGeoFacetMap(String facetField) booleanisSidebarRssFeedWidgetEnabled.booleanisSidebarTocTreeView.booleanChecks whether the TOC widget is enabled.booleanisSidebarViewsWidgetFulltextLinkVisible.booleanisSidebarViewsWidgetMetadataViewLinkVisible.booleanisSidebarViewsWidgetObjectViewLinkVisible.booleanisSidebarViewsWidgetOpacLinkVisible.booleanisSidebarViewsWidgetThumbsViewLinkVisible.booleanChecks whether the TOC link in the sidebar views widget is enabled.booleanisSidebarWidgetForViewCollapsedByDefault(String view, String widget) booleanisSidebarWidgetForViewCollapsible(String view, String widget) booleanbooleanisSortingEnabled.booleanbooleanbooleanisTimelineSearchEnabled.booleanisTitleEpubEnabled.booleanisTitlePdfEnabled.booleanisTocEpubEnabled.booleanisTocListSiblingRecords.booleanisTocPdfEnabled.booleanisTocTreeView(String docStructType) isTocTreeView.booleanisTranskribusEnabled.booleanisTranslateFacetFieldLabels(String facetField) booleanisUrnDoRedirect.booleanbooleanbooleanisUseReCaptcha.booleanisUserRegistrationEnabled.booleanbooleanbooleanbooleanbooleanbooleanbooleanloadStopwords(String stopwordsFilePath) loadStopwords.static GeoMapMarkerreadGeoMapMarker(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) booleanbooleanshowImageNavigator(ViewAttributes viewAttributes) Returns whether a navigator element should be shown in the OpenSeadragon viewer.booleanshowImageThumbnailGallery(ViewAttributes viewAttributes) Returns whether the thumbnail gallery should be shown in image view.booleanbooleanbooleanbooleanbooleanuseTiles()useTiles.booleanuseTiles(ViewAttributes viewAttributes) useTiles.booleanuseTilesFullscreen.Methods inherited from class io.goobi.viewer.controller.AbstractConfiguration
getAllConfigurationsAt, getConfig, getConfigLocal, getDefaultConfigFile, getLocalBoolean, getLocalConfigurationAt, getLocalConfigurationsAt, getLocalConfigurationsAt, getLocalFloat, getLocalFloat, getLocalInt, getLocalList, getLocalList, getLocalList, getLocalNodeList, getLocalString, getLocalString, overrideValue
-
Field Details
-
CONFIG_FILE_NAME
- See Also:
-
METADATA_LIST_TYPE_PAGE
- See Also:
-
METADATA_LIST_TYPE_SEARCH_HIT
- See Also:
-
-
Constructor Details
-
Configuration
Creates a new Configuration instance.- Parameters:
configFilePath- path to the default configuration XML file
-
-
Method Details
-
loadStopwords
loadStopwords.- Parameters:
stopwordsFilePath- path to the stopwords file to read- Returns:
- the set of stopwords loaded from the file
- Throws:
IOException- if any.
-
getStopwords
Returns the stopwords loading during initialization.- Returns:
- the set of stopwords loaded during initialization
-
getConfigLocalPath
getConfigLocalPath.- Returns:
- the path to the local config_viewer.xml file.
-
getLocalRessourceBundleFile
getLocalRessourceBundleFile.- Returns:
- the absolute path to the local German message properties file
-
getViewerThumbnailsPerPage
public int getViewerThumbnailsPerPage()getViewerThumbnailsPerPage.- Returns:
- a int.
-
getViewerMaxImageWidth
public int getViewerMaxImageWidth()getViewerMaxImageWidth.- Returns:
- a int.
-
getViewerMaxImageHeight
public int getViewerMaxImageHeight()getViewerMaxImageHeight.- Returns:
- a int.
-
getViewerMaxImageScale
public int getViewerMaxImageScale()getViewerMaxImageScale.- Returns:
- a int.
-
isRememberImageZoom
public boolean isRememberImageZoom()isRememberImageZoom.- Returns:
- true if the image zoom level is remembered between page navigation, false otherwise
-
isRememberImageRotation
public boolean isRememberImageRotation()isRememberImageRotation.- Returns:
- true if the image rotation is remembered between page navigation, false otherwise
-
getDfgViewerUrl
getDfgViewerUrl.- Returns:
- the configured DFG Viewer base URL
-
getDfgViewerSourcefileField
- Returns:
- the configured Solr field used as the DFG Viewer source file field
-
getMetadataListTypes
- Parameters:
prefix- Optional prefix for filtering- Returns:
- List of type attribute values of matching lists
-
getMetadataConfigurationForTemplate
public List<Metadata> getMetadataConfigurationForTemplate(String type, String template, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) - Parameters:
type- metadata list type attribute valuetemplate- template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not foundtopstructValueFallbackDefaultValue- default value for topstructValueFallback attribute- Returns:
- List of metadata configurations
-
getMetadataListItemsForTemplate
public List<MetadataListElement> getMetadataListItemsForTemplate(String type, String template, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) - Parameters:
type- metadata list type attribute valuetemplate- template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not foundtopstructValueFallbackDefaultValue- default value for topstructValueFallback attribute- Returns:
- List of metadata configurations
-
getMetadataTemplates
- Parameters:
type- metadata list type attribute value- Returns:
- Map<String, List<Metadata>>
-
getMetadataTemplates
public Map<String,List<Metadata>> getMetadataTemplates(String type, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) - Parameters:
type- metadata list type attribute valuefallbackToDefaultTemplate- if true, fall back to the default template when not foundtopstructValueFallbackDefaultValue- default value for topstructValueFallback attribute- Returns:
- Map<String, List<Metadata>>
-
getSearchHitMetadataForTemplate
Returns the list of configured metadata for search hit elements.- Parameters:
template- template name to look up- Returns:
- a list of configured Metadata definitions for search hit elements of the given template
-
getPageMetadataForTemplate
Returns the list of configured metadata for pages.- Parameters:
template- template name to look up- Returns:
- a list of configured Metadata definitions for page elements of the given template
-
getHighlightMetadataForTemplate
Returns the list of configured metadata forHighlights which reference a record.- Parameters:
template- template name to look up- Returns:
- a list of configured Metadata definitions for highlighted record references of the given template
-
getMetadataViews
- Returns:
- the list of configured metadata view configurations
-
getMainMetadataForTemplate
- Parameters:
index- zero-based index of the metadataView element to usetemplate- template name to look up- Returns:
- List of configured
Metadatafields for the given template
-
getMainMetadataListItemsForTemplate
- Parameters:
index- zero-based index of the metadataView element to usetemplate- template name to look up- Returns:
- List of configured
Metadatafields for the given template
-
getSidebarMetadataForTemplate
Returns the list of configured metadata for the sidebar.- Parameters:
template- Template name- Returns:
- List of configured metadata for configured fields
-
getArchiveMetadata
Returns the list of configured metadata for the archives.- Returns:
- List of configured metadata for configured fields
-
getNormdataFieldsForTemplate
getNormdataFieldsForTemplate.- Parameters:
template- Template name- Returns:
- List of normdata fields configured for the given template name
-
getTocLabelConfiguration
getTocLabelConfiguration.- Parameters:
template- template name to look up- Returns:
- a list of Metadata definitions used for generating TOC entry labels for the given template
-
getGeomapClusterDistanceMultiplier
public float getGeomapClusterDistanceMultiplier() -
getGeomapClusterRadius
public int getGeomapClusterRadius() -
getGeomapDisableClusteringAtZoom
-
getGeoMapFeatureConfiguration
-
getMetadataListForGeomapMarkerConfig
-
getMetadataListForGeomapItemConfig
-
getGeomapFeatureConfigurations
-
getGeomapItemConfigurations
-
getGeomapFeatureTitleOptions
- Returns:
- the list of configured geo map feature title options as select items
-
getGeomapDefaultView
-
getGeomapFilter
-
getGeomapFilters
-
getRecordGeomapFeatureSetConfigs
-
getTocAnchorGroupElementsPerPage
public int getTocAnchorGroupElementsPerPage()Returns number of elements displayed per paginator page in a table of contents for anchors and groups. Values below 1 disable pagination (all elements are displayed on the single page).- Returns:
- a int.
-
getTocAnchorLayout
Return the layout type for TOCs of anchor records. Defaults to 'list'- Returns:
- the configured TOC anchor layout type; defaults to
"list"
-
getAdditionalFilesDisplayFilters
Returns a regex such that all download files which filenames fit this regex should not be visible in the downloads widget. If an empty string is returned, all downloads should remain visible- Returns:
- a regex or an empty string if no downloads should be hidden
-
isDisplaySidebarWidgetCitationCitationRecommendation
public boolean isDisplaySidebarWidgetCitationCitationRecommendation()- Returns:
- Boolean value
-
getSidebarWidgetCitationCitationRecommendationStyles
- Returns:
- List of available citation style names
-
getSidebarWidgetCitationCitationRecommendationSource
- Returns:
- the configured citation recommendation source metadata
-
getSidebarWidgetCitationCitationRecommendationDocstructMapping
- Returns:
- Map containing mappings DOCSTRCT -> citeproc type
-
isDisplaySidebarWidgetCitationCitationLinks
public boolean isDisplaySidebarWidgetCitationCitationLinks()- Returns:
- Boolean value
-
getSidebarWidgetCitationCitationLinks
- Returns:
- the list of configured citation links for the citation widget
-
getSidebarWidgetDownloadsPageDownloadOptions
Returns a list of configured page download options.- Returns:
- List of configured
DownloadOptionitems
-
isDisplayWidgetDownloadsDownloadOptions
public boolean isDisplayWidgetDownloadsDownloadOptions()- Returns:
- true if the page download options are enabled in the downloads widget, false otherwise
-
isDisplaySidebarWidgetDownloadsPdfPageRange
public boolean isDisplaySidebarWidgetDownloadsPdfPageRange()- Returns:
- true if the PDF page range selector is enabled in the downloads widget, false otherwise
-
getSidebarWidgetsForView
- Parameters:
view- Record view name- Returns:
- List of sidebar widget names to display in the given view (in the intended order)
-
isSidebarWidgetForViewCollapsible
- Parameters:
view- Record view namewidget- Widget name- Returns:
- true if widget configured as collapsible; false otherwise; default is false
-
isSidebarWidgetForViewCollapsedByDefault
- Parameters:
view- Record view namewidget- Widget name- Returns:
- true if widget configured as collapsed by default; false otherwise; default is false
-
isBrowsingMenuEnabled
public boolean isBrowsingMenuEnabled()isBrowsingMenuEnabled.- Returns:
- true if the browsing menu is enabled, false otherwise
-
getBrowsingMenuIndexSizeThreshold
public int getBrowsingMenuIndexSizeThreshold()getBrowsingMenuIndexSizeThreshold.- Returns:
- Solr doc count threshold for browsing term calculation
-
getBrowsingMenuHitsPerPage
public int getBrowsingMenuHitsPerPage()getBrowsingMenuHitsPerPage.- Returns:
- a int.
-
getBrowsingMenuFields
Returns the list of index fields to be used for term browsing.- Returns:
- a list of configured index fields to be used for term browsing in the browsing menu
-
getBrowsingMenuSortingIgnoreLeadingChars
- Returns:
- the configured leading characters to ignore when sorting the browsing menu
-
getDocstrctWhitelistFilterQuery
getDocstrctWhitelistFilterQuery.- Returns:
- the configured Solr filter query restricting indexed document structure types
-
getCollectionSplittingChar
getCollectionSplittingChar.- Parameters:
field- collection Solr field name to look up- Returns:
- the configured hierarchy splitting character for the given collection field
-
getConfiguredCollectionFields
- Returns:
- the list of configured collection Solr field names
-
getCollectionSortOrders
Gets all configured sortOrders for collections in the given field, mapped against a regex matching the collection(s).Whether subcollections should be sorted according to the sortOrder.
- Parameters:
field- the solr fild on which the collection is based- Returns:
- a map of regular expressions matching collection names and associated sortOrders
-
getCollectionSorting
getCollectionSorting.- Parameters:
field- collection Solr field name to look up- Returns:
- a list of DcSortingList objects defining the configured collection sort order for the given field
-
getCollectionBlacklist
Returns collection names to be omitted from search results, listings etc.- Parameters:
field- collection Solr field name to look up- Returns:
- a list of collection names to be omitted from search results and listings for the given field
-
getCollectionDefaultSortFields
Returns the index field by which records in the collection with the given name are to be sorted in a listing.- Parameters:
field- collection Solr field name to look up- Returns:
- a map of collection name patterns to their configured default sort fields for the given collection field
-
getCollectionDisplayNumberOfVolumesLevel
getCollectionDisplayNumberOfVolumesLevel.- Parameters:
field- collection Solr field name to look up- Returns:
- a int.
-
getCollectionDisplayDepthForSearch
getCollectionDisplayDepthForSearch.- Parameters:
field- collection Solr field name to look up- Returns:
- a int.
-
getCollectionHierarchyField
getCollectionHierarchyField.- Returns:
- the first configured collection Solr field for which hierarchy breadcrumbs are enabled, or null if none
-
isAddCollectionHierarchyToBreadcrumbs
isAddCollectionHierarchyToBreadcrumbs.- Parameters:
field- collection Solr field name to look up- Returns:
- true if the collection hierarchy is added to the breadcrumb trail for the given field, false otherwise
-
getSolrUrl
getSolrUrl.- Returns:
- the configured Solr base URL without a trailing slash
-
getDownloadUrl
Deprecated.because download uri is now built from request inDownloadBeangetDownloadUrl.- Returns:
- the configured download base URL with a trailing slash
-
getViewerBaseUrl
Get the base url of the viewer. This is the url up to the context path. The returned url always ends with a '/'- Returns:
- The base viewer url
-
getRestApiUrl
getRestApiUrl.- Returns:
- The url to the viewer REST API as configured in the config_viewer. The url always ends with "/"
-
getIIIFApiUrl
url to rest api url for record media files. Always ends with a slash- Returns:
- the configured IIIF API base URL, always ending with a slash
-
isUseIIIFApiUrlForCmsMediaUrls
public boolean isUseIIIFApiUrlForCmsMediaUrls()- Returns:
- true if the IIIF API URL is used for CMS media file URLs instead of the default URL, false otherwise
-
getSourceFileUrl
getSourceFileUrl.- Returns:
- the configured URL for accessing source (METS/LIDO) metadata files
-
getMarcUrl
getMarcUrl.- Returns:
- the configured URL for accessing MARC metadata records
-
getDcUrl
getDcUrl.- Returns:
- the configured URL for accessing Dublin Core metadata records
-
getEseUrl
getEseUrl.- Returns:
- the configured URL for accessing ESE metadata records
-
getSearchHitsPerPageValues
getSearchHitsPerPageValues.- Returns:
- List of configured values
-
isDisplaySearchHitNumbers
public boolean isDisplaySearchHitNumbers()- Returns:
- true if search hit numbers are displayed next to each result, false otherwise
-
getSearchChildHitsInitialLoadLimit
public int getSearchChildHitsInitialLoadLimit() -
getSearchChildHitsToLoadOnExpand
public int getSearchChildHitsToLoadOnExpand() -
getSearchHitsPerPageDefaultValue
public int getSearchHitsPerPageDefaultValue()getSearchHitsPerPageDefaultValue.- Returns:
- value element that is marked as default value; 10 if none found
-
getFulltextFragmentLength
public int getFulltextFragmentLength()getFulltextFragmentLength.- Returns:
- a int.
-
isAdvancedSearchEnabled
public boolean isAdvancedSearchEnabled()isAdvancedSearchEnabled.- Returns:
- true if the advanced search is enabled, false otherwise
-
getAdvancedSearchTemplateNames
- Returns:
- List of configured template names
-
getAdvancedSearchDefaultTemplateName
- Returns:
- _DEFAULT or the name of the first template in the list
-
getAdvancedSearchTemplateQuery
- Parameters:
template- advanced search template name to look up- Returns:
- Value of the query attribute; empty string if none found
-
getAdvancedSearchFields
public List<AdvancedSearchFieldConfiguration> getAdvancedSearchFields(String template, boolean fallbackToDefaultTemplate, String language) getAdvancedSearchFields.- Parameters:
template- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not foundlanguage- language code used to filter language-specific fields- Returns:
- a list of configured advanced search field configurations for the given template and language
-
isDisplayAdditionalMetadataEnabled
public boolean isDisplayAdditionalMetadataEnabled()isDisplayAdditionalMetadataEnabled.- Returns:
- true if displaying additional metadata in search hits is enabled, false otherwise
-
getDisplayAdditionalMetadataIgnoreFields
getDisplayAdditionalMetadataIgnoreFields.- Returns:
- List of configured fields; empty list if none found.
-
getDisplayAdditionalMetadataTranslateFields
Returns a list of additional metadata fields thats are configured to have their values translated. Field names are normalized (i.e. things like _UNTOKENIZED are removed).- Returns:
- List of configured fields; empty list if none found.
-
getDisplayAdditionalMetadataOnelineFields
getDisplayAdditionalMetadataIgnoreFields.- Returns:
- List of configured fields; empty list if none found.
-
getDisplayAdditionalMetadataSnippetFields
getDisplayAdditionalMetadataSnippetFields.- Returns:
- List of configured fields; empty list if none found.
-
getDisplayAdditionalMetadataNoHighlightFields
getDisplayAdditionalMetadataNoHighlightFields.- Returns:
- List of configured fields; empty list if none found.
-
isAdvancedSearchFieldHierarchical
public boolean isAdvancedSearchFieldHierarchical(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldHierarchical.- Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- true if the given advanced search field is configured as hierarchical, false otherwise
-
isAdvancedSearchFieldRange
public boolean isAdvancedSearchFieldRange(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldRange.- Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- true if the given advanced search field is configured as a range field, false otherwise
-
isAdvancedSearchFieldDatepicker
public boolean isAdvancedSearchFieldDatepicker(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- true if the given advanced search field is configured to use a date picker, false otherwise
-
isAdvancedSearchFieldAllowMultipleItems
public boolean isAdvancedSearchFieldAllowMultipleItems(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldAllowMultipleItems.- Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- true if the advanced search field is configured to allow multiple items, false otherwise
-
isAdvancedSearchFieldUntokenizeForPhraseSearch
public boolean isAdvancedSearchFieldUntokenizeForPhraseSearch(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldUntokenizeForPhraseSearch.- Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- true if the advanced search field is configured to untokenize values for phrase search, false otherwise
-
getAdvancedSearchFieldDisplaySelectItemsThreshold
public int getAdvancedSearchFieldDisplaySelectItemsThreshold(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field nametemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- the configured threshold for displaying select items in the advanced search field for the given field and template
-
getAdvancedSearchFieldSelectType
public String getAdvancedSearchFieldSelectType(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field nametemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- the configured select type for the advanced search field, defaulting to dropdown if not set
-
getAdvancedSearchFieldSeparatorLabel
public String getAdvancedSearchFieldSeparatorLabel(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldHierarchical.- Parameters:
field- advanced search field name to checktemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- Label attribute value for the given field name
-
getAdvancedSearchFieldReplaceRegex
public String getAdvancedSearchFieldReplaceRegex(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field nametemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- the configured regex pattern to replace in the advanced search field value for the given field and template, or null if not configured
-
getAdvancedSearchFieldReplaceWith
public String getAdvancedSearchFieldReplaceWith(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field nametemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- the configured replacement string for the advanced search field value for the given field and template, or null if not configured
-
getAdvancedSearchFieldDefaultOperator
public String getAdvancedSearchFieldDefaultOperator(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field- advanced search field nametemplate- advanced search template name to look upfallbackToDefaultTemplate- if true, fall back to the default template when not found- Returns:
- the configured default boolean operator for the given advanced search field and template, or null if not configured
-
getAdvancedSearchTemplateFirstLineDefaultOperator
- Parameters:
template- advanced search template name to look up- Returns:
- the configured default operator for the first line of the given advanced search template, or null if not configured
-
isTimelineSearchEnabled
public boolean isTimelineSearchEnabled()isTimelineSearchEnabled.- Returns:
- true if the timeline search is enabled, false otherwise
-
isCalendarSearchEnabled
public boolean isCalendarSearchEnabled()isCalendarSearchEnabled.- Returns:
- true if the calendar search is enabled, false otherwise
-
getStaticQuerySuffix
getStaticQuerySuffix.- Returns:
- the configured static Solr query suffix appended to all search queries
-
getPreviousVersionIdentifierField
getPreviousVersionIdentifierField.- Returns:
- the configured Solr field name holding the previous version identifier
-
getNextVersionIdentifierField
getNextVersionIdentifierField.- Returns:
- the configured Solr field name holding the next version identifier
-
getVersionLabelField
getVersionLabelField.- Returns:
- the configured Solr field name holding the version label
-
getIndexedMetsFolder
getIndexedMetsFolder.- Returns:
- the configured folder name for indexed METS files
-
getIndexedLidoFolder
getIndexedLidoFolder.- Returns:
- the configured folder name for indexed LIDO files
-
getIndexedEadFolder
getIndexedEadFolder.- Returns:
- the configured folder name for indexed EAD files
-
getIndexedDenkxwebFolder
getIndexedDenkxwebFolder.- Returns:
- the configured folder name for indexed DenkXweb files
-
getIndexedDublinCoreFolder
getIndexedDublinCoreFolder.- Returns:
- the configured folder name for indexed Dublin Core files
-
getPageSelectionFormat
getPageSelectionFormat.- Returns:
- the configured format string for page selection display
-
getMediaFolder
getMediaFolder.- Returns:
- the configured path to the media folder
-
getPdfFolder
getPdfFolder.- Returns:
- the configured folder name for generated PDF files
-
getVocabulariesFolder
getVocabulariesFolder.- Returns:
- the configured folder name for vocabulary files
-
getOrigContentFolder
getOrigContentFolder.- Returns:
- the configured folder name for original source content files
-
getCmsMediaFolder
getCmsMediaFolder.- Returns:
- the configured folder name for CMS media files
-
getCmsTextFolder
getCmsTextFolder.- Returns:
- the configured folder name for CMS text content files
-
getAltoFolder
getAltoFolder.- Returns:
- the configured folder name for ALTO OCR files
-
getAltoCrowdsourcingFolder
getAltoCrowdsourcingFolder.- Returns:
- the configured folder name for crowdsourced ALTO OCR files
-
getAbbyyFolder
getAbbyyFolder.- Returns:
- the configured folder name for ABBYY recognition result files
-
getFulltextFolder
getFulltextFolder.- Returns:
- the configured folder name for plain full-text files
-
getFulltextCrowdsourcingFolder
getFulltextCrowdsourcingFolder.- Returns:
- the configured folder name for crowdsourced plain full-text files
-
getTeiFolder
getTeiFolder.- Returns:
- the configured folder name for TEI document files
-
getCmdiFolder
getCmdiFolder.- Returns:
- the configured folder name for CMDI metadata files
-
getAnnotationFolder
getAnnotationFolder.- Returns:
- the configured folder name for annotation files
-
getHotfolder
getHotfolder.- Returns:
- the configured path to the Goobi indexer hotfolder
-
getTempFolder
getTempFolder.- Returns:
- the path to the temporary viewer working directory within the system temp directory
-
getUrnResolverFields
- Returns:
- the list of configured Solr field names used for URN resolver lookups
-
isUrnDoRedirect
public boolean isUrnDoRedirect()isUrnDoRedirect.- Returns:
- true if URN resolver should redirect instead of forward, false otherwise
-
isUserRegistrationEnabled
public boolean isUserRegistrationEnabled()isUserRegistrationEnabled.- Returns:
- true if user self-registration is enabled, false otherwise
-
getSecurityQuestions
- Returns:
- the list of configured security questions for user registration
-
isShowOpenIdConnect
public boolean isShowOpenIdConnect()isShowOpenIdConnect.- Returns:
- true if at least one OpenID Connect authentication provider is configured and enabled, false otherwise
-
getAuthenticationProviders
getAuthenticationProviders.- Returns:
- a list of all configured authentication providers
-
getSmtpServer
getSmtpServer.- Returns:
- the configured SMTP server hostname or IP address
-
getSmtpUser
getSmtpUser.- Returns:
- the configured SMTP authentication username
-
getSmtpPassword
getSmtpPassword.- Returns:
- the configured SMTP authentication password
-
getSmtpSenderAddress
getSmtpSenderAddress.- Returns:
- the configured SMTP sender email address
-
getSmtpSenderName
getSmtpSenderName.- Returns:
- the configured SMTP sender display name
-
getSmtpSecurity
getSmtpSecurity.- Returns:
- the configured SMTP connection security mode (e.g. none, ssl, tls)
-
getSmtpPort
public int getSmtpPort()- Returns:
- Configured SMTP port number; -1 if not configured
-
isDisplayCollectionBrowsing
public boolean isDisplayCollectionBrowsing()isDisplayCollectionBrowsing.- Returns:
- true if the collection browsing navigation is enabled, false otherwise
-
isDisplayStatistics
public boolean isDisplayStatistics()isDisplayStatistics.- Returns:
- true if the statistics display is enabled, false otherwise
-
isDisplayTimeMatrix
public boolean isDisplayTimeMatrix()isDisplayTimeMatrix.- Returns:
- true if the time matrix display is enabled, false otherwise
-
isDisplayCrowdsourcingModuleLinks
public boolean isDisplayCrowdsourcingModuleLinks()isDisplayCrowdsourcingModuleLinks.- Returns:
- true if links to the crowdsourcing module are displayed, false otherwise
-
getTheme
getTheme.- Returns:
- the configured main theme name
-
getThemeRootPath
getThemeRootPath.- Returns:
- the configured root path for theme resources
-
getName
getName.- Returns:
- the configured viewer application name
-
getDescription
getDescription.- Returns:
- the configured viewer application description
-
isDisplayTagCloudStartpage
public boolean isDisplayTagCloudStartpage()- Returns:
- true if the tag cloud is displayed on the start page, false otherwise
-
isFoldout
isFoldout.- Parameters:
sidebarElement- sidebar widget name to check- Returns:
- true if the given sidebar element is configured as foldout, false otherwise
-
isSidebarViewsWidgetObjectViewLinkVisible
public boolean isSidebarViewsWidgetObjectViewLinkVisible()isSidebarViewsWidgetObjectViewLinkVisible.- Returns:
- true if the object view link in the sidebar views widget is visible, false otherwise
-
isSidebarViewsWidgetTocViewLinkVisible
public boolean isSidebarViewsWidgetTocViewLinkVisible()Checks whether the TOC link in the sidebar views widget is enabled. To check whether the sidebar TOC widget is enabled, useisSidebarTocVisible().- Returns:
- true if the TOC view link in the sidebar views widget is visible, false otherwise
-
isSidebarViewsWidgetThumbsViewLinkVisible
public boolean isSidebarViewsWidgetThumbsViewLinkVisible()isSidebarViewsWidgetThumbsViewLinkVisible.- Returns:
- true if the thumbnails view link in the sidebar views widget is visible, false otherwise
-
isSidebarViewsWidgetMetadataViewLinkVisible
public boolean isSidebarViewsWidgetMetadataViewLinkVisible()isSidebarViewsWidgetMetadataViewLinkVisible.- Returns:
- true if the metadata view link in the sidebar views widget is visible, false otherwise
-
isSidebarViewsWidgetFulltextLinkVisible
public boolean isSidebarViewsWidgetFulltextLinkVisible()isSidebarViewsWidgetFulltextLinkVisible.- Returns:
- true if the fulltext view link in the sidebar views widget is visible, false otherwise
-
isSidebarViewsWidgetOpacLinkVisible
public boolean isSidebarViewsWidgetOpacLinkVisible()isSidebarViewsWidgetOpacLinkVisible.- Returns:
- true if the OPAC view link in the sidebar views widget is visible, false otherwise
-
isSearchInItemOnlyIfFullTextAvailable
public boolean isSearchInItemOnlyIfFullTextAvailable()isSearchInItemOnlyIfFullTextAvailable.- Returns:
- true if search-in-item is only active when full text is available, false otherwise
-
isSidebarTocWidgetVisibleInFullscreen
public boolean isSidebarTocWidgetVisibleInFullscreen()Checks whether the TOC widget is enabled. To check whether the sidebar TOC link in the views widget is enabled, useisSidebarTocVisible().- Returns:
- true if the sidebar TOC widget is visible in fullscreen mode, false otherwise
-
getSidebarTocPageNumbersVisible
public boolean getSidebarTocPageNumbersVisible()getSidebarTocPageNumbersVisible.- Returns:
- true if page numbers are visible in the sidebar TOC, false otherwise
-
getSidebarTocLengthBeforeCut
public int getSidebarTocLengthBeforeCut()getSidebarTocLengthBeforeCut.- Returns:
- a int.
-
getSidebarTocInitialCollapseLevel
public int getSidebarTocInitialCollapseLevel()getSidebarTocInitialCollapseLevel.- Returns:
- a int.
-
getSidebarTocCollapseLengthThreshold
public int getSidebarTocCollapseLengthThreshold()getSidebarTocCollapseLengthThreshold.- Returns:
- a int.
-
getSidebarTocLowestLevelToCollapseForLength
public int getSidebarTocLowestLevelToCollapseForLength()getSidebarTocLowestLevelToCollapseForLength.- Returns:
- a int.
-
isSidebarTocTreeView
public boolean isSidebarTocTreeView()isSidebarTocTreeView.- Returns:
- true if the sidebar TOC uses tree view, false otherwise
-
isTocTreeView
isTocTreeView.- Parameters:
docStructType- document structure type to check against configured allowlist- Returns:
- true if tree view is enabled for the given document structure type, false otherwise
-
isDisplaySidebarBrowsingTerms
public boolean isDisplaySidebarBrowsingTerms()isDisplaySidebarBrowsingTerms.- Returns:
- true if the browsing terms sidebar widget is enabled, false otherwise
-
isSidebarRssFeedWidgetEnabled
public boolean isSidebarRssFeedWidgetEnabled()isSidebarRssFeedWidgetEnabled.- Returns:
- true if the RSS feed sidebar widget is enabled, false otherwise
-
getAllFacetFields
Returns a list containing all simple facet fields.- Returns:
- a list of all configured facet field names
-
getRegularFacetFields
- Returns:
- the list of configured regular (non-range, non-hierarchical) facet field names
-
getBooleanFacetFields
getBooleanFacetFields.- Returns:
- a list of configured boolean-type facet field names
-
getHierarchicalFacetFields
getHierarchicalFacetFields.- Returns:
- a list of configured hierarchical-type facet field names
-
getRangeFacetFields
getRangeFacetFields.- Returns:
- List of facet fields to be used as range values
-
getRangeFacetFieldMinValue
- Parameters:
facetField- facet field name- Returns:
- the configured minimum value for the range facet field, or Integer.MIN_VALUE if not configured
-
getRangeFacetFieldMaxValue
- Parameters:
facetField- facet field name- Returns:
- the configured maximum value for the range facet field, or Integer.MAX_VALUE if not configured
-
getFacetFieldStyle
- Parameters:
facetField- facet field name- Returns:
- the configured display style for the facet field, or an empty string if not configured
-
getGeoFacetFields
getGeoFacetFields.- Returns:
- a list of configured geo-type facet field names
-
getGeoFacetFieldPredicate
- Parameters:
facetField- facet field name- Returns:
- the configured spatial predicate for the geo facet field, defaulting to ISWITHIN
-
isShowSearchHitsInGeoFacetMap
- Parameters:
facetField- facet field name- Returns:
- the configured value indicating whether search hits should be shown in the geo facet map
-
getInitialFacetElementNumber
getInitialFacetElementNumber.- Parameters:
facetField- facet field name to look up- Returns:
- Number of initial facet values
-
getFacetFieldDescriptionKey
getFacetFieldDescriptionKey.- Parameters:
facetField- facet field name to look up- Returns:
- Optional description message key
-
getSortOrder
getSortOrder.- Parameters:
facetField- facet field name to look up- Returns:
- the configured sort order for the given facet field (e.g. "default", "asc", "desc")
-
getPriorityValuesForFacetField
Returns a list of values to prioritize for the given facet field.- Parameters:
field- facet field name to look up- Returns:
- List of priority values; empty list if none found for the given field
-
getLabelFieldForFacetField
- Parameters:
facetField- facet field name- Returns:
- the configured label field name for the facet field, or null if not configured
-
isTranslateFacetFieldLabels
- Parameters:
facetField- facet field name- Returns:
- the configured value indicating whether facet field labels should be translated
-
getGroupToLengthForFacetField
- Parameters:
facetField- facet field name- Returns:
- the configured grouping length for the facet field, or -1 if not configured
-
isAlwaysApplyFacetFieldToUnfilteredHits
- Parameters:
facetField- facet field name- Returns:
- the configured value indicating whether the facet field should always be applied to unfiltered hits
-
isFacetFieldSkipInWidget
- Parameters:
facetField- facet field name- Returns:
- the configured value indicating whether the facet field should be skipped in the widget
-
isFacetFieldDisplayValueFilter
- Parameters:
facetField- facet field name- Returns:
- the configured value indicating whether a value filter should be displayed for the facet field
-
getFacetFieldType
- Parameters:
facetField- facet field name- Returns:
- the configured type of the facet field, or an empty string if not configured
-
getMultiValueOperatorForField
- Parameters:
facetField- facet field name- Returns:
- the configured multi-value operator for the facet field, defaulting to AND
-
isSortingEnabled
public boolean isSortingEnabled()isSortingEnabled.- Returns:
- true if search result sorting is enabled, false otherwise
-
getDefaultSortField
getDefaultSortField.- Parameters:
language- language code for selecting language-specific sort fields- Returns:
- the configured default sort field for the given language, or the relevance sort constant if not configured
-
getSortFields
getSortFields.- Returns:
- a list of configured sort field names for search results
-
getSearchSortingOptions
- Parameters:
language- language code for filtering language-specific sort fields- Returns:
- List of
SearchSortingOptions from configured sorting fields
-
getStaticSortFields
getStaticSortFields.- Returns:
- a list of configured static sort field names that are always applied to search results
-
getSearchSortingKeyAscending
- Parameters:
field- sort field name- Returns:
- an Optional containing the configured message key for ascending sort label, or empty if not configured
-
getSearchSortingKeyDescending
- Parameters:
field- sort field name- Returns:
- an Optional containing the configured message key for descending sort label, or empty if not configured
-
getUrnResolverUrl
getUrnResolverUrl.- Returns:
- the configured URN resolver base URL
-
getThumbnailImageAccessMaxWidth
public int getThumbnailImageAccessMaxWidth()The maximal image size retrievable with only the permission to view thumbnails.- Returns:
- the maximal image width
-
getUnzoomedImageAccessMaxWidth
public int getUnzoomedImageAccessMaxWidth()The maximal image size retrievable with the permission to view images but without the permission to zoom images.- Returns:
- the maximal image width, default ist 600
-
isFullAccessForLocalhost
public boolean isFullAccessForLocalhost()isFullAccessForLocalhost.- Returns:
- true if full access is granted to requests from localhost, false otherwise
-
isGeneratePdfInMessageQueue
public boolean isGeneratePdfInMessageQueue()isGeneratePdfInMessageQueue.- Returns:
- true if PDF generation is handled via the message queue, false otherwise
-
isPdfApiDisabled
public boolean isPdfApiDisabled()isPdfApiDisabled.- Returns:
- true if the PDF API is disabled, false otherwise
-
isTitlePdfEnabled
public boolean isTitlePdfEnabled()isTitlePdfEnabled.- Returns:
- true if PDF download for the title page is enabled, false otherwise
-
isTocPdfEnabled
public boolean isTocPdfEnabled()isTocPdfEnabled.- Returns:
- true if PDF download for the table of contents is enabled, false otherwise
-
isMetadataPdfEnabled
public boolean isMetadataPdfEnabled()isMetadataPdfEnabled.- Returns:
- true if PDF download including metadata is enabled, false otherwise
-
isPagePdfEnabled
public boolean isPagePdfEnabled()isPagePdfEnabled.- Returns:
- true if PDF download for individual pages is enabled, false otherwise
-
isDocHierarchyPdfEnabled
public boolean isDocHierarchyPdfEnabled()isDocHierarchyPdfEnabled.- Returns:
- true if PDF download for the full document hierarchy is enabled, false otherwise
-
isTitleEpubEnabled
public boolean isTitleEpubEnabled()isTitleEpubEnabled.- Returns:
- true if EPUB download for the title is enabled, false otherwise
-
isTocEpubEnabled
public boolean isTocEpubEnabled()isTocEpubEnabled.- Returns:
- true if EPUB download for the table of contents is enabled, false otherwise
-
isMetadataEpubEnabled
public boolean isMetadataEpubEnabled()isMetadataEpubEnabled.- Returns:
- true if EPUB download including metadata is enabled, false otherwise
-
getDownloadFolder
getDownloadFolder.- Parameters:
type- download type (pdf, epub, or resource)- Returns:
- the configured download folder path for the given type, or an empty string for unknown types
-
getDownloadHeader
-
getExternalResourceUrlTemplates
-
getExternalResourceTimeBeforeDeletion
-
getRssFeedItems
public int getRssFeedItems()getRssFeedItems.- Returns:
- a int.
-
getRssTitle
getRssTitle.- Returns:
- the configured RSS feed title
-
getRssDescription
getRssDescription.- Returns:
- the configured RSS feed description
-
getRssCopyrightText
getRssCopyrightText.- Returns:
- the configured RSS feed copyright text
-
getThumbnailsWidth
public int getThumbnailsWidth()getThumbnailsWidth.- Returns:
- a int.
-
getThumbnailsHeight
public int getThumbnailsHeight()getThumbnailsHeight.- Returns:
- a int.
-
getAnchorThumbnailMode
getAnchorThumbnailMode.- Returns:
- the configured thumbnail display mode for anchor records
-
getDisplayBreadcrumbs
public boolean getDisplayBreadcrumbs()getDisplayBreadcrumbs.- Returns:
- true if breadcrumb navigation is displayed, false otherwise
-
getDisplayMetadataPageLinkBlock
public boolean getDisplayMetadataPageLinkBlock()getDisplayMetadataPageLinkBlock.- Returns:
- true if the metadata page link block is displayed, false otherwise
-
useTiles
useTiles.- Returns:
- true if tiled image loading is used in the standard image view, false otherwise
- Throws:
ViewerConfigurationException- if any.
-
useTilesFullscreen
useTilesFullscreen.- Returns:
- true if tiled image loading is used in fullscreen view, false otherwise
- Throws:
ViewerConfigurationException- if any.
-
useTiles
useTiles.- Parameters:
viewAttributes- view context attributes selecting the zoom config- Returns:
- true if tiled image loading is used in the standard image view, false otherwise
- Throws:
ViewerConfigurationException- if any.
-
showImageThumbnailGallery
public boolean showImageThumbnailGallery(ViewAttributes viewAttributes) throws ViewerConfigurationException Returns whether the thumbnail gallery should be shown in image view.- Parameters:
viewAttributes- view context attributes selecting the zoom config- Returns:
- true if thumbnail gallery should be visible
- Throws:
ViewerConfigurationException
-
getImageViewZoomScales
getImageViewZoomScales.- Returns:
- a list of configured zoom scale values for the default image view
- Throws:
ViewerConfigurationException- if any.
-
getImageViewZoomScales
getImageViewZoomScales.- Parameters:
view- page type name used to construct the ViewAttributes- Returns:
- a list of configured zoom scale values for the given view
- Throws:
ViewerConfigurationException- if any.
-
getImageViewZoomScales
public List<String> getImageViewZoomScales(ViewAttributes viewAttributes) throws ViewerConfigurationException getImageViewZoomScales.- Parameters:
viewAttributes- view context attributes selecting the zoom config- Returns:
- a list of configured zoom scale values for the given view context
- Throws:
ViewerConfigurationException- if any.
-
getTileSizes
getTileSizes.- Returns:
- the configured tile sizes for imageView as a hashmap linking each tile size to the list of resolutions to use with that size
- Throws:
ViewerConfigurationException- if any.
-
getTileSizes
public Map<Integer,List<Integer>> getTileSizes(ViewAttributes viewAttributes) throws ViewerConfigurationException getTileSizes.- Parameters:
viewAttributes- view context attributes selecting the zoom config- Returns:
- a map of tile sizes (resolution) to lists of scale factors for the given view context
- Throws:
ViewerConfigurationException- if any.
-
getZoomImageViewConfig
public org.apache.commons.configuration2.BaseHierarchicalConfiguration getZoomImageViewConfig(ViewAttributes viewAttributes) throws ViewerConfigurationException getZoomImageViewConfig.- Parameters:
viewAttributes- view context attributes selecting the matching zoom config block- Returns:
- the zoom image view configuration block matching the given view context
- Throws:
ViewerConfigurationException- if any.
-
getBreadcrumbsClipping
public int getBreadcrumbsClipping()getBreadcrumbsClipping.- Returns:
- a int.
-
getDisplayStructType
public boolean getDisplayStructType()getDisplayStructType.- Returns:
- true if the structure type should be displayed in search hit metadata, false otherwise
-
getSearchHitMetadataValueNumber
public int getSearchHitMetadataValueNumber()getSearchHitMetadataValueNumber.- Returns:
- a int.
-
getSearchHitMetadataValueLength
public int getSearchHitMetadataValueLength()getSearchHitMetadataValueLength.- Returns:
- a int.
-
isWatermarkTextConfigurationEnabled
public boolean isWatermarkTextConfigurationEnabled()- Returns:
- true if enabled or not configured; false otherwise
-
getWatermarkTextConfiguration
Returns the preference order of data to be used as an image footer text.- Returns:
- a list of data source names defining the preference order for image footer text
-
getWatermarkFormat
getWatermarkFormat.- Returns:
- the configured image format for watermarked images (e.g. "jpg")
-
getStopwordsFilePath
getStopwordsFilePath.- Returns:
- the configured path to the stopwords file
-
getPageType
Returns the locally configured page type name for URLs (e.g. "bild" instead of default "image").- Parameters:
type- page type whose configured URL name is returned- Returns:
- the locally configured URL name for the given page type, or null if not configured
-
getRecordTargetPageType
getRecordTargetPageType.- Parameters:
publicationType- publication type name to look up- Returns:
- the configured target page type name for the given publication type, or null if not configured
-
getPageTypeExitView
-
getFulltextPercentageWarningThreshold
public int getFulltextPercentageWarningThreshold()getFulltextPercentageWarningThreshold.- Returns:
- a int.
-
getFallbackDefaultLanguage
- Returns:
- the configured fallback default language code, e.g. "en"
-
getFeedbackEmailRecipients
getFeedbackEmailAddresses.- Returns:
- the list of configured feedback email recipients
-
getDefaultFeedbackEmailAddress
- Returns:
- the email address of the default feedback recipient, or a placeholder string if none is configured
-
isBookmarksEnabled
public boolean isBookmarksEnabled()isBookmarksEnabled.- Returns:
- true if the bookmarks feature is enabled, false otherwise
-
getPageLoaderThreshold
public int getPageLoaderThreshold()getPageLoaderThreshold.- Returns:
- a int.
-
getDataRepositoryCacheTTL
public int getDataRepositoryCacheTTL()Returns the TTL (in minutes) for cached data repository name lookups.- Returns:
- TTL in minutes; default is 10
-
isPreventProxyCaching
public boolean isPreventProxyCaching()isPreventProxyCaching.- Returns:
- true if proxy caching should be prevented, false otherwise
-
getDatabaseConnectionAttempts
public int getDatabaseConnectionAttempts()getDatabaseConnectionAttempts.- Returns:
- a int.
-
reviewEnabledForComments
public boolean reviewEnabledForComments()- Returns:
- true if review mode is enabled for comments, false otherwise
-
getViewerHome
getViewerHome.- Returns:
- the configured viewer home directory path
-
getWatermarkIdField
getWatermarkIdField.- Returns:
- a list of Solr field names used to select the watermark image for a record
-
getSubthemeMainTheme
getSubthemeMainTheme.- Returns:
- the configured main theme name used as the base theme for subthemes
-
getSubthemeDiscriminatorField
getSubthemeDiscriminatorField.- Returns:
- the configured Solr field name used to discriminate between subthemes
-
getTagCloudSampleSize
getTagCloudSampleSize.- Parameters:
fieldName- Solr field name to look up the sample size for- Returns:
- a int.
-
getTocVolumeSortFieldsForTemplate
getTocVolumeSortFieldsForTemplate.- Parameters:
template- template name to look up- Returns:
- a list of sort field name/order pairs configured for TOC volume sorting for the given template
-
getTocVolumeGroupFieldForTemplate
Returns the grouping Solr field for the given anchor TOC sort configuration.- Parameters:
template- template name to look up- Returns:
- the configured grouping Solr field for the given anchor TOC sort configuration
-
getDisplayTitleBreadcrumbs
public boolean getDisplayTitleBreadcrumbs()getDisplayTitleBreadcrumbs.- Returns:
- true if title breadcrumbs should be displayed, false otherwise
-
isDisplayTitlePURL
public boolean isDisplayTitlePURL()isDisplayTitlePURL.- Returns:
- true if the persistent URL should be displayed in the title bar, false otherwise
-
getTitleBreadcrumbsMaxTitleLength
public int getTitleBreadcrumbsMaxTitleLength()getTitleBreadcrumbsMaxTitleLength.- Returns:
- a int.
-
getIncludeAnchorInTitleBreadcrumbs
public boolean getIncludeAnchorInTitleBreadcrumbs()getIncludeAnchorInTitleBreadcrumbs.- Returns:
- true if the anchor record should be included in title breadcrumbs, false otherwise
-
isDisplaySearchRssLinks
public boolean isDisplaySearchRssLinks()isDisplaySearchRssLinks.- Returns:
- true if RSS links should be displayed in search results, false otherwise
-
getStartYearForTimeline
getStartYearForTimeline.- Returns:
- the configured start year for the timeline view
-
getEndYearForTimeline
getEndYearForTimeline.- Returns:
- the configured end year for the timeline view
-
getTimelineHits
getTimelineHits.- Returns:
- the configured maximum number of timeline hits to display
-
isPiwikTrackingEnabled
public boolean isPiwikTrackingEnabled()isPiwikTrackingEnabled.- Returns:
- true if Piwik/Matomo tracking is enabled, false otherwise
-
getPiwikBaseURL
getPiwikBaseURL.- Returns:
- the configured Piwik/Matomo tracking base URL
-
getPiwikSiteID
getPiwikSiteID.- Returns:
- the configured Piwik/Matomo site ID
-
isSearchSavingEnabled
public boolean isSearchSavingEnabled()isSearchSavingEnabled.- Returns:
- true if saving searches is enabled, false otherwise
-
getRecordGroupIdentifierFields
Deprecated.Group identifier fields are now detected implicitly via theGROUPID_prefix. This config is no longer needed.getRecordGroupIdentifierFields.- Returns:
- a
Listobject.
-
getAncestorIdentifierFields
getAncestorIdentifierFields.- Returns:
- a list of configured Solr field names used to identify ancestor records
-
isTocListSiblingRecords
public boolean isTocListSiblingRecords()isTocListSiblingRecords.- Returns:
- true if sibling records should be listed in the table of contents, false otherwise
-
getAncestorIdentifierFieldFilterQuery
getAncestorIdentifierFieldFilterQuery(String).- Parameters:
field- ancestor identifier field name- Returns:
- Configured filter query for the given field; empty string is none found
-
getSearchFilters
getSearchFilters.- Returns:
- a list of configured search filter definitions
-
getDefaultSearchFilter
- Returns:
- the configured default search filter, or the global "all" filter if none is marked as default
-
getWebApiFields
getWebApiFields.- Parameters:
template- template name to look up- Returns:
JsonMetadataConfiguration
-
getDbPersistenceUnit
getDbPersistenceUnit.- Returns:
- the configured JPA persistence unit name, or null if not configured
-
getTempMediaFolder
A folder for temporary storage of media files. Used by DC record creation to store uploaded files- Returns:
- "temp_media" unless otherwise configured in "tempMediaFolder"
-
getUserAvatarFolder
-
getCmsMediaDisplayWidth
public int getCmsMediaDisplayWidth()getCmsMediaDisplayWidth.- Returns:
- a int.
-
getCmsMediaDisplayHeight
public int getCmsMediaDisplayHeight()getCmsMediaDisplayHeight. If not configured, return 100.000. In this case the actual image size always depends on the requested width- Returns:
- a int.
-
isTranskribusEnabled
public boolean isTranskribusEnabled()isTranskribusEnabled.- Returns:
- true if Transkribus integration is enabled, false otherwise
-
getTranskribusUserName
getTranskribusUserName.- Returns:
- the configured Transkribus login username
-
getTranskribusPassword
getTranskribusPassword.- Returns:
- the configured Transkribus login password
-
getTranskribusDefaultCollection
getTranskribusDefaultCollection.- Returns:
- the configured default Transkribus collection name
-
getTranskribusRestApiUrl
getTranskribusRestApiUrl.- Returns:
- the configured Transkribus REST API base URL
-
getTranskribusAllowedDocumentTypes
getTranskribusAllowedDocumentTypes.- Returns:
- a list of configured document type names (docstructs) allowed for Transkribus integration
-
getTocIndentation
public int getTocIndentation()getTocIndentation.- Returns:
- a int.
-
isPageBrowseEnabled
public boolean isPageBrowseEnabled()isPageBrowseEnabled.- Returns:
- true if page-by-page browsing is enabled, false otherwise
-
getPageBrowseSteps
getPageBrowseSteps.- Returns:
- a list of configured page step sizes for page-by-page browsing navigation
-
getPageSelectDropdownDisplayMinPages
public int getPageSelectDropdownDisplayMinPages()- Returns:
- the configured minimum number of pages required to display the page select dropdown
-
getWorkflowRestUrl
getWorkflowRestUrl.- Returns:
- The url to the Goobi workflow REST API as configured in the config_viewer. The url always ends with "/"
-
getReCaptchaSiteKey
getReCaptchaSiteKey.- Returns:
- the configured reCAPTCHA site key for the frontend widget
-
isUseReCaptcha
public boolean isUseReCaptcha()isUseReCaptcha.- Returns:
- true if reCAPTCHA verification is enabled, false otherwise
-
isSearchRisExportEnabled
public boolean isSearchRisExportEnabled()isSearchRisExportEnabled.- Returns:
- true if RIS export of search results is enabled, false otherwise
-
isSearchExcelExportEnabled
public boolean isSearchExcelExportEnabled()isSearchExcelExportEnabled.- Returns:
- true if Excel export of search results is enabled, false otherwise
-
getSearchExcelExportFields
getSearchExcelExportFields.- Returns:
- a list of configured export field definitions for the Excel search export
-
getExcelDownloadTimeout
public int getExcelDownloadTimeout()getExcelDownloadTimeout.- Returns:
- a int.
-
getRestrictedImageUrls
getRestrictedImageUrls.- Returns:
- a list of URL patterns for external image content that requires access restriction
-
getIIIFLicenses
-
useExternalManifestUrls
public boolean useExternalManifestUrls() -
getExternalManifestSolrField
-
getIIIFMetadataFields
getIIIFMetadataFields.- Returns:
- a list of configured Solr field names to be included as metadata in IIIF manifests
-
getIIIFEventFields
getIIIFEventFields.- Returns:
- the list of all configured event fields for IIIF manifests All fields must contain a "/" to separate the event type and the actual field name If no "/" is present in the configured field it is prepended to the entry to indicate that this field should be taken from all events
-
getIIIFMetadataLabel
getIIIFMetadataLabel.- Parameters:
field- the value of the field- Returns:
- The attribute "label" of any children of webapi.iiif.metadataFields
-
getIIIFDiscoveryAvtivitiesPerPage
public int getIIIFDiscoveryAvtivitiesPerPage()Configured in webapi.iiif.discovery.activitiesPerPage. Default value is 100- Returns:
- The number of activities to display per collection page in the IIIF discovery api
-
getIIIFLogo
getIIIFLogo.- Returns:
- the list of configured IIIF logo URLs
-
getIIIFAttribution
getIIIFAttribution.- Returns:
- the list of configured IIIF attribution strings
-
getIIIFDescriptionFields
getIIIFDescriptionFields.- Returns:
- a list of configured Solr field names used as description in IIIF manifests
-
getIIIFLabelFields
-
getIIIFTranslationLocales
-
getIIIFRightsField
- Returns:
- The SOLR field containing a rights url for a IIIF3 manifest if one is configured
-
getIIIFRequiredValue
UsesgetIIIFAttribution()as fallback.- Returns:
- the message key to use for the IIIF3 requiredStatement value if the statement should be added to manifests.
-
getIIIFRequiredLabel
- Returns:
- the message key to use for the IIIF3 requiredStatement label. Default is "Attribution"
-
getIIIFProvider
- Returns:
- The list of configurations for IIIF3 providers
- Throws:
PresentationException- if a provider or a homepage configuration misses the url or label element
-
getIIIFProvider
public List<ProviderConfiguration> getIIIFProvider(VariableReplacer vr) throws PresentationException - Parameters:
vr-VariableReplacer- Returns:
- The list of configurations for IIIF3 providers
- Throws:
PresentationException- if a provider or a homepage configuration misses the url or label element
-
isVisibleIIIFRenderingPDF
public boolean isVisibleIIIFRenderingPDF()- Returns:
- true if the PDF rendering link is visible in IIIF manifests, false otherwise
-
isVisibleIIIFRenderingViewer
public boolean isVisibleIIIFRenderingViewer()- Returns:
- true if the viewer rendering link is visible in IIIF manifests, false otherwise
-
getLabelIIIFRenderingPDF
-
getLabelIIIFRenderingViewer
-
isVisibleIIIFRenderingPlaintext
public boolean isVisibleIIIFRenderingPlaintext()- Returns:
- true if the plain text rendering link is visible in IIIF manifests, false otherwise
-
isVisibleIIIFRenderingAlto
public boolean isVisibleIIIFRenderingAlto()- Returns:
- true if the ALTO rendering link is visible in IIIF manifests, false otherwise
-
getLabelIIIFRenderingPlaintext
-
getLabelIIIFRenderingAlto
-
isVisibleIIIFSeeAlsoMets
public boolean isVisibleIIIFSeeAlsoMets() -
getLabelIIIFSeeAlsoMets
-
isVisibleIIIFSeeAlsoLido
public boolean isVisibleIIIFSeeAlsoLido() -
getLabelIIIFSeeAlsoLido
-
getIIIFSeeAlsoMetadataConfigurations
-
getSitelinksField
getSitelinksField.- Returns:
- the configured Solr field name used as the sitelinks field
-
isSitelinksEnabled
public boolean isSitelinksEnabled()- Returns:
- true if sitelinks are enabled, false otherwise
-
getSitelinksFilterQuery
getSitelinksFilterQuery.- Returns:
- the configured Solr filter query for sitelinks
-
getConfiguredCollections
getConfiguredCollections.- Returns:
- a list of configured collection Solr field names
-
getWebApiToken
getWebApiToken.- Returns:
- the configured web API authorization token
-
isAllowRedirectCollectionToWork
public boolean isAllowRedirectCollectionToWork()isAllowRedirectCollectionToWork.- Returns:
- true if opening a collection containing only a single work should redirect to that work
-
getTwitterUserName
getTwitterUserName.- Returns:
- the configured Twitter username for embedding, or null if not configured
-
getLimitImageHeightUpperRatioThreshold
public float getLimitImageHeightUpperRatioThreshold()getLimitImageHeightUpperRatioThreshold.- Returns:
- a float.
-
getLimitImageHeightLowerRatioThreshold
public float getLimitImageHeightLowerRatioThreshold()getLimitImageHeightLowerRatioThreshold.- Returns:
- a float.
-
isLimitImageHeight
public boolean isLimitImageHeight()isLimitImageHeight.- Returns:
- true if image height should be limited based on the configured ratio thresholds, false otherwise
-
isAddCORSHeader
public boolean isAddCORSHeader()isAddCORSHeader.- Returns:
- true if CORS headers should be added to API responses, false otherwise
-
getCORSHeaderValue
Gets the value configured in webapi.cors. Default is "*"- Returns:
- the configured CORS header value for API responses
-
isDiscloseImageContentLocation
public boolean isDiscloseImageContentLocation()- Returns:
- true if the IIIF image content location should be disclosed in responses, false otherwise
-
getCopyrightIndicatorStyle
- Returns:
- the configured display style of the copyright indicator widget
-
getCopyrightIndicatorStatusField
- Returns:
- the configured Solr field name used for the copyright indicator status
-
getCopyrightIndicatorStatusForValue
- Parameters:
value- field value to match against configured entries- Returns:
- the configured copyright indicator status matching the given field value, or null if not found
-
getCopyrightIndicatorLicenseForValue
- Parameters:
value- field value to match against configured entries- Returns:
- the configured copyright indicator license matching the given field value, or null if not found
-
getCopyrightIndicatorLicenseField
- Returns:
- the configured Solr field name used for the copyright indicator license
-
isDisplayAnchorLabelInTitleBar
-
getAnchorLabelInTitleBarPrefix
-
getAnchorLabelInTitleBarSuffix
-
getMapBoxToken
-
getMapBoxUser
-
getMapBoxStyleId
-
isDisplayAddressSearchInMap
public boolean isDisplayAddressSearchInMap() -
getGeoMapMarker
- Parameters:
name- geo map marker name to look up- Returns:
- the configured GeoMapMarker with the given name, or null if not found
-
getGeoMapMarkerFields
- Returns:
- a list of solr field names containing GeoJson data used to create markers in maps
-
useHeatmapForCMSMaps
public boolean useHeatmapForCMSMaps() -
useHeatmapForMapSearch
public boolean useHeatmapForMapSearch() -
useHeatmapForFacetting
public boolean useHeatmapForFacetting() -
getMarkerForMapSearch
-
getMarkerForFacetting
-
getSelectionColorForMapSearch
-
getSelectionColorForFacetting
-
includeCoordinateFieldsFromMetadataDocs
public boolean includeCoordinateFieldsFromMetadataDocs() -
getGeoMapMarkers
-
getRecordGeomapMarker
-
readGeoMapMarker
public static GeoMapMarker readGeoMapMarker(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) - Parameters:
config- configuration node for the marker element- Returns:
- the GeoMapMarker parsed from the given configuration node, or an empty default marker if config is null
-
getLicenseDescriptions
- Returns:
- the list of configured license descriptions
-
getArchivesLazyLoadingThreshold
public int getArchivesLazyLoadingThreshold()- Returns:
- the configured lazy loading threshold for archive tree nodes
-
isExpandArchiveEntryOnSelection
public boolean isExpandArchiveEntryOnSelection() -
getArchiveNodeTypes
-
getDefaultArchiveNodeType
-
isDisplayUserGeneratedContentBelowImage
public boolean isDisplayUserGeneratedContentBelowImage()- Returns:
- true if user-generated content annotations should be displayed below the image, false otherwise
-
getIIIFVersionToUse
config:<iiif use-version="3.0"></iiif>.- Returns:
- the configured IIIF API version to use for manifests
-
getTranslationGroups
- Returns:
- the list of configured translation groups
-
isDisplayAnnotationTextInImage
public boolean isDisplayAnnotationTextInImage()- Returns:
- true if crowdsourcing annotation text should be displayed in the image view, false otherwise
-
isUseFacetsAsExpandQuery
public boolean isUseFacetsAsExpandQuery()- Returns:
- true if active facets should be used as expand queries in search, false otherwise
-
getAllowedFacetsForExpandQuery
- Returns:
- the list of configured facet query values allowed as expand queries
-
isSearchResultGroupsEnabled
public boolean isSearchResultGroupsEnabled()- Returns:
- true if search result groups are enabled, false otherwise
-
getSearchResultGroups
- Returns:
- the list of configured search result groups
-
isContentUploadEnabled
public boolean isContentUploadEnabled()- Returns:
- true if content upload is enabled, false otherwise
-
getContentUploadToken
- Returns:
- the configured authentication token for content upload
-
getContentUploadDocstruct
- Returns:
- the configured docstruct type used for newly uploaded content records
-
getContentUploadTemplateName
- Returns:
- the configured Goobi workflow process template name used for content upload
-
getContentUploadRejectionPropertyName
- Returns:
- the configured Goobi workflow process property name indicating that an upload was rejected
-
getContentUploadRejectionReasonPropertyName
- Returns:
- the configured Goobi workflow process property name containing the rejection reason for an upload
-
getCrowdsourcingCampaignItemOrder
-
getGeomapAnnotationZoom
public int getGeomapAnnotationZoom() -
getCrowdsourcingCampaignGeomapZoom
public int getCrowdsourcingCampaignGeomapZoom() -
getCrowdsourcingCampaignGeomapLngLat
-
getCrowdsourcingCampaignGeomapTilesource
-
isStatisticsEnabled
public boolean isStatisticsEnabled() -
getCrawlerDetectionRegex
-
isConfigEditorEnabled
public boolean isConfigEditorEnabled()- Returns:
- true if the in-application configuration file editor is enabled, false otherwise
-
getConfigEditorBackupFiles
public int getConfigEditorBackupFiles()- Returns:
- the configured number of backup files to keep for edited configuration files
-
getConfigEditorDirectories
- Returns:
- the list of configured directories accessible through the configuration file editor
-
isProxyEnabled
public boolean isProxyEnabled()- Returns:
- true if enabled; false otherwise
-
getProxyUrl
- Returns:
- the configured HTTP proxy URL
-
getProxyPort
public int getProxyPort()- Returns:
- Configured port number; 0 if none found
-
isHostProxyWhitelisted
- Parameters:
url- URL whose host is checked against the proxy whitelist- Returns:
- true if the host of the given URL is on the configured proxy whitelist, false otherwise
- Throws:
MalformedURLExceptionURISyntaxException
-
getProxyWhitelist
- Returns:
- the list of configured host names that bypass the proxy
-
getHttpHeaderLoginRedirectWhitelist
- Returns:
- the list of configured host names allowed as redirect targets after HTTP header login
-
isStartInternalMessageBroker
public boolean isStartInternalMessageBroker() -
getNumberOfParallelMessages
public int getNumberOfParallelMessages() -
getActiveMQMessagePurgeInterval
public int getActiveMQMessagePurgeInterval() -
getQuartzSchedulerCronExpression
-
getQuartzSchedulerCronExpression
-
isDeveloperPageActive
public boolean isDeveloperPageActive() -
getDeveloperScriptPath
-
isLanguageVersionOtherThan
- Parameters:
field- Solr field name to check for language suffixlanguage- language code to compare against the field suffix- Returns:
- true if the field has a language suffix (_LANG_XX) that does not match the given language, false otherwise
-
getStringFormat
-
getThemePullScriptPath
-
isPullThemeEnabled
public boolean isPullThemeEnabled()- Returns:
- boolean
-
getCreateDeveloperPackageScriptPath
-
getMediaTypeHandling
-
getMediaTypeRedirectUrl
-
getSearchHitStyleClass
-
getRecordViewStyleClass
-
getDownloadPdfTimeToLive
-
DownloadBean