Skip to content

Commit

Permalink
#550 Added additional transformer configuration 'mods-resolve-his-key…
Browse files Browse the repository at this point in the history
…s-detailed'
  • Loading branch information
Possommi committed Dec 13, 2024
1 parent c44480e commit 1c488d5
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions common/src/main/resources/config/thunibib-common/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -163,29 +163,34 @@ ThUniBib.HISinOne.ClientSecret =
ThUniBib.HISinOne.Publication.Transformer.Name = res-publication-json-detailed
ThUniBib.HISinOne.Journal.Transformer.Name = res-json-journal-base

# Transformer for converting mods to json format used by HISinOne
MCR.ContentTransformer.res-publication-json.Class = de.uni_jena.thunibib.his.content.transformer.PublicationHisResTransformer
MCR.ContentTransformer.res-publication-json-detailed.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.res-publication-json-detailed.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys,res-publication-json

# This transformer maps values from the source mods to keys used in HISinOne
MCR.ContentTransformer.mods-resolve-his-keys.Class = org.mycore.common.content.transformer.MCRXSLTransformer
MCR.ContentTransformer.mods-resolve-his-keys.TransformerFactoryClass = net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.mods-resolve-his-keys.Stylesheet = xsl/mycoreobject-mods-resolve-his-keys.xsl
MCR.ContentTransformer.mods-resolve-his-keys.Class = org.mycore.common.content.transformer.MCRXSLTransformer
MCR.ContentTransformer.mods-resolve-his-keys.TransformerFactoryClass = net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.mods-resolve-his-keys.Stylesheet = xsl/mycoreobject-mods-resolve-his-keys.xsl

# This transformer maps values from the source mods to keys used in HISinOne, but with additional lead id information
MCR.ContentTransformer.mods-resolve-his-keys-detailed.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.mods-resolve-his-keys-detailed.TransformerFactoryClass = net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.mods-resolve-his-keys-detailed.Steps = mods-xml-detailed,mods-resolve-his-keys

# This transformer creates values and keys in for previously unresolved values in HISinOne
MCR.ContentTransformer.mods-create-his-keys.Class = org.mycore.common.content.transformer.MCRXSLTransformer
MCR.ContentTransformer.mods-create-his-keys.TransformerFactoryClass = net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.mods-create-his-keys.Stylesheet = xsl/mycoreobject-mods-create-unresolved-his-keys.xsl
MCR.ContentTransformer.mods-create-his-keys.Class = org.mycore.common.content.transformer.MCRXSLTransformer
MCR.ContentTransformer.mods-create-his-keys.TransformerFactoryClass = net.sf.saxon.TransformerFactoryImpl
MCR.ContentTransformer.mods-create-his-keys.Stylesheet = xsl/mycoreobject-mods-create-unresolved-his-keys.xsl

# Transformer for converting Publication to json format used by HISinOne
MCR.ContentTransformer.res-publication-json.Class = de.uni_jena.thunibib.his.content.transformer.PublicationHisResTransformer
MCR.ContentTransformer.res-publication-json-detailed.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.res-publication-json-detailed.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys,res-publication-json

# This transformer converts a Journal to HISinOne JSON-format
MCR.ContentTransformer.res-journal-json.Class = de.uni_jena.thunibib.his.content.transformer.JournalHisResTransformer
MCR.ContentTransformer.res-json-journal-base.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.res-json-journal-base.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys,res-journal-json
MCR.ContentTransformer.res-journal-json.Class = de.uni_jena.thunibib.his.content.transformer.JournalHisResTransformer
MCR.ContentTransformer.res-json-journal-base.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.res-json-journal-base.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys,res-journal-json

# This transformer enriches the MODS with lead_id, resolves his keys and creates missing his keys
MCR.ContentTransformer.mods-resolve-create-his-keys.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.mods-resolve-create-his-keys.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys
MCR.ContentTransformer.mods-resolve-create-his-keys.Class = org.mycore.common.content.transformer.MCRTransformerPipe
MCR.ContentTransformer.mods-resolve-create-his-keys.Steps = mods-xml-detailed,mods-resolve-his-keys,mods-create-his-keys

MCR.URIResolver.ModuleResolver.hisinone = de.uni_jena.thunibib.his.xml.HISinOneResolver
MCR.Jersey.Resource.Packages = %MCR.Jersey.Resource.Packages%,de.uni_jena.thunibib.his.rsc
MCR.URIResolver.ModuleResolver.hisinone = de.uni_jena.thunibib.his.xml.HISinOneResolver
MCR.Jersey.Resource.Packages = %MCR.Jersey.Resource.Packages%,de.uni_jena.thunibib.his.rsc

0 comments on commit 1c488d5

Please sign in to comment.