Class Configuration
Configuration class.
-
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.Returns the list of structure elements allowed to be shown in calendar viewgetCmdiFolder.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) Get all configured sortOrders for collections in the given field, mapped against regex which should match the collection(s) which subcollections should be sorted according the sortOrdergetCollectionSplittingChar(String field) getCollectionSplittingChar.intgetConfigLocalPath.getConfiguredCollections.Gets the value configured in webapi.cors.intintgetDatabaseConnectionAttempts.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.getDownloadUrl.getEndYearForTimeline.getEseUrl.intgetExcelDownloadTimeout.getFacetFieldDescriptionKey(String facetField) getFacetFieldDescriptionKey.getFacetFieldStyle(String facetField) getFacetFieldType(String facetField) getFeedbackEmailAddresses.intgetFooterHeight.intgetFooterHeight(PageType view, String imageMimeType) getFooterHeight.intgetFullscreenFooterHeight.getFulltextCrowdsourcingFolder.getFulltextFolder.intgetFulltextFragmentLength.intgetFulltextPercentageWarningThreshold.getGeoFacetFieldPredicate(String facetField) getGeoFacetFields.intgetGeoMapFeatureConfiguration(String option, String template) getGeomapFeatureConfigurations(String option) List<jakarta.faces.model.SelectItem> 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(PageType view, String imageMimeType) 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) getMarcUrl.getMediaFolder.getMediaTypeHandling(String mimeType) getMediaTypeRedirectUrl(String mimeType) getMetadataConfigurationForTemplate(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) getRecordGroupIdentifierFields.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.Deprecated.jobs are no longs handled via TaskManager but via queuesDeprecated.currently unused since download jobs are handled via message queuesgetTeiFolder.getTempFolder.A folder for temporary storage of media files.getTheme()getTheme.getThemeRootPath.intThe maximal image size retrievable with only the permission to view thumbnailsintgetThumbnailsHeight.intgetThumbnailsWidth.getTileSizes.getTileSizes(PageType view, String imageMimeType) getTileSizes.getTimelineHits.intgetTitleBreadcrumbsMaxTitleLength.intReturns number of elements displayed per paginator page in a table of contents for anchors and groups.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 imagesgetUrnResolverUrl.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(PageType pageType, String imageMimeType) getZoomImageViewConfig.booleanbooleanisAddCollectionHierarchyToBreadcrumbs.booleanisAddCORSHeader.booleanisAdvancedSearchEnabled.booleanisAdvancedSearchFieldAllowMultipleItems(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldAllowMultipleItems.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(PageType pageType, String imageMimeType) Return true if double page navigation should be used per default for the givenPageTypeandImageType.booleanisDoublePageNavigationEnabled(PageType pageType, String imageMimeType) 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(PageType pageType, String imageMimeType) Return true if sequence page navigation is enabled for the givenPageTypeandImageType.booleanisShowOpenIdConnect.booleanisShowSearchHitsInGeoFacetMap(String facetField) booleanisSidebarRssFeedWidgetEnabled.booleanisSidebarTocTreeView.booleanThis method checks whether the TOC widget is enabled.booleanisSidebarViewsWidgetCalendarViewLinkVisible.booleanisSidebarViewsWidgetFulltextLinkVisible.booleanisSidebarViewsWidgetMetadataViewLinkVisible.booleanisSidebarViewsWidgetObjectViewLinkVisible.booleanisSidebarViewsWidgetOpacLinkVisible.booleanisSidebarViewsWidgetThumbsViewLinkVisible.booleanThis method checks 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(PageType view, String imageMimeType) whether to show a navigator element in the openseadragon viewebooleanshowImageThumbnailGallery(PageType view, String imageMimeType) booleanbooleanbooleanbooleanbooleanuseTiles()useTiles.booleanuseTiles.booleanuseTilesFullscreen.Methods inherited from class io.goobi.viewer.controller.AbstractConfiguration
getConfig, getConfigLocal, 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
Constructor for Configuration.
- Parameters:
configFilePath- aStringobject.
-
-
Method Details
-
loadStopwords
loadStopwords.
- Parameters:
stopwordsFilePath- aStringobject.- Returns:
- a
Setobject. - Throws:
IOException- if any.
-
getStopwords
Returns the stopwords loading during initialization.- Returns:
- a
Setobject.
-
getConfigLocalPath
getConfigLocalPath.
- Returns:
- the path to the local config_viewer.xml file.
-
getLocalRessourceBundleFile
getLocalRessourceBundleFile.
- Returns:
- a
Stringobject.
-
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:
- a boolean.
-
isRememberImageRotation
public boolean isRememberImageRotation()isRememberImageRotation.
- Returns:
- a boolean.
-
getDfgViewerUrl
getDfgViewerUrl.
- Returns:
- a
Stringobject.
-
getDfgViewerSourcefileField
- Returns:
- Configured value
-
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-template-fallbackToDefaultTemplate-topstructValueFallbackDefaultValue-- Returns:
- List of metadata configurations
-
getMetadataTemplates
- Parameters:
type-- Returns:
- Map<String, List<Metadata>>
-
getMetadataTemplates
public Map<String,List<Metadata>> getMetadataTemplates(String type, boolean fallbackToDefaultTemplate, boolean topstructValueFallbackDefaultValue) - Parameters:
type-fallbackToDefaultTemplate-topstructValueFallbackDefaultValue-- Returns:
- Map<String, List<Metadata>>
-
getSearchHitMetadataForTemplate
Returns the list of configured metadata for search hit elements. -
getPageMetadataForTemplate
Returns the list of configured metadata for pages. -
getHighlightMetadataForTemplate
Returns the list of configured metadata forHighlights which reference a record. -
getMetadataViews
- Returns:
- Configured values
-
getMainMetadataForTemplate
- Parameters:
index-template-- 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.
-
getGeoMapFeatureConfiguration
-
getMetadataListForGeomapMarkerConfig
-
getMetadataListForGeomapItemConfig
-
getGeomapFeatureConfigurations
-
getGeomapItemConfigurations
-
getGeomapFeatureTitleOptions
- Returns:
- Configured values
-
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.
-
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:
- Configured values
-
getSidebarWidgetCitationCitationRecommendationDocstructMapping
- Returns:
- Map containing mappings DOCSTRCT -> citeproc type
-
isDisplaySidebarWidgetCitationCitationLinks
public boolean isDisplaySidebarWidgetCitationCitationLinks()- Returns:
- Boolean value
-
getSidebarWidgetCitationCitationLinks
- Returns:
- Configured values
-
getSidebarWidgetDownloadsPageDownloadOptions
Returns a list of configured page download options.- Returns:
- List of configured
DownloadOptionitems
-
isDisplayWidgetDownloadsDownloadOptions
public boolean isDisplayWidgetDownloadsDownloadOptions()- Returns:
- Configured value
-
isDisplaySidebarWidgetDownloadsPdfPageRange
public boolean isDisplaySidebarWidgetDownloadsPdfPageRange()- Returns:
- Configured value; otherwise false
-
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
-
getCalendarDocStructTypes
Returns the list of structure elements allowed to be shown in calendar view- Returns:
- a
Listobject.
-
isBrowsingMenuEnabled
public boolean isBrowsingMenuEnabled()isBrowsingMenuEnabled.
- Returns:
- a boolean.
-
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
Listobject.
-
getBrowsingMenuSortingIgnoreLeadingChars
- Returns:
- Configured value
-
getDocstrctWhitelistFilterQuery
getDocstrctWhitelistFilterQuery.
- Returns:
- a
Stringobject.
-
getCollectionSplittingChar
getCollectionSplittingChar.
-
getConfiguredCollectionFields
- Returns:
- Configured values
-
getCollectionSortOrders
Get all configured sortOrders for collections in the given field, mapped against regex which should match the collection(s) which subcollections should be sorted according 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.
-
getCollectionBlacklist
Returns collection names to be omitted from search results, listings etc. -
getCollectionDefaultSortFields
Returns the index field by which records in the collection with the given name are to be sorted in a listing. -
getCollectionDisplayNumberOfVolumesLevel
getCollectionDisplayNumberOfVolumesLevel.
- Parameters:
field- aStringobject.- Returns:
- a int.
-
getCollectionDisplayDepthForSearch
getCollectionDisplayDepthForSearch.
- Parameters:
field- aStringobject.- Returns:
- a int.
-
getCollectionHierarchyField
getCollectionHierarchyField.
- Returns:
- a
Stringobject.
-
isAddCollectionHierarchyToBreadcrumbs
isAddCollectionHierarchyToBreadcrumbs.
- Parameters:
field- aStringobject.- Returns:
- a boolean.
-
getSolrUrl
getSolrUrl.
- Returns:
- a
Stringobject.
-
getDownloadUrl
getDownloadUrl.
- Returns:
- a
Stringobject.
-
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:
- Configured value
-
isUseIIIFApiUrlForCmsMediaUrls
public boolean isUseIIIFApiUrlForCmsMediaUrls()- Returns:
- Configured value
-
getSourceFileUrl
getSourceFileUrl.
- Returns:
- a
Stringobject.
-
getMarcUrl
getMarcUrl.
- Returns:
- a
Stringobject.
-
getDcUrl
getDcUrl.
- Returns:
- a
Stringobject.
-
getEseUrl
getEseUrl.
- Returns:
- a
Stringobject.
-
getSearchHitsPerPageValues
getSearchHitsPerPageValues.
- Returns:
- List of configured values
-
isDisplaySearchHitNumbers
public boolean isDisplaySearchHitNumbers()- Returns:
- Configured value; default value if none found
-
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:
- a boolean.
-
getAdvancedSearchTemplateNames
- Returns:
- List of configured template names
-
getAdvancedSearchDefaultTemplateName
- Returns:
- _DEFAULT or the name of the first template in the list
-
getAdvancedSearchTemplateQuery
- Parameters:
template-- 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-fallbackToDefaultTemplate-language-- Returns:
- a
Listobject.
-
isDisplayAdditionalMetadataEnabled
public boolean isDisplayAdditionalMetadataEnabled()isDisplayAdditionalMetadataEnabled.
- Returns:
- a boolean.
-
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- aStringobject.template-fallbackToDefaultTemplate-- Returns:
- a boolean.
-
isAdvancedSearchFieldRange
public boolean isAdvancedSearchFieldRange(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldRange.
- Parameters:
field- aStringobject.template-fallbackToDefaultTemplate-- Returns:
- a boolean.
-
isAdvancedSearchFieldAllowMultipleItems
public boolean isAdvancedSearchFieldAllowMultipleItems(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldAllowMultipleItems.
- Parameters:
field- aStringobject.template-fallbackToDefaultTemplate-- Returns:
- a boolean.
-
isAdvancedSearchFieldUntokenizeForPhraseSearch
public boolean isAdvancedSearchFieldUntokenizeForPhraseSearch(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldUntokenizeForPhraseSearch.
- Parameters:
field- aStringobject.template-fallbackToDefaultTemplate-- Returns:
- a boolean.
-
getAdvancedSearchFieldDisplaySelectItemsThreshold
public int getAdvancedSearchFieldDisplaySelectItemsThreshold(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field-template-fallbackToDefaultTemplate-- Returns:
- Configured value
-
getAdvancedSearchFieldSelectType
public String getAdvancedSearchFieldSelectType(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field-template-fallbackToDefaultTemplate-- Returns:
- Configured value
-
getAdvancedSearchFieldSeparatorLabel
public String getAdvancedSearchFieldSeparatorLabel(String field, String template, boolean fallbackToDefaultTemplate) isAdvancedSearchFieldHierarchical.
- Parameters:
field- aStringobject.template-fallbackToDefaultTemplate-- Returns:
- Label attribute value for the given field name
-
getAdvancedSearchFieldReplaceRegex
public String getAdvancedSearchFieldReplaceRegex(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field-template-fallbackToDefaultTemplate-- Returns:
- Configured value; null if none found
-
getAdvancedSearchFieldReplaceWith
public String getAdvancedSearchFieldReplaceWith(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field-template-fallbackToDefaultTemplate-- Returns:
- Configured value; null if none found
-
getAdvancedSearchFieldDefaultOperator
public String getAdvancedSearchFieldDefaultOperator(String field, String template, boolean fallbackToDefaultTemplate) - Parameters:
field-template-fallbackToDefaultTemplate-- Returns:
- Configured value; null if none found
-
getAdvancedSearchTemplateFirstLineDefaultOperator
- Parameters:
template-- Returns:
- Configured value; null if none found
-
isTimelineSearchEnabled
public boolean isTimelineSearchEnabled()isTimelineSearchEnabled.
- Returns:
- a boolean.
-
isCalendarSearchEnabled
public boolean isCalendarSearchEnabled()isCalendarSearchEnabled.
- Returns:
- a boolean.
-
getStaticQuerySuffix
getStaticQuerySuffix.
- Returns:
- a
Stringobject.
-
getPreviousVersionIdentifierField
getPreviousVersionIdentifierField.
- Returns:
- a
Stringobject.
-
getNextVersionIdentifierField
getNextVersionIdentifierField.
- Returns:
- a
Stringobject.
-
getVersionLabelField
getVersionLabelField.
- Returns:
- a
Stringobject.
-
getIndexedMetsFolder
getIndexedMetsFolder.
- Returns:
- a
Stringobject.
-
getIndexedLidoFolder
getIndexedLidoFolder.
- Returns:
- a
Stringobject.
-
getIndexedEadFolder
getIndexedEadFolder.
- Returns:
- a
Stringobject.
-
getIndexedDenkxwebFolder
getIndexedDenkxwebFolder.
- Returns:
- a
Stringobject.
-
getIndexedDublinCoreFolder
getIndexedDublinCoreFolder.
- Returns:
- a
Stringobject.
-
getPageSelectionFormat
getPageSelectionFormat.
- Returns:
- a
Stringobject.
-
getMediaFolder
getMediaFolder.
- Returns:
- a
Stringobject.
-
getPdfFolder
getPdfFolder.
- Returns:
- a
Stringobject.
-
getVocabulariesFolder
getVocabulariesFolder.
- Returns:
- a
Stringobject.
-
getOrigContentFolder
getOrigContentFolder.
- Returns:
- a
Stringobject.
-
getCmsMediaFolder
getCmsMediaFolder.
- Returns:
- a
Stringobject.
-
getCmsTextFolder
getCmsTextFolder.
- Returns:
- a
Stringobject.
-
getAltoFolder
getAltoFolder.
- Returns:
- a
Stringobject.
-
getAltoCrowdsourcingFolder
getAltoCrowdsourcingFolder.
- Returns:
- a
Stringobject.
-
getAbbyyFolder
getAbbyyFolder.
- Returns:
- a
Stringobject.
-
getFulltextFolder
getFulltextFolder.
- Returns:
- a
Stringobject.
-
getFulltextCrowdsourcingFolder
getFulltextCrowdsourcingFolder.
- Returns:
- a
Stringobject.
-
getTeiFolder
getTeiFolder.
- Returns:
- a
Stringobject.
-
getCmdiFolder
getCmdiFolder.
- Returns:
- a
Stringobject.
-
getAnnotationFolder
getAnnotationFolder.
- Returns:
- a
Stringobject.
-
getHotfolder
getHotfolder.
- Returns:
- a
Stringobject.
-
getTempFolder
getTempFolder.
- Returns:
- a
Stringobject.
-
getUrnResolverFields
- Returns:
- Configured values
-
isUrnDoRedirect
public boolean isUrnDoRedirect()isUrnDoRedirect.
- Returns:
- a boolean.
-
isUserRegistrationEnabled
public boolean isUserRegistrationEnabled()isUserRegistrationEnabled.
- Returns:
- a boolean.
-
getSecurityQuestions
- Returns:
- Configured values
-
isShowOpenIdConnect
public boolean isShowOpenIdConnect()isShowOpenIdConnect.
- Returns:
- a boolean.
-
getAuthenticationProviders
getAuthenticationProviders.
- Returns:
- a
Listobject.
-
getSmtpServer
getSmtpServer.
- Returns:
- a
Stringobject.
-
getSmtpUser
getSmtpUser.
- Returns:
- a
Stringobject.
-
getSmtpPassword
getSmtpPassword.
- Returns:
- a
Stringobject.
-
getSmtpSenderAddress
getSmtpSenderAddress.
- Returns:
- a
Stringobject.
-
getSmtpSenderName
getSmtpSenderName.
- Returns:
- a
Stringobject.
-
getSmtpSecurity
getSmtpSecurity.
- Returns:
- a
Stringobject.
-
getSmtpPort
public int getSmtpPort()- Returns:
- Configured SMTP port number; -1 if not configured
-
isDisplayCollectionBrowsing
public boolean isDisplayCollectionBrowsing()isDisplayCollectionBrowsing.
- Returns:
- a boolean.
-
isDisplayStatistics
public boolean isDisplayStatistics()isDisplayStatistics.
- Returns:
- a boolean.
-
isDisplayTimeMatrix
public boolean isDisplayTimeMatrix()isDisplayTimeMatrix.
- Returns:
- a boolean.
-
isDisplayCrowdsourcingModuleLinks
public boolean isDisplayCrowdsourcingModuleLinks()isDisplayCrowdsourcingModuleLinks.
- Returns:
- a boolean.
-
getTheme
getTheme.
- Returns:
- a
Stringobject.
-
getThemeRootPath
getThemeRootPath.
- Returns:
- a
Stringobject.
-
getName
getName.
- Returns:
- a
Stringobject.
-
getDescription
getDescription.
- Returns:
- a
Stringobject.
-
isDisplayTagCloudStartpage
public boolean isDisplayTagCloudStartpage()- Returns:
- a boolean.
-
isFoldout
isFoldout.
- Parameters:
sidebarElement- aStringobject.- Returns:
- a boolean.
-
isSidebarViewsWidgetObjectViewLinkVisible
public boolean isSidebarViewsWidgetObjectViewLinkVisible()isSidebarViewsWidgetObjectViewLinkVisible.
- Returns:
- a boolean.
-
isSidebarViewsWidgetCalendarViewLinkVisible
public boolean isSidebarViewsWidgetCalendarViewLinkVisible()isSidebarViewsWidgetCalendarViewLinkVisible.
- Returns:
- a boolean.
-
isSidebarViewsWidgetTocViewLinkVisible
public boolean isSidebarViewsWidgetTocViewLinkVisible()This method checks whether the TOC link in the sidebar views widget is enabled. To check whether the sidebar TOC widget is enabled, use
isSidebarTocVisible().- Returns:
- a boolean.
-
isSidebarViewsWidgetThumbsViewLinkVisible
public boolean isSidebarViewsWidgetThumbsViewLinkVisible()isSidebarViewsWidgetThumbsViewLinkVisible.
- Returns:
- a boolean.
-
isSidebarViewsWidgetMetadataViewLinkVisible
public boolean isSidebarViewsWidgetMetadataViewLinkVisible()isSidebarViewsWidgetMetadataViewLinkVisible.
- Returns:
- a boolean.
-
isSidebarViewsWidgetFulltextLinkVisible
public boolean isSidebarViewsWidgetFulltextLinkVisible()isSidebarViewsWidgetFulltextLinkVisible.
- Returns:
- a boolean.
-
isSidebarViewsWidgetOpacLinkVisible
public boolean isSidebarViewsWidgetOpacLinkVisible()isSidebarViewsWidgetOpacLinkVisible.
- Returns:
- a boolean.
-
isSearchInItemOnlyIfFullTextAvailable
public boolean isSearchInItemOnlyIfFullTextAvailable()isSearchInItemOnlyIfFullTextAvailable.
- Returns:
- a boolean.
-
isSidebarTocWidgetVisibleInFullscreen
public boolean isSidebarTocWidgetVisibleInFullscreen()This method checks whether the TOC widget is enabled. To check whether the sidebar TOC link in the views widget is enabled, use
isSidebarTocVisible().- Returns:
- a boolean.
-
getSidebarTocPageNumbersVisible
public boolean getSidebarTocPageNumbersVisible()getSidebarTocPageNumbersVisible.
- Returns:
- a boolean.
-
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:
- a boolean.
-
isTocTreeView
isTocTreeView.
- Parameters:
docStructType- aStringobject.- Returns:
- a boolean.
-
isDisplaySidebarBrowsingTerms
public boolean isDisplaySidebarBrowsingTerms()isDisplaySidebarBrowsingTerms.
- Returns:
- a boolean.
-
isSidebarRssFeedWidgetEnabled
public boolean isSidebarRssFeedWidgetEnabled()isSidebarRssFeedWidgetEnabled.
- Returns:
- a boolean.
-
getAllFacetFields
Returns a list containing all simple facet fields.
- Returns:
- a
Listobject.
-
getRegularFacetFields
- Returns:
- Configured values
-
getBooleanFacetFields
getBooleanFacetFields.
- Returns:
- a
Listobject.
-
getHierarchicalFacetFields
getHierarchicalFacetFields.
- Returns:
- a
Listobject.
-
getRangeFacetFields
getRangeFacetFields.
- Returns:
- List of facet fields to be used as range values
-
getRangeFacetFieldMinValue
- Parameters:
facetField-- Returns:
- Configured value
-
getRangeFacetFieldMaxValue
- Parameters:
facetField-- Returns:
- Configured value
-
getFacetFieldStyle
- Parameters:
facetField-- Returns:
- Configured value
-
getGeoFacetFields
getGeoFacetFields.
- Returns:
- a
Listobject.
-
getGeoFacetFieldPredicate
- Parameters:
facetField-- Returns:
- Configured value
-
isShowSearchHitsInGeoFacetMap
- Parameters:
facetField-- Returns:
- Configured value
-
getInitialFacetElementNumber
getInitialFacetElementNumber.
- Parameters:
facetField- aStringobject.- Returns:
- Number of initial facet values
-
getFacetFieldDescriptionKey
getFacetFieldDescriptionKey.
- Parameters:
facetField- aStringobject.- Returns:
- Optional description message key
-
getSortOrder
getSortOrder.
-
getPriorityValuesForFacetField
Returns a list of values to prioritize for the given facet field.- Parameters:
field- aStringobject.- Returns:
- List of priority values; empty list if none found for the given field
-
getLabelFieldForFacetField
- Parameters:
facetField-- Returns:
- Configured value
-
isTranslateFacetFieldLabels
- Parameters:
facetField-- Returns:
- Configured value
-
getGroupToLengthForFacetField
- Parameters:
facetField-- Returns:
- Configured value
-
isAlwaysApplyFacetFieldToUnfilteredHits
- Parameters:
facetField-- Returns:
- Configured value
-
isFacetFieldSkipInWidget
- Parameters:
facetField-- Returns:
- Configured value
-
isFacetFieldDisplayValueFilter
- Parameters:
facetField-- Returns:
- Configured value
-
getFacetFieldType
- Parameters:
facetField-- Returns:
- Configured value
-
getMultiValueOperatorForField
- Parameters:
facetField-- Returns:
- Configured value
-
isSortingEnabled
public boolean isSortingEnabled()isSortingEnabled.
- Returns:
- a boolean.
-
getDefaultSortField
getDefaultSortField.
- Parameters:
language-- Returns:
- a
Stringobject.
-
getSortFields
getSortFields.
- Returns:
- a
Listobject.
-
getSearchSortingOptions
- Parameters:
language-- Returns:
- List of
SearchSortingOptions from configured sorting fields
-
getStaticSortFields
getStaticSortFields.
- Returns:
- a
Listobject.
-
getSearchSortingKeyAscending
- Parameters:
field-- Returns:
- Configured value
-
getSearchSortingKeyDescending
- Parameters:
field-- Returns:
- Configured value
-
getUrnResolverUrl
getUrnResolverUrl.
- Returns:
- a
Stringobject.
-
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:
- a boolean.
-
isGeneratePdfInMessageQueue
public boolean isGeneratePdfInMessageQueue()isGeneratePdfInMessageQueue.
- Returns:
- a boolean.
-
isPdfApiDisabled
public boolean isPdfApiDisabled()isPdfApiDisabled.
- Returns:
- a boolean.
-
isTitlePdfEnabled
public boolean isTitlePdfEnabled()isTitlePdfEnabled.
- Returns:
- a boolean.
-
isTocPdfEnabled
public boolean isTocPdfEnabled()isTocPdfEnabled.
- Returns:
- a boolean.
-
isMetadataPdfEnabled
public boolean isMetadataPdfEnabled()isMetadataPdfEnabled.
- Returns:
- a boolean.
-
isPagePdfEnabled
public boolean isPagePdfEnabled()isPagePdfEnabled.
- Returns:
- a boolean.
-
isDocHierarchyPdfEnabled
public boolean isDocHierarchyPdfEnabled()isDocHierarchyPdfEnabled.
- Returns:
- a boolean.
-
isTitleEpubEnabled
public boolean isTitleEpubEnabled()isTitleEpubEnabled.
- Returns:
- a boolean.
-
isTocEpubEnabled
public boolean isTocEpubEnabled()isTocEpubEnabled.
- Returns:
- a boolean.
-
isMetadataEpubEnabled
public boolean isMetadataEpubEnabled()isMetadataEpubEnabled.
- Returns:
- a boolean.
-
getDownloadFolder
getDownloadFolder.
-
getExternalResourceUrlTemplates
-
getExternalResourceTimeBeforeDeletion
-
getRssFeedItems
public int getRssFeedItems()getRssFeedItems.
- Returns:
- a int.
-
getRssTitle
getRssTitle.
- Returns:
- a
Stringobject.
-
getRssDescription
getRssDescription.
- Returns:
- a
Stringobject.
-
getRssCopyrightText
getRssCopyrightText.
- Returns:
- a
Stringobject.
-
getThumbnailsWidth
public int getThumbnailsWidth()getThumbnailsWidth.
- Returns:
- a int.
-
getThumbnailsHeight
public int getThumbnailsHeight()getThumbnailsHeight.
- Returns:
- a int.
-
getAnchorThumbnailMode
getAnchorThumbnailMode.
- Returns:
- a
Stringobject.
-
getDisplayBreadcrumbs
public boolean getDisplayBreadcrumbs()getDisplayBreadcrumbs.
- Returns:
- a boolean.
-
getDisplayMetadataPageLinkBlock
public boolean getDisplayMetadataPageLinkBlock()getDisplayMetadataPageLinkBlock.
- Returns:
- a boolean.
-
useTiles
useTiles.
- Returns:
- a boolean.
- Throws:
ViewerConfigurationException- if any.
-
useTilesFullscreen
useTilesFullscreen.
- Returns:
- a boolean.
- Throws:
ViewerConfigurationException- if any.
-
useTiles
useTiles.
- Parameters:
view- aPageTypeobject.imageMimeType- the mimetype to which the configuration should apply.- Returns:
- a boolean.
- Throws:
ViewerConfigurationException- if any.
-
showImageThumbnailGallery
public boolean showImageThumbnailGallery(PageType view, String imageMimeType) throws ViewerConfigurationException - Throws:
ViewerConfigurationException
-
getImageViewZoomScales
getImageViewZoomScales.
- Returns:
- a
Listobject. - Throws:
ViewerConfigurationException- if any.
-
getImageViewZoomScales
getImageViewZoomScales.
- Parameters:
view- aStringobject.- Returns:
- a
Listobject. - Throws:
ViewerConfigurationException- if any.
-
getImageViewZoomScales
public List<String> getImageViewZoomScales(PageType view, String imageMimeType) throws ViewerConfigurationException getImageViewZoomScales.
- Parameters:
view- aPageTypeobject.imageMimeType- the mimetype to which the configuration should apply.- Returns:
- a
Listobject. - 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(PageType view, String imageMimeType) throws ViewerConfigurationException getTileSizes.
- Parameters:
view- aPageTypeobject.imageMimeType- the mimetype to which the configuration should apply.- Returns:
- a
Mapobject. - Throws:
ViewerConfigurationException- if any.
-
getZoomImageViewConfig
public org.apache.commons.configuration2.BaseHierarchicalConfiguration getZoomImageViewConfig(PageType pageType, String imageMimeType) throws ViewerConfigurationException getZoomImageViewConfig.
- Parameters:
pageType- aPageTypeobject.imageMimeType- the mimetype to which the configuration should apply.- Returns:
- a
SubnodeConfigurationobject. - Throws:
ViewerConfigurationException- if any.
-
getBreadcrumbsClipping
public int getBreadcrumbsClipping()getBreadcrumbsClipping.
- Returns:
- a int.
-
getDisplayStructType
public boolean getDisplayStructType()getDisplayStructType.
- Returns:
- a boolean.
-
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
Listobject.
-
getWatermarkFormat
getWatermarkFormat.
- Returns:
- a
Stringobject.
-
getStopwordsFilePath
getStopwordsFilePath.
- Returns:
- a
Stringobject.
-
getPageType
Returns the locally configured page type name for URLs (e.g. "bild" instead of default "image"). -
getRecordTargetPageType
getRecordTargetPageType.
-
getPageTypeExitView
-
getFulltextPercentageWarningThreshold
public int getFulltextPercentageWarningThreshold()getFulltextPercentageWarningThreshold.
- Returns:
- a int.
-
getFallbackDefaultLanguage
- Returns:
- Configured value
-
getFeedbackEmailRecipients
getFeedbackEmailAddresses.
- Returns:
- a
Stringobject.
-
getDefaultFeedbackEmailAddress
- Returns:
- Configured value
-
isBookmarksEnabled
public boolean isBookmarksEnabled()isBookmarksEnabled.
- Returns:
- a boolean.
-
getPageLoaderThreshold
public int getPageLoaderThreshold()getPageLoaderThreshold.
- Returns:
- a int.
-
isPreventProxyCaching
public boolean isPreventProxyCaching()isPreventProxyCaching.
- Returns:
- a boolean.
-
getDatabaseConnectionAttempts
public int getDatabaseConnectionAttempts()getDatabaseConnectionAttempts.
- Returns:
- a int.
-
reviewEnabledForComments
public boolean reviewEnabledForComments()- Returns:
- Configured value
-
getViewerHome
getViewerHome.
- Returns:
- a
Stringobject.
-
getWatermarkIdField
getWatermarkIdField.
- Returns:
- a
Listobject.
-
getSubthemeMainTheme
getSubthemeMainTheme.
- Returns:
- a
Stringobject.
-
getSubthemeDiscriminatorField
getSubthemeDiscriminatorField.
- Returns:
- a
Stringobject.
-
getTagCloudSampleSize
getTagCloudSampleSize.
- Parameters:
fieldName- aStringobject.- Returns:
- a int.
-
getTocVolumeSortFieldsForTemplate
getTocVolumeSortFieldsForTemplate.
-
getTocVolumeGroupFieldForTemplate
Returns the grouping Solr field for the given anchor TOC sort configuration. -
getDisplayTitleBreadcrumbs
public boolean getDisplayTitleBreadcrumbs()getDisplayTitleBreadcrumbs.
- Returns:
- a boolean.
-
isDisplayTitlePURL
public boolean isDisplayTitlePURL()isDisplayTitlePURL.
- Returns:
- a boolean.
-
getTitleBreadcrumbsMaxTitleLength
public int getTitleBreadcrumbsMaxTitleLength()getTitleBreadcrumbsMaxTitleLength.
- Returns:
- a int.
-
getIncludeAnchorInTitleBreadcrumbs
public boolean getIncludeAnchorInTitleBreadcrumbs()getIncludeAnchorInTitleBreadcrumbs.
- Returns:
- a boolean.
-
isDisplaySearchRssLinks
public boolean isDisplaySearchRssLinks()isDisplaySearchRssLinks.
- Returns:
- a boolean.
-
getStartYearForTimeline
getStartYearForTimeline.
- Returns:
- a
Stringobject.
-
getEndYearForTimeline
getEndYearForTimeline.
- Returns:
- a
Stringobject.
-
getTimelineHits
getTimelineHits.
- Returns:
- a
Stringobject.
-
isPiwikTrackingEnabled
public boolean isPiwikTrackingEnabled()isPiwikTrackingEnabled.
- Returns:
- a boolean.
-
getPiwikBaseURL
getPiwikBaseURL.
- Returns:
- a
Stringobject.
-
getPiwikSiteID
getPiwikSiteID.
- Returns:
- a
Stringobject.
-
isSearchSavingEnabled
public boolean isSearchSavingEnabled()isSearchSavingEnabled.
- Returns:
- a boolean.
-
getRecordGroupIdentifierFields
getRecordGroupIdentifierFields.
- Returns:
- a
Listobject.
-
getAncestorIdentifierFields
getAncestorIdentifierFields.
- Returns:
- a
Listobject.
-
isTocListSiblingRecords
public boolean isTocListSiblingRecords()isTocListSiblingRecords.
- Returns:
- a boolean.
-
getAncestorIdentifierFieldFilterQuery
getAncestorIdentifierFieldFilterQuery(String).
- Parameters:
field-- Returns:
- Configured filter query for the given field; empty string is none found
-
getSearchFilters
getSearchFilters.
- Returns:
- a
Listobject.
-
getDefaultSearchFilter
- Returns:
- Configured value
-
getWebApiFields
getWebApiFields.
- Parameters:
template-- Returns:
JsonMetadataConfiguration
-
getDbPersistenceUnit
getDbPersistenceUnit.
- Returns:
- a
Stringobject.
-
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:
- a boolean.
-
getTranskribusUserName
getTranskribusUserName.
- Returns:
- a
Stringobject.
-
getTranskribusPassword
getTranskribusPassword.
- Returns:
- a
Stringobject.
-
getTranskribusDefaultCollection
getTranskribusDefaultCollection.
- Returns:
- a
Stringobject.
-
getTranskribusRestApiUrl
getTranskribusRestApiUrl.
- Returns:
- a
Stringobject.
-
getTranskribusAllowedDocumentTypes
getTranskribusAllowedDocumentTypes.
- Returns:
- a
Listobject.
-
getTocIndentation
public int getTocIndentation()getTocIndentation.
- Returns:
- a int.
-
isPageBrowseEnabled
public boolean isPageBrowseEnabled()isPageBrowseEnabled.
- Returns:
- a boolean.
-
getPageBrowseSteps
getPageBrowseSteps.
- Returns:
- a
Listobject.
-
getPageSelectDropdownDisplayMinPages
public int getPageSelectDropdownDisplayMinPages()- Returns:
- Configured value
-
getWorkflowRestUrl
getWorkflowRestUrl.
- Returns:
- The url to the Goobi workflow REST API as configured in the config_viewer. The url always ends with "/"
-
getTaskManagerServiceUrl
Deprecated.currently unused since download jobs are handled via message queuesgetTaskManagerServiceUrl.
- Returns:
- a
Stringobject.
-
getTaskManagerRestUrl
Deprecated.jobs are no longs handled via TaskManager but via queuesgetTaskManagerRestUrl.
- Returns:
- a
Stringobject.
-
getReCaptchaSiteKey
getReCaptchaSiteKey.
- Returns:
- a
Stringobject.
-
isUseReCaptcha
public boolean isUseReCaptcha()isUseReCaptcha.
- Returns:
- a boolean.
-
isSearchRisExportEnabled
public boolean isSearchRisExportEnabled()isSearchRisExportEnabled.
- Returns:
- a boolean.
-
isSearchExcelExportEnabled
public boolean isSearchExcelExportEnabled()isSearchExcelExportEnabled.
- Returns:
- a boolean.
-
getSearchExcelExportFields
getSearchExcelExportFields.
- Returns:
- a
Listobject.
-
getExcelDownloadTimeout
public int getExcelDownloadTimeout()getExcelDownloadTimeout.
- Returns:
- a int.
-
getRestrictedImageUrls
getRestrictedImageUrls.
- Returns:
- a
Listobject.
-
getIIIFLicenses
-
useExternalManifestUrls
public boolean useExternalManifestUrls() -
getExternalManifestSolrField
-
getIIIFMetadataFields
getIIIFMetadataFields.
- Returns:
- a
Listobject.
-
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:
- a
Stringobject.
-
getIIIFAttribution
getIIIFAttribution.
- Returns:
- a
Stringobject.
-
getIIIFDescriptionFields
getIIIFDescriptionFields.
- Returns:
- a
Listobject.
-
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:
- Configured value
-
isVisibleIIIFRenderingViewer
public boolean isVisibleIIIFRenderingViewer()- Returns:
- Configured value
-
getLabelIIIFRenderingPDF
-
getLabelIIIFRenderingViewer
-
isVisibleIIIFRenderingPlaintext
public boolean isVisibleIIIFRenderingPlaintext()- Returns:
- Configured value
-
isVisibleIIIFRenderingAlto
public boolean isVisibleIIIFRenderingAlto()- Returns:
- Configured value
-
getLabelIIIFRenderingPlaintext
-
getLabelIIIFRenderingAlto
-
isVisibleIIIFSeeAlsoMets
public boolean isVisibleIIIFSeeAlsoMets() -
getLabelIIIFSeeAlsoMets
-
isVisibleIIIFSeeAlsoLido
public boolean isVisibleIIIFSeeAlsoLido() -
getLabelIIIFSeeAlsoLido
-
getIIIFSeeAlsoMetadataConfigurations
-
getSitelinksField
getSitelinksField.
- Returns:
- a
Stringobject.
-
isSitelinksEnabled
public boolean isSitelinksEnabled()- Returns:
- Configured value
-
getSitelinksFilterQuery
getSitelinksFilterQuery.
- Returns:
- a
Stringobject.
-
getConfiguredCollections
getConfiguredCollections.
- Returns:
- a
Listobject.
-
getWebApiToken
getWebApiToken.
- Returns:
- a
Stringobject.
-
isAllowRedirectCollectionToWork
public boolean isAllowRedirectCollectionToWork()isAllowRedirectCollectionToWork.
- Returns:
- true if opening a collection containing only a single work should redirect to that work
-
getTwitterUserName
getTwitterUserName.
- Returns:
- Configured value; null if none configured
-
getLimitImageHeightUpperRatioThreshold
public float getLimitImageHeightUpperRatioThreshold()getLimitImageHeightUpperRatioThreshold.
- Returns:
- a float.
-
getLimitImageHeightLowerRatioThreshold
public float getLimitImageHeightLowerRatioThreshold()getLimitImageHeightLowerRatioThreshold.
- Returns:
- a float.
-
isLimitImageHeight
public boolean isLimitImageHeight()isLimitImageHeight.
- Returns:
- a boolean.
-
isAddCORSHeader
public boolean isAddCORSHeader()isAddCORSHeader.
- Returns:
- a boolean.
-
getCORSHeaderValue
Gets the value configured in webapi.cors. Default is "*"
- Returns:
- a
Stringobject.
-
isDiscloseImageContentLocation
public boolean isDiscloseImageContentLocation()- Returns:
- Configured value
-
getCopyrightIndicatorStyle
- Returns:
- Configured value
-
getCopyrightIndicatorStatusField
- Returns:
- Configured value
-
getCopyrightIndicatorStatusForValue
- Parameters:
value-- Returns:
- Configured value
-
getCopyrightIndicatorLicenseForValue
- Parameters:
value-- Returns:
- Configured value
-
getCopyrightIndicatorLicenseField
- Returns:
- Configured value
-
isDisplayAnchorLabelInTitleBar
-
getAnchorLabelInTitleBarPrefix
-
getAnchorLabelInTitleBarSuffix
-
getMapBoxToken
-
getMapBoxUser
-
getMapBoxStyleId
-
isDisplayAddressSearchInMap
public boolean isDisplayAddressSearchInMap() -
getGeoMapMarker
- Parameters:
name-- Returns:
- Configured value
-
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-- Returns:
- Configured value
-
getLicenseDescriptions
- Returns:
- Configured values
-
getArchivesLazyLoadingThreshold
public int getArchivesLazyLoadingThreshold()- Returns:
- Configured value
-
isExpandArchiveEntryOnSelection
public boolean isExpandArchiveEntryOnSelection() -
getArchiveNodeTypes
-
getDefaultArchiveNodeType
-
isDisplayUserGeneratedContentBelowImage
public boolean isDisplayUserGeneratedContentBelowImage()- Returns:
- a boolean
-
getIIIFVersionToUse
config:<iiif use-version="3.0"></iiif>- Returns:
- Configured value
-
getTranslationGroups
- Returns:
- Configured value
-
isDisplayAnnotationTextInImage
public boolean isDisplayAnnotationTextInImage()- Returns:
- Configured value
-
isUseFacetsAsExpandQuery
public boolean isUseFacetsAsExpandQuery()- Returns:
- Configured value
-
getAllowedFacetsForExpandQuery
- Returns:
- Configured values
-
isSearchResultGroupsEnabled
public boolean isSearchResultGroupsEnabled()- Returns:
- Configured value
-
getSearchResultGroups
- Returns:
- Configured values
-
isContentUploadEnabled
public boolean isContentUploadEnabled()- Returns:
- Configured value
-
getContentUploadToken
- Returns:
- Configured value
-
getContentUploadDocstruct
- Returns:
- Configured value
-
getContentUploadTemplateName
- Returns:
- Configured value
-
getContentUploadRejectionPropertyName
- Returns:
- Configured value
-
getContentUploadRejectionReasonPropertyName
- Returns:
- Configured value
-
getCrowdsourcingCampaignItemOrder
-
getGeomapAnnotationZoom
public int getGeomapAnnotationZoom() -
getCrowdsourcingCampaignGeomapZoom
public int getCrowdsourcingCampaignGeomapZoom() -
getCrowdsourcingCampaignGeomapLngLat
-
getCrowdsourcingCampaignGeomapTilesource
-
isStatisticsEnabled
public boolean isStatisticsEnabled() -
getCrawlerDetectionRegex
-
isConfigEditorEnabled
public boolean isConfigEditorEnabled()- Returns:
- Configured value
-
getConfigEditorBackupFiles
public int getConfigEditorBackupFiles()- Returns:
- Configured value
-
getConfigEditorDirectories
- Returns:
- Configured values
-
isProxyEnabled
public boolean isProxyEnabled()- Returns:
- true if enabled; false otherwise
-
getProxyUrl
- Returns:
- Configured value
-
getProxyPort
public int getProxyPort()- Returns:
- Configured port number; 0 if none found
-
isHostProxyWhitelisted
- Parameters:
url-- Returns:
- Configured value
- Throws:
MalformedURLExceptionURISyntaxException
-
getProxyWhitelist
- Returns:
- Configured values
-
isStartInternalMessageBroker
public boolean isStartInternalMessageBroker() -
getNumberOfParallelMessages
public int getNumberOfParallelMessages() -
getActiveMQMessagePurgeInterval
public int getActiveMQMessagePurgeInterval() -
getQuartzSchedulerCronExpression
-
getQuartzSchedulerCronExpression
-
isDeveloperPageActive
public boolean isDeveloperPageActive() -
getDeveloperScriptPath
-
isLanguageVersionOtherThan
- Parameters:
field-language-- Returns:
- Configured value
-
getStringFormat
-
getThemePullScriptPath
-
isPullThemeEnabled
public boolean isPullThemeEnabled()- Returns:
- boolean
-
getCreateDeveloperPackageScriptPath
-
getMediaTypeHandling
-
getMediaTypeRedirectUrl
-
getSearchHitStyleClass
-
getRecordViewStyleClass
-