###############################################################################
##  OAI-PMH Configuration File                                               ##
###############################################################################

RS_ENDPOINT = https://dev.textgridlab.org/1.0/tgoaipmh

############################
##  ElasticSearch Config  ##
############################

elasticSearch.url = 127.0.0.1
elasticSearch.ports = 9202, 9203
elasticSearch.index = ***
elasticSearch.type = metadata
elasticSearch.itemLimit = 100

########################
##  Project Choosing  ##
########################

textgrid = true
dariah = false

#############################
##  Repository Properties  ##
#############################

RepositoryName = TextGrid Repository
BaseUrl = https://textgridlab.org/1.0/tgoaipmh/oai
DeletedRecordInfo = NO
EarliestDateStamp = 2011-06-11T02:32:40Z
Granularity = YYYY_MM_DD_THH_MM_SS_Z
ProtocolVersion = 2.0
AdminMail = support@de.dariah.eu

######################
##  Instantiations  ##
######################

metadataFormatListInstance = MetadataFormatListDelivererTG

######################
##  Field Settings  ##
######################

fields = extent, work.subject, revision, edition.source.bibliographicCitation, edition.license, created, issued, format, identifier, dataContributor, textgridUri, project, project.id, relations.isDerivedFrom, title, pid.value, edition.isEditionOf, edition.agent.value, edition.license.licenseUri, edition.language, edition.source.bibliographicCitation.author.value, edition.source.bibliographicCitation.editor.value, edition.source.bibliographicCitation.editionTitle, edition.source.bibliographicCitation.placeOfPublication.value, edition.source.bibliographicCitation.publisher.value, edition.source.bibliographicCitation.editionNo, edition.source.bibliographicCitation.series, edition.source.bibliographicCitation.volume, edition.source.bibliographicCitation.issue, edition.source.bibliographicCitation.epage, edition.source.bibliographicCitation.spage, edition.source.bibliographicCitation.bibidentifier, work.abstract, work.genre, work.type, work.spatial.value, work.temporal.value, work.agent.value, work.subject.id.value, lastModified
workFields = created, work.abstract, relations.isDerivedFrom, textgridUri, work.genre, title, work.type, work.spatial.value, work.temporal.spatial, work.agent.value, work.subject.id.value

######################
## OpenAireRecords ###
######################

oar.identifierField = pid.value
# edition title can not be mapped to schema, titleType=OTHER is not supported in OpenAIRE: edition.source.bibliographicCitation.editionTitle
oar.titleFields = title
oar.dateFields = created, issued, lastModified
oar.contributorFields = dataContributor, project
oar.creatorFields = TODO
oar.languageFields = edition.language
oar.alternateIdentifierFields = textgridUri
oar.formatFields = format
oar.rightsFields = edition.license
oar.descriptionFields = work.abstract
oar.relatedIdentifierFields = edition.isEditionOf
oar.relationToWorkObject = edition.isEditionOf
oar.geoLocationFields = edition.source.bibliographicCitation.placeOfPublication
oar.handle = pid.value
oar.versionFields = revision
oar.subjectFields = work.subject
oar.sizeField = extent

##########################
##  Dublin Core Fields  ##
##########################

contributorList = dataContributor
coverageList = work.spatial.value, work.temporal.value
creatorList = work.agent.value
dateList = created
descriptionList = work.abstract
formatList = format
identifierList = textgridUri, pid.value, identifier
languageList = edition.language
publisherList = edition.source.bibliographicCitation.publisher.value
relationList = project.id, relations.isDerivedFrom
relationsForWorkList = relations.isDerivedFrom, title, textgridUri
rightsList = edition.license.licenseUri
sourceList = edition.source.bibliographicCitation.author.value, edition.source.bibliographicCitation.editor.value, edition.source.bibliographicCitation.editionTitle, edition.source.bibliographicCitation.placeOfPublication.value, edition.source.bibliographicCitation.publisher.value, edition.source.bibliographicCitation.editionNo, edition.source.bibliographicCitation.series, edition.source.bibliographicCitation.volume, edition.source.bibliographicCitation.issue, edition.source.bibliographicCitation.epage, edition.source.bibliographicCitation.spage
subjectList = work.subject.id.value
titleList = title
typeList = work.genre, work.type

#############################
##  ListIdentifierSetting  ##
#############################

rangeField = created
identifierListFields = textgridUri, created, format
formatField = format
formatToFilter = text/tg.edition+tg.aggregation+xml
dateOfObjectCreation = created
relationToFurtherMetadataObject = edition.isEditionOf
repositoryObjectURIPrefix = textgrid:
identifierPrefix = textgridUri
identifierField = textgridUri
modifiedField = lastModified
searchResponseSize = 100

#######################
###  More Settings  ###
#######################

specField = project.id
specFieldPrefix = project:

########################################
###  IDIOM Metadata Format Settings  ###
########################################

idiomResponseSize = 30
# NONPUBLIC index only TextGrid IDIOM queries!
elasticSearch.nonpublicIndex = ***
# We do need a TG-crud endpoint and a TextGrid RBAC Session ID for accessing unpublished image objects from TG-crud.
idiomTgcrudEndpoint = ***
idiomRbacSessionID = ***
