You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

Original FIZ-Oai-Docu: https://fiznetz.fiz-karlsruhe.de/display/IEEpubFIZ/FIZ-OAI

OAI-Backend:

Bitbucket: https://dev.fiz-karlsruhe.de/stash/projects/FIZ-OAI/repos/fiz-oai-backend/

warfile, Java 11, Tomcat

or dependency

        <dependency>
            <groupId>de.fiz.oai.backend</groupId>
            <artifactId>oai-backend</artifactId>
            <version>${fiz.oaibackend.version}</version>
            <classifier>classes</classifier>
        </dependency>


Prerequisites:

  • Cassanda-Tables
  • SOLR-Index
    • Schema can be found in oai-backend-project, src/main/resources/solr
  • Configuration
    • fiz-oai-backend.properties

      #DI
      cassandra.nodes=141.66.133.19:8842,141.66.133.20:8842,141.66.133.21:8842,141.66.133.22:8842,141.66.133.23:8842,141.66.133.24:8842
      cassandra.datacenter=DC_DI
      cassandra.replication.factor={'class': 'NetworkTopologyStrategy', 'DC_DI': '3'}
      cassandra.keyspace=oai_di
      #PROD
      #cassandra.nodes=141.66.7.34:8842
      #cassandra.datacenter=DC_LOAD01
      #cassandra.replication.factor={'class': 'NetworkTopologyStrategy', 'DC_LOAD01': '3'}
      #cassandra.keyspace=oai_p
      
      cassandra.username=ddbuser
      cassandra.password=f6Th!eoP
      cassandra.sessions=1
      cassandra.requesttimeout=10
      
      class.impl.search=de.fiz.oai.backend.service.impl.SolrSearchServiceImpl
      
      solr.url=http://ddb-di-vm05:8183/solr/oaiitems
      
      elasticsearch.host=ddb-di-vm08
      elasticsearch.port=8200
      [admin@ddb-di-vm08 conf]$ vi fiz-oai-backend.properties
      [admin@ddb-di-vm08 conf]$ more fiz-oai-backend.properties
      #DI
      cassandra.nodes=141.66.133.19:8842,141.66.133.20:8842,141.66.133.21:8842,141.66.133.22:8842,141.66.133.23:8842,141.66.133.24:8842
      cassandra.datacenter=DC_DI
      cassandra.replication.factor={'class': 'NetworkTopologyStrategy', 'DC_DI': '3'}
      cassandra.keyspace=oai_di
      #PROD
      #cassandra.nodes=141.66.7.34:8842,141.66.7.35:8842,141.66.7.36:8842,141.66.7.37:8842,141.66.7.38:8842,141.66.7.39:8842,141.66.7.40:8842,141.66.7.41:8842
      #cassandra.datacenter=DC_LOAD01
      #cassandra.replication.factor={'class': 'NetworkTopologyStrategy', 'DC_LOAD01': '3'}
      #cassandra.keyspace=oai_p
      
      cassandra.username=ddbuser
      cassandra.password=<passwd>
      cassandra.sessions=1
      cassandra.requesttimeout=10
      
      class.impl.search=de.fiz.oai.backend.service.impl.SolrSearchServiceImpl
      
      solr.url=http://ddb-di-vm05:8183/solr/oaiitems
      
      elasticsearch.host=ddb-di-vm08
      elasticsearch.port=8200
      
      

Initial Data: create with project https://dev.fiz-karlsruhe.de/stash/projects/FIZ-OAI/repos/fiz-oai-ddb-importer

OAI-Frontend:

warfile, Java 11, Tomcat

Frontend needs own Tomcat because of startorder. First start OAI-Backend, then start OAI-Frontend

Configuration:

# OAICat Configuration

# This paramter is optional. Comment it out if you want the code to get the baseURL
# from the request instead. Setting it here is only necessary if your firewall messes
# with the request in a way that alters the baseURL from your expectations.
#OAIHandler.baseURL=http://localhost:8080/fiz-oai-provider/OAIHandler

# Uncomment this line if you want to include an XSL stylesheet reference
# in the OAI response so they can be rendered into HTML by browsers.
OAIHandler.styleSheet=/oai/stylesheet

#For integration testing, the backend is provided by mockserver. The server is started in OaiHandlerIT
FizOaiBackend.baseURL=http://ddb-di-vm08.fiz-karlsruhe.de:8081/oai-backend

# Uncomment this line if you want OAICat to render the responses into HTML on the server using
# OAIHandler.stylesheet when the request comes from an old browser.
#OAIHandler.renderForOldBrowsers=true

AbstractCatalog.oaiCatalogClassName=de.fiz_karlsruhe.FizOAICatalog
AbstractCatalog.recordFactoryClassName=de.fiz_karlsruhe.FizRecordFactory
AbstractCatalog.secondsToLive=3600

# Choose one of the following two
#AbstractCatalog.granularity=YYYY-MM-DD
AbstractCatalog.granularity=YYYY-MM-DDThh:mm:ssZ

# Change to include properties peculiar to your implementation of AbstractCatalog
FizOAICatalog.maxListSize=300

#FizRecordFactory.repositoryIdentifier=fiz-karlsruhe.de
FizRecordFactory.defaultMetadataPrefix=radar

# Custom Identify response values
Identify.repositoryName=Fiz Repository
Identify.adminEmail=mailto:stefan.hofmann@fiz-karlsruhe.de
Identify.earliestDatestamp=2000-01-01T00:00:00Z
Identify.deletedRecord=no
#Identify.repositoryIdentifier=fiz-karlsruhe.de
#Identify.sampleIdentifier=oai:fiz-karlsruhe.de:10.0133/10000386

branding.logo=/data/ddb/tools/oai/tomcat1/conf/FIZ_Logo_fbg_dt.png
branding.header.color=#e8e8e8
branding.service.name=FIZ
branding.service.url=https://www.fiz-karlsruhe.de
branding.welcome.text=This is the OAI provider for FIZ Karlsruhe
branding.imprint.url=https://www.fiz-karlsruhe.de/de/ueber-uns/impressum-rechtliches
branding.privacy.url=https://www.fiz-karlsruhe.de/de/ueber-uns/datenschutzerklaerung
branding.font.family="Courier New", Courier, monospace;
branding.font.color=#a62055;


DI-Net:


DI
OAI-Backend

ddb-di-vm08

/data/ddb/tools/oai/tomcat

http://ddb-di-vm08.fiz-karlsruhe.de:8081/oai-backend

OAI-Frontend

ddb-di-vm08

/data/ddb/tools/oai/tomcat1

http://ddb-di-vm08.fiz-karlsruhe.de:8080/oai

http://dev-ddb.fiz-karlsruhe.de/oai

CassandraDDB-DI-Cluster, Keyspace oai_di
SOLRhttp://ddb-di-vm05.fiz-karlsruhe.de:8183/solr/#/oaiitems/core-overview

PROD-Net:

  • No labels