Skip to content

Commit

Permalink
enable dfi specific pica2mods stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrebs committed Jan 8, 2024
1 parent 19849ec commit aab155f
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/resources/config/reposis_dfi/mycore.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
###################################################################################################

# project name
MCR.NameOfProject=DFI
MCR.NameOfProject=dfi
MIR.projectid.default=dfi

# application base URL
Expand Down Expand Up @@ -40,6 +40,15 @@ MCR.Access.Strategy.CreatorPermissions=read,writedb,view-derivate,deletedb
MIR.OwnerStrategy.AllowedRolesForSearch=admin,editor,submitter


###################################################################################################
# #
# pica2mods configuration #
# #
###################################################################################################

MCR.ContentTransformer.pica2mods.Stylesheet=xsl/pica2mods_dfi.xsl


###################################################################################################
# #
# Generic mail configuration for MCRMailer #
Expand Down
53 changes: 53 additions & 0 deletions src/main/resources/xsl/pica2mods_dfi.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0"?>
<xsl:stylesheet version="3.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:p="info:srw/schema/5/picaXML-v1.0"
xmlns:mods="http://www.loc.gov/mods/v3"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:zs="http://www.loc.gov/zing/srw/"
exclude-result-prefixes="xsl p xlink zs">
<xsl:mode on-no-match="shallow-copy"/>

<xsl:import href="default/pica2mods-default-titleInfo.xsl" />
<xsl:import href="default/pica2mods-default-name.xsl" />
<xsl:import href="default/pica2mods-default-identifier.xsl" />
<xsl:import href="default/pica2mods-default-language.xsl" />
<xsl:import href="default/pica2mods-default-location.xsl" />
<xsl:import href="default/pica2mods-default-physicalDescription.xsl" />
<xsl:import href="default/pica2mods-default-originInfo.xsl" />
<xsl:import href="default/pica2mods-default-genre.xsl" />
<xsl:import href="default/pica2mods-default-recordInfo.xsl" />
<xsl:import href="default/pica2mods-default-note.xsl" />
<xsl:import href="default/pica2mods-default-abstract.xsl" />
<xsl:import href="default/pica2mods-default-subject.xsl" />
<xsl:import href="default/pica2mods-default-relatedItem.xsl" />

<xsl:import href="_common/pica2mods-pica-PREPROCESSING.xsl" />
<xsl:import href="_common/pica2mods-functions.xsl" />

<xsl:param name="MCR.PICA2MODS.CONVERTER_VERSION" select="'Pica2Mods 2.5'" />
<xsl:param name="MCR.PICA2MODS.DATABASE" select="'gvk'" />

<xsl:template match="p:record">
<mods:mods>
<xsl:call-template name="modsTitleInfo" />
<xsl:call-template name="modsAbstract" />
<xsl:call-template name="modsName" />
<xsl:call-template name="modsIdentifier" />
<xsl:call-template name="modsLanguage" />
<xsl:call-template name="modsPhysicalDescription" />
<xsl:call-template name="modsOriginInfo" />
<xsl:call-template name="modsGenre" />
<xsl:call-template name="modsLocation" />
<xsl:call-template name="modsRecordInfo" />
<xsl:call-template name="modsNote" />
<xsl:call-template name="modsRelatedItem" />
<xsl:call-template name="modsSubject" />
</mods:mods>
</xsl:template>

<xsl:template match="zs:searchRetrieveResponse">
<xsl:apply-templates select="//p:record" />
</xsl:template>

</xsl:stylesheet>

0 comments on commit aab155f

Please sign in to comment.