metarepository.config 11.9 KB
# Metarepository Configuration File

##########################################################################################################
###                                READ THIS WARNING - VERY IMPORTANT                                  ###
##########################################################################################################
# if setting any property with non-ascii characters (accents and others), please use native2ascii        #
# utility to enconde this file properly                                                                  #
##########################################################################################################

######################################
####     General Definitions      ####
######################################

site.url=http://validador.rcaap.pt
general.source.dir=/metarepository
repositories.statistics.dir=/metarepository/images/repositoriesStatistics

# relative to source.dir
general.harvest.logfile=/var/log/metarepository.log

# Maximum size of the request allowed by browsers (min-max)
general.maximum.request.length = 2048


#general.info.mail = info@rcaap.pt
general.info.mail = [MAILS]
general.warn.mail = [MAILS]
general.report.mail = [MAILS]
general.report.repositories.mail = [MAILS]
general.report.repositories.mail.sendToAdmin = true
#general.report.repositories.mail.sendToAdmin = false


######################################
####     Mails Configuration      ####
######################################

# General Configurations
#mail.smtp.localhost = mx1.di.uminho.pt
mail.smtp.localhost = localhost
mail.smtp.port = 25

mail.from.name = RCAAP
#mail.from.address = info@rcaap.pt
mail.from.address = noreply@rcaap.pt

######################################
####    Database Configuration    ####
######################################

# Database Properties
database.driver = com.mysql.jdbc.Driver
database.name = mysql
database.useUNICODE = true
database.encoding = UTF-8

# Database Connection
database.localhost = localhost
database.port = 3306
database.schema = metarepository

# Database Credentials
database.user = [USER]
database.password = [PASS]

# Database Connection Pool
database.pool.size = 5
database.pool.maxSize = 1000
database.pool.useCOUNT = 5
database.pool.timeout = 20


#######################################
####        Solr Definitions       ####
#######################################
solr.home.dir=/metarepository/solr
solr.data.dir=/metarepository/solr/core/data
solr.show_score_in_results_page=false
solr.simple_search.field_boosts=titles|0.5,subjects|0.5,descriptions|0.3,creators|0.1,contributors|0.1,alltext|0.3

#######################################
####     Harvester Definitions     ####
#######################################

# Interval between two consequent requests (in seconds)
harvester.request.interval = 5
harvester.ingest.record.doctype.prefix = info:eu-repo/semantics/

#######################################
####       WEBUI Definitions       ####
#######################################

# -- RESULT PAGE --

## Results Section
# Number of results per page
webui.result.results.resultsPerPage = 10

## Filters Section
# max items presented (mini-mode
webui.results.filters.items.number.mini = 5
# max of items (full-mode)
webui.results.filters.items.number.full = 20

# -- DETAIL PAGE --
## Related Section
# Number of Related Documents
webui.detail.related.number = 2
# Controlled vocabulary ( AUTHOR | SUBJECT | BOTH )
webui.detail.related.relation = BOTH
webui.persistent.tokens = hdl.


# -- ADVANCED SEARCH PAGE --

## Forms Section
webui.advanced.forms.textBoxes = 2
webui.advanced.forms.repositories.mini = 5
webui.advanced.languages.mini = 5
webui.advanced.doctypes.mini = 5

## TAG CLOUD
# Search
webui.tagcloud.search.minCharacters = 4
webui.tagcloud.search.maxCharacters = 20
webui.tagcloud.search.keywords = 30
webui.tagcloud.search.minClass = 1
webui.tagcloud.search.maxClass = 4

# Subject
webui.tagcloud.subject.minCharacters = 4
webui.tagcloud.subject.maxCharacters = 20
webui.tagcloud.subject.keywords = 30
webui.tagcloud.subject.minClass = 1
webui.tagcloud.subject.maxClass = 4

#######################################
####            admin              ####
#######################################
webui.admin.harvest.script = /metarepository/runHarvest.sh

#######################################
####         repositories          ####
#######################################
webui.repositories.countries = portugal,brazil

#######################################
####    oai-pmh sets definition    ####
#######################################
# format: SETSPEC#`COLUMN`='VALUE' || SETSPEC#`COLUMN`='VALUE' (OR `COLUMN`='VALUE')+ || SETSPEC#`COLUMN`='VALUE' (AND `COLUMN`='VALUE')+
oaipmh.sets=brazil#`country`='brazil',portugal#`country`='portugal',masterthesis#`document_type`='masterThesis',doctoralthesis#`document_type`='doctoralThesis',masterdoctoral#`document_type`='masterThesis' OR `document_type`='doctoralThesis'
oaipmh.sets.names=brazil#Set that contains records from brazilian repositories,portugal#Set that contains records from portuguese repositories,masterthesis#Set that contains records that are of the type "info:eu-repo/semantics/masterThesis",doctoralthesis#Set that contains records that are of the type "info:eu-repo/semantics/doctoralThesis",masterdoctoral#Set that contains records that are of the type "info:eu-repo/semantics/masterThesis" or "info:eu-repo/semantics/doctoralThesis"

#######################################
####      dynamic collections      ####
#######################################
# values are name+'.'+class
webui.dynamic.collections = saramago.n3,thesisAndDissertations.n3,thesis.n1,dissertations.n1,bullying.n1,h1n1.n1,carlosFiolhais.n1

# must be url encoded (spaces, for example, are encoded as character '+')
webui.dynamic.collection.saramago.search=/search?formname=SIMPLE&text=saramago&includeAll=yes
webui.dynamic.collection.thesisAndDissertations.search=/search?formname=ADVANCED&docType=bachelorThesis&docType=masterThesis&docType=doctoralThesis&orderBy=ISSUE_DATE&orderType=DESC&includeAll=yes
webui.dynamic.collection.thesis.search=/search?formname=ADVANCED&docType=doctoralThesis&orderBy=ISSUE_DATE&orderType=DESC&includeAll=yes
webui.dynamic.collection.dissertations.search=/search?formname=ADVANCED&docType=masterThesis&orderBy=ISSUE_DATE&orderType=DESC&includeAll=yes
webui.dynamic.collection.bullying.search=/search?formname=SIMPLE&text=bullying&includeAll=yes
webui.dynamic.collection.h1n1.search=/search?formname=SIMPLE&text=h1n1&includeAll=yes
webui.dynamic.collection.carlosFiolhais.search=/search?formname=ADVANCED&col1=creators&col_val1=Carlos+Fiolhais&orderBy=RELEVANCE&orderType=DESC&includeAll=yes

#webui.dynamic.collection.thesisAndDissertations.style=color:red

#######################################
####        degois config          ####
#######################################
degois.active = true
# To succefully configure DeGois add-on you will need to request the Repository ID, supllied 
# by DeGois project. Please contact degois@fct.mctes.pt
degois.repository.id = 101900000880
# DeGois Base URL
degois.url = http://www.degois.pt/WSRCAAP/services/XMLRCAAP

# DeGois More Info
degois.info.url = http://projecto.rcaap.pt/index.php?option=com_content&view=article&id=78&Itemid=76&lang=pt
# blank (new window) self (same window) ...
degois.info.open = blank

# Default Values
degois.default.situation = Publicado
degois.default.dspace.title = Sem título
degois.default.degois.title = Sem título
degois.default.publisher = Sem publicadora definida
degois.default.number = 1
degois.default.first.page = 1
degois.default.last.page = 10
degois.default.location = Sem local
degois.default.language = pt
degois.default.author = Sem autor
degois.default.journal.type = Jornal de notícias
degois.default.presentation.type = Comunicação

#######################################
####        RSS Definitions        ####
#######################################
# rss.numberOfResults - number of results in non basic search
rss.numberOfResults = 30
# rss.numberOfResultsPerRepository - number of results per repository in basic search
rss.numberOfResultsPerRepository = 2
rss.title = RCAAP Rss Feeder
rss.description = RCAAP PROJECT FEEDER
rss.untitleditem = Documento sem t\u00edtulo

#######################################
####        SRU Definitions        ####
#######################################

sru.version = 1.1
sru.recordSchema = http://purl.org/dc/elements/1.1/

#######################################
####       log4j Definitions       ####
#######################################

# moved to log4j.xml

#######################################
####     validator Definitions     ####
#######################################
debug.mode=false
                  
# As there is no external service and no dns do dps, we nedd to add the 8080 port
validator.dps.url=http://validador.rcaap.pt:8080/dps/rest/v1/validators
#validator.dps.url=http://validador-rcaap.pre.rcaap.pt/dps/rest/v1/validators
# time between requests (in seconds)
validator.dps.time_between_requests=1
				  
# Directories                           
#path.requests=/rcaap/validator/01-requests
#path.harvested=/rcaap/validator/02-harvests
#path.results=/rcaap/validator/03-reports
path.requests=/metarepository/validator/01-requests
path.harvested=/metarepository/validator/02-harvests
path.results=/metarepository/validator/03-reports

validator.url=http://validador.rcaap.pt
url.results=http://validador.rcaap.pt/03-reports/

# Report templates
validation.report.template.text=/templates/validation-report-template.txt
validation.report.template.html=/templates/validation-report-template.html

# Contacts
#admin.email=validador@rcaap.pt
#mail.from=validador@rcaap.pt
admin.email=validador@rcaap.pt
mail.from=noreply@rcaap.pt
#mail.from=appadmin@aps03.rcaap.pt
validator.contact.email = validador@rcaap.pt

# Warning messages
issue.poorly_described               = (AVISO) Metadados insuficientes (NOTA: os elementos dc:title e dc:description devem estar preenchidos)
issue.no_dc_format                   = (AVISO) Nenhum formato associado (NOTA: o elemento dc:format n\u00e3o est\u00e1 preenchido. Registo apenas com metadatados?)
issue.dc_rights_not_driver_compliant = (AVISO) Direitos inv\u00e1lidos (NOTA: o elemento dc.rights deve ser "closedAccess" ou "embargoedAccess" ou "restrictedAccess" ou "openAccess")
issue.dc_rights_not_set_driver_compliant = (AVISO) Direitos inv\u00e1lidos (NOTA: o elemento dc.rights deve ser "open access" ou "openAccess")

# Error messages
issue.no_dc_type                   = (ERRO)  Nenhum tipo associado (NOTA: o elemento dc:type \u00e9 obrigat\u00f3rio) 
issue.dc_type_not_driver_compliant = (ERRO)  Tipo de documento inv\u00e1lido (NOTA: Consulte as directrizes para conhecer os dc.types v\u00e1lidos)
issue.not_open_access              = (ERRO)  Acesso restrito (NOTA: O documento associado a este registo n\u00e3o consegue ser descarregado)
issue.not_driver_compliant         = (ERRO)  Registo n\u00e3o segue as directrizes do RCAAP (NOTA: registo em Acesso Restrito ou tipo inv\u00e1lido).
issue.no_dates                     = (ERRO)  Sem data (NOTA: o elemento dc.date \u00e9 obrigat\u00f3rio) 
issue.not_639_3_language_compliant = (ERRO)  Idioma inv\u00e1lido (NOTA: o elemento dc.language n\u00e3o se encontra na norma ISO 639-3).
issue.no_dc_language               = (ERRO)  Sem idioma associado (NOTA: o elemento dc.language n\u00e3o se encontra preenchido)

#validator.version = 1.5

# Contact form

validator.contact.recaptcha.api.url=https://www.google.com/recaptcha/api/siteverify  
#validator.contact.recaptcha.secret.key=6Lea3AATAAAAAAxWm-43z1ZmhudP8IXMeUbEHrMK
#validator.contact.recaptcha.site.key=6Lea3AATAAAAAN4FDqHMARKKSRu27lMxL4XS5bu9
validator.contact.recaptcha.secret.key=6LcRtAcTAAAAAEKOuP4kSnXyrXdKutojF2KZsAm8
validator.contact.recaptcha.site.key=6LcRtAcTAAAAAOrrX6zhe-HzX1EcgWYIu9IIkFPR




validator.version = 2.0.0              

validator.confirmation.featured.url=/featured.html