...
Frontend needs own Tomcat because of startorder. First start OAI-Backend, then start OAI-Frontend
Configuration:
Apache-VHost:
- Redirect to the Servlet: https://dev-ddb.fiz-karlsruhe.de/oai --> http://ddb-di-vm08:8080/oai/OAIHandler
- Redirect to Stylesheet + Images: https://dev-ddb.fiz-karlsruhe.de/oai/docs --> http://ddb-di-vm08:8080/oai
- Rewrite-Rule because of tailing slash (may not be behind Servlet-Path):
- RewriteCond %{REQUEST_URI} ^/oai.*
- RewriteRule ^(/oai)/+$ $1 [R=301,L]
Stylesheets + related Images are located on ddb-di-vm08 below /data/ddb/tools/oai/conf/docs
- oai2_new.xsl edit, adapt links to images (3 Images, just below <html>-element) , Put Images into the same FOlder as the Stylesheet.
- oai2.xsl is the original ePrints-Stylesheet.
- Put Stylesheet oai2_new.xsl with name oai2.xsl into webapps/oai/ legen and reference it in the COnfiguration (/oai/docs/oai2.xsl)
Configuration (Tomcat/conf/oaicat.properties)
- Set OAIHandler.baseURL (zB dev-ddb.fiz-karlsruhe.de/oai)
- Set link to the Stylesheet OAIHandler.styleSheet
Code Block | ||
---|---|---|
| ||
# 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; |
...