Commit 70972715 authored by Jens Kupferschmidt's avatar Jens Kupferschmidt
Browse files

additional for Bach Digital

parent 009c737c
......@@ -8,10 +8,16 @@
<element name="recordSource" type="classification" minOccurs="1" style="select" notinherit="ignore" heritable="ignore">
<classification id="viafRecordSource"/>
</element>
<element name="identifier" type="text" minOccurs="0" maxOccurs="3" style="small" notinherit="ignore" heritable="ignore">
<element name="identifier" type="text" minOccurs="0" maxOccurs="100" style="small" notinherit="ignore" heritable="ignore">
<type name="gnd" />
<type name="lcnaf" />
<type name="viaf" />
<type name="other" />
<type name="otherswd" />
<type name="otherdma" />
<type name="otherpnd" />
<type name="othergnd" />
<type name="othergkd" />
</element>
<element name="firstDate" type="historydate" minOccurs="0" maxOccurs="1" style="small" notinherit="ignore" heritable="ignore" />
<element name="firstPlace" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
......@@ -20,6 +26,9 @@
<element name="secondPlace" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="secondPlaceIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="gender" type="boolean" minOccurs="0" maxOccurs="1" notinherit="ignore" heritable="ignore" />
<element name="sex" type="classification" minOccurs="0" maxOccurs="1" style="select" notinherit="ignore" heritable="ignore">
<classification id="viafSexISO5218"/>
</element>
<element name="confession" type="classification" minOccurs="0" maxOccurs="1" style="select" notinherit="ignore" heritable="ignore">
<classification id="viafConfessionType"/>
</element>
......@@ -27,8 +36,11 @@
<element name="professionIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="areaOfActivity" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="areaOfActivityIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="floruit" type="historydate" minOccurs="0" maxOccurs="1" style="small" notinherit="ignore" heritable="ignore" />
<element name="literarySource" type="text" minOccurs="0" maxOccurs="unbounded" style="big" notinherit="ignore" heritable="ignore" />
<element name="note" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="bibReference" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="internalRemark" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="link" type="href" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="gndxml" type="xml" style="dontknow" minOccurs="0" maxOccurs="unbounded" notinherit="ignore" heritable="ignore">
<xs:sequence maxOccurs="unbounded">
......@@ -40,5 +52,6 @@
<xs:any namespace="##any" minOccurs="0" processContents="skip" />
</xs:sequence>
</element>
<element name="editor" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
</metadata>
</objecttype>
......@@ -564,7 +564,7 @@
<xed:bind xpath="def.identifier[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="identifier" min="1" max="3">
<xed:repeat xpath="identifier" min="1" max="100">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:controls>append remove up down</xed:controls>
......
......@@ -575,7 +575,7 @@
<xed:bind xpath="def.identifier[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="identifier" min="1" max="3">
<xed:repeat xpath="identifier" min="1" max="100">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:controls>append remove up down</xed:controls>
......
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd"
ID="viafSexISO5218">
<label xml:lang="de" text="Geschlecht"/>
<label xml:lang="en" text="Sex"/>
<categories>
<category ID="0_not_known">
<label xml:lang="de" text="unbekannt"/>
<label xml:lang="en" text="not known"/>
<label xml:lang="fr" text="inconnu"/>
<label xml:lang="ar" text="مجهول"/>
</category>
<category ID="1_male">
<label xml:lang="de" text="männlich "/>
<label xml:lang="en" text="male"/>
<label xml:lang="fr" text="masculin"/>
</category>
<category ID="2_female">
<label xml:lang="de" text="weiblich"/>
<label xml:lang="en" text="female"/>
<label xml:lang="fr" text="féminin"/>
</category>
<category ID="9_not_applicable">
<label xml:lang="de" text="nicht anwendbar"/>
<label xml:lang="en" text="not applicable"/>
<label xml:lang="fr" text="sans objet"/>
</category>
</categories>
</mycoreclass>
......@@ -27,15 +27,20 @@
MCR.IndexBrowser.viaf_subselect.Searchfield=viaf_preferredname_{lang}
MCR.IndexBrowser.viaf_subselect.ExtraOutputFields=id
# solr definition
MCR.URIResolver.xslImports.solr-document=%MCR.URIResolver.xslImports.solr-document%,viaf2solr.xsl
MCR.URIResolver.xslIncludes.solrResponse=%MCR.URIResolver.xslIncludes.solrResponse%,response-viaf.xsl
MCR.CLI.Classes.Internal=%MCR.CLI.Classes.Internal%,org.mycore.frontend.cli.MCRVIAFCommands
MCR.Solr.DateSearch.condHardFrom_1=viaf_seconddate_from
MCR.Solr.DateSearch.condHardTo_1=viaf_seconddate_to
# MCR.OAIDataProvider.OAI2.Sets.viafConfessionType=xslStyle:classification2sets:classification:metadata:10:noEmptyLeaves:children:viafConfessionType
# MCR.OAIDataProvider.OAI2.Sets.viafRecordSource=xslStyle:classification2sets:classification:metadata:10:noEmptyLeaves:children:viafRecordSource
# Output formatter
MCR.URIResolver.xslIncludes.mycoreobjectXML=%MCR.URIResolver.xslIncludes.mycoreobjectXML%,viaf2xml.xsl
MCR.URIResolver.xslIncludes.mycoreobjectNative=%MCR.URIResolver.xslIncludes.mycoreobjectNative%,viaf2native.xsl
MCR.URIResolver.xslIncludes.solrResponse=%MCR.URIResolver.xslIncludes.solrResponse%,response-viaf.xsl
MCR.CLI.Classes.Internal=%MCR.CLI.Classes.Internal%,org.mycore.frontend.cli.MCRVIAFCommands
\ No newline at end of file
......@@ -12,8 +12,17 @@
</xsl:attribute>
<xsl:for-each select="metadata/*">
<xsl:choose>
<xsl:when test="name() = 'def.recordSource'">
<xsl:apply-templates select="." mode="classification-native" />
</xsl:when>
<xsl:when test="name() = 'def.confession'">
<xsl:apply-templates select="." />
<xsl:apply-templates select="." mode="classification-native" />
</xsl:when>
<xsl:when test="name() = 'def.sex'">
<xsl:apply-templates select="." mode="classification-native" />
</xsl:when>
<xsl:when test="name() = 'def.internalRemark' and $accessintern = 'true'">
<xsl:copy-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="." />
......
......@@ -180,6 +180,15 @@
</field>
</xsl:for-each>
<xsl:for-each select="./metadata/def.floruit/floruit">
<field name="viaf_floruit_from">
<xsl:value-of select="mcrxsl:getISODateFromMCRHistoryDate(von/text(),'von','gregorian')" />
</field>
<field name="viaf_floruit_to">
<xsl:value-of select="mcrxsl:getISODateFromMCRHistoryDate(bis/text(),'bis','gregorian')" />
</field>
</xsl:for-each>
<xsl:if test="./service/servstates/servstate" >
<field name="viaf_status">
<xsl:value-of select="./service/servstates/servstate/@categid" />
......
......@@ -11,7 +11,14 @@
<xsl:value-of select="metadata/@xml:lang" />
</xsl:attribute>
<xsl:for-each select="metadata/*">
<xsl:copy-of select="." />
<xsl:choose>
<xsl:when test="name() = 'def.internalRemark' and $accessintern = 'true'">
<xsl:copy-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="." />
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</metadata>
</xsl:template>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment