From c9278afe7409f9e38848ca81c75923a042ccdc86 Mon Sep 17 00:00:00 2001 From: Silvio Hermann Date: Thu, 16 Nov 2023 09:25:33 +0100 Subject: [PATCH] UBO-283 Added configuration as mentioned in https://github.com/MyCoRe-Org/mycore/pull/1964#issuecomment-1746748570 --- README.md | 1 + .../config/ubo-common/mycore.properties | 24 ++++++++++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 016e34a8f..0373808eb 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ grant all privileges on ubo.* to ubo@localhost identified by 'ubo'; META-INF/mycore-iview2-mappings.xml META-INF/mycore-viewer-mappings.xml META-INF/mycore-ifs-mappings.xml + ``` ``` vi ~/.mycore/ubo/resources/META-INF/persistence.xml diff --git a/ubo-common/src/main/resources/config/ubo-common/mycore.properties b/ubo-common/src/main/resources/config/ubo-common/mycore.properties index 7722bf999..fd71ccd46 100644 --- a/ubo-common/src/main/resources/config/ubo-common/mycore.properties +++ b/ubo-common/src/main/resources/config/ubo-common/mycore.properties @@ -36,8 +36,6 @@ MCR.Solr.Core.main.Name=ubo MCR.Solr.DynamicFields=false MCR.Solr.Proxy.WhiteList=/select,/select2,/uboExport,/statistics -MCR.URIResolver.xslImports.solr-document=solr-basetemplate.xsl,ubo-solr.xsl - MCR.EventHandler.MCRObject.013.Class=org.mycore.mods.MCRExtractRelatedItemsEventHandler MCR.EventHandler.MCRObject.018.Class=org.mycore.ubo.dedup.DeDupEventHandler #MCR.EventHandler.MCRObject.019.Class=org.mycore.ubo.publication.PublicationEventHandler @@ -341,6 +339,25 @@ MCR.ContentTransformer.mods2csv.Steps=basket2solradd,mycoreobject-solrdocument,s MCR.ContentTransformer.mods2csv2.Class=org.mycore.common.content.transformer.MCRTransformerPipe MCR.ContentTransformer.mods2csv2.Steps=solr2csv +#### 2023.06.x https://github.com/MyCoRe-Org/mycore/pull/1964#issuecomment-1746748570 ################ +MCR.Layout.Transformer.Factory.XSLFolder=xsl + +MCR.URIResolver.xslImports.solr-document=solr-basetemplate.xsl,ubo-solr.xsl +MCR.URIResolver.xslIncludes.components=%MCR.URIResolver.xslIncludes.components%,solr-layout-utils.xsl +MCR.ContentTransformer.response-browse.Stylesheet=xsl/response-browse.xsl +MCR.ContentTransformer.mycoreobject-solrdocument.Class=org.mycore.common.content.transformer.MCRXSL2JAXBTransformer +MCR.ContentTransformer.mycoreobject-solrdocument.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl +MCR.ContentTransformer.mycoreobject-solrdocument.Stylesheet=xsl/mycoreobject-solrdocument.xsl +MCR.ContentTransformer.mycoreobject-solrdocument.Context=org.mycore.solr.index.document.jaxb +MCR.ContentTransformer.response-solrdocument.Class=org.mycore.common.content.transformer.MCRXSL2JAXBTransformer +MCR.ContentTransformer.response-solrdocument.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl +MCR.ContentTransformer.response-solrdocument.Stylesheet=xsl/response2batch.xsl,%MCR.ContentTransformer.mycoreobject-solrdocument.Stylesheet% +MCR.ContentTransformer.response-solrdocument.Context=%MCR.ContentTransformer.mycoreobject-solrdocument.Context% +MCR.ContentTransformer.response-prepared.Class=org.mycore.common.content.transformer.MCRXSLTransformer +MCR.ContentTransformer.response-prepared.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl +MCR.ContentTransformer.response-prepared.Stylesheet=xsl/response-join-results.xsl,xsl/response-addDocId.xsl,xsl/response-addDerivates.xsl +MCR.URIResolver.xslIncludes.xeditorTemplates=solr-xeditor-templates.xsl + MCR.ContentTransformer.MyCoReWebPage.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.basket-objects.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.debugEnrichment.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl @@ -357,12 +374,13 @@ MCR.ContentTransformer.response-newest.TransformerFactoryClass=org.apache.xalan. MCR.ContentTransformer.response-sidebar-admin.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.response-sidebar-mini.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.response-statistics.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl +MCR.ContentTransformer.response.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.roles.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.site.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.user.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.users.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl MCR.ContentTransformer.webpage.TransformerFactoryClass=org.apache.xalan.processor.TransformerFactoryImpl - +############################################################################################################ UBO.Export.Fields=id,subject,oa,genre,host_genre,person_aut,person_edt,title,id_doi,id_scopus,id_pubmed,id_isi,id_urn,id_duepublico,id_duepublico2,host_title,series,id_issn,id_isbn,shelfmark,year,volume,issue,pages,place,publisher # Set allowed status of publications appearing personal publication list