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

change dates and names

parent 48bbc624
......@@ -67,7 +67,7 @@ public class MCRGNDEntityByPublicIDServlet extends MCRServlet {
MCRResults results = exists(gnd);
if (results.getNumHits() == 0) {
Transformer trans = getTransformer(GND_TRANSFORMER);
URL url = new URL("https://portal.dnb.de/opac.htm?method=request=MarcXml&idn=" + gnd);
URL url = new URL("http://d-nb.info/gnd/" + gnd + "/about/marcxml");
Document doc = new SAXBuilder().build(url);
if (doc == null) {
job.getResponse().sendRedirect(job.getResponse().encodeRedirectURL(getBaseURL() + importerrorpage));
......
......@@ -37,7 +37,7 @@
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.preferredName[@class='MCRMetaLangText']">
<xed:bind xpath="def.preferredName[@class='MCRMetaPersonName']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="preferredName" min="1" max="5">
......@@ -47,12 +47,21 @@
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="preferredName" maxlength="128"/>
<xed:bind xpath="fullname">
<input type="text" class="dpt_editor_inputfield" id="preferredName" maxlength="128"/>
<xed:validate display="local" required="true">
<xed:output i18n="module.dptbase.viaf.anyname.validate"/>
</xed:validate>
</xed:bind>
<xed:output i18n="module.dptbase.viaf.preferredName.fullname"/>
</p>
<p>
<xed:bind xpath="title">
<input type="text" class="dpt_editor_inputfield" id="preferredName" maxlength="128"/>
</xed:bind>
<xed:output i18n="module.dptbase.viaf.preferredName.title"/>
</p>
</p>
<xed:validate display="local" required="true">
<xed:output i18n="module.dptbase.viaf.anyname.validate"/>
</xed:validate>
</xed:repeat>
</xed:bind>
</td>
......@@ -65,7 +74,7 @@
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.variantName[@class='MCRMetaLangText']">
<xed:bind xpath="def.variantName[@class='MCRMetaPersonName']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="variantName" min="1" max="5">
......@@ -75,7 +84,16 @@
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="variantName" maxlength="128"/>
<xed:bind xpath="fullname">
<input type="text" class="dpt_editor_inputfield" id="variantName" maxlength="128"/>
</xed:bind>
<xed:output i18n="module.dptbase.viaf.preferredName.fullname"/>
</p>
<p>
<xed:bind xpath="title">
<input type="text" class="dpt_editor_inputfield" id="preferredName" maxlength="128"/>
</xed:bind>
<xed:output i18n="module.dptbase.viaf.preferredName.title"/>
</p>
</p>
</xed:repeat>
......@@ -85,41 +103,41 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="birthdate">
<xed:output i18n="module.dptbase.viaf.birthDate.label"/>
<label for="firstdate">
<xed:output i18n="module.dptbase.viaf.firstDate.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.birthDate[@class='MCRMetaHistoryDate']">
<xed:bind xpath="def.firstDate[@class='MCRMetaHistoryDate']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:bind xpath="birthDate">
<xed:bind xpath="firstDate">
<xed:bind xpath="@inherited" default="0"/>
<xed:repeat xpath="text" min="1" max="5">
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<input type="text" class="dpt_editor_inputfield" id="birthdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="firstdate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.birthDate.text"/>
<xed:output i18n="module.dptbase.viaf.firstDate.text"/>
</span>
</p>
</xed:repeat>
<xed:bind xpath="calendar" default="gregorian"/>
<xed:bind xpath="von">
<p>
<input type="text" class="dpt_editor_inputfield" id="birthdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="firstdate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.birthDate.from"/>
<xed:output i18n="module.dptbase.viaf.firstDate.from"/>
</span>
</p>
</xed:bind>
<xed:bind xpath="bis">
<p>
<input type="text" class="dpt_editor_inputfield" id="birthdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="firstdate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.birthDate.to"/>
<xed:output i18n="module.dptbase.viaf.firstDate.to"/>
</span>
</p>
</xed:bind>
......@@ -132,22 +150,22 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="birthPlace">
<xed:output i18n="module.dptbase.viaf.birthPlace.label"/>
<label for="firstPlace">
<xed:output i18n="module.dptbase.viaf.firstPlace.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.birthPlace[@class='MCRMetaLangText']">
<xed:bind xpath="def.firstPlace[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="birthPlace" min="1" max="5">
<xed:repeat xpath="firstPlace" min="1" max="5">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="birthPlace" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="firstPlace" maxlength="128"/>
</p>
</p>
</xed:repeat>
......@@ -157,22 +175,22 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="birthPlaceIdentifier">
<xed:output i18n="module.dptbase.viaf.birthPlaceIdentifier.label"/>
<label for="firstPlaceIdentifier">
<xed:output i18n="module.dptbase.viaf.firstPlaceIdentifier.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.birthPlaceIdentifier[@class='MCRMetaLangText']">
<xed:bind xpath="def.firstPlaceIdentifier[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="birthPlaceIdentifier" min="1" max="5">
<xed:repeat xpath="firstPlaceIdentifier" min="1" max="5">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="birthPlaceIdentifier" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="firstPlaceIdentifier" maxlength="128"/>
</p>
</p>
</xed:repeat>
......@@ -182,41 +200,41 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="deathdate">
<xed:output i18n="module.dptbase.viaf.deathDate.label"/>
<label for="seconddate">
<xed:output i18n="module.dptbase.viaf.secondDate.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.deathDate[@class='MCRMetaHistoryDate']">
<xed:bind xpath="def.secondDate[@class='MCRMetaHistoryDate']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:bind xpath="deathDate">
<xed:bind xpath="secondDate">
<xed:bind xpath="@inherited" default="0"/>
<xed:repeat xpath="text" min="1" max="5">
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<input type="text" class="dpt_editor_inputfield" id="deathdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="seconddate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.deathDate.text"/>
<xed:output i18n="module.dptbase.viaf.secondDate.text"/>
</span>
</p>
</xed:repeat>
<xed:bind xpath="calendar" default="gregorian"/>
<xed:bind xpath="von">
<p>
<input type="text" class="dpt_editor_inputfield" id="deathdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="seconddate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.deathDate.from"/>
<xed:output i18n="module.dptbase.viaf.secondDate.from"/>
</span>
</p>
</xed:bind>
<xed:bind xpath="bis">
<p>
<input type="text" class="dpt_editor_inputfield" id="deathdate" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="seconddate" maxlength="128"/>
<span>
<xed:output i18n="module.dptbase.viaf.deathDate.to"/>
<xed:output i18n="module.dptbase.viaf.secondDate.to"/>
</span>
</p>
</xed:bind>
......@@ -229,22 +247,22 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="deathPlace">
<xed:output i18n="module.dptbase.viaf.deathPlace.label"/>
<label for="secondPlace">
<xed:output i18n="module.dptbase.viaf.secondPlace.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.deathPlace[@class='MCRMetaLangText']">
<xed:bind xpath="def.secondPlace[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="deathPlace" min="1" max="5">
<xed:repeat xpath="secondPlace" min="1" max="5">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="deathPlace" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="secondPlace" maxlength="128"/>
</p>
</p>
</xed:repeat>
......@@ -254,22 +272,22 @@
<tr>
<td class="dpt_editor_name-ltr">
<label for="deathPlaceIdentifier">
<xed:output i18n="module.dptbase.viaf.deathPlaceIdentifier.label"/>
<label for="secondPlaceIdentifier">
<xed:output i18n="module.dptbase.viaf.secondPlaceIdentifier.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<xed:bind xpath="def.deathPlaceIdentifier[@class='MCRMetaLangText']">
<xed:bind xpath="def.secondPlaceIdentifier[@class='MCRMetaLangText']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="deathPlaceIdentifier" min="1" max="5">
<xed:repeat xpath="secondPlaceIdentifier" min="1" max="5">
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:include uri="webapp:editor/import_editor_language_viaf.xed"/>
<xed:controls/>
<br/>
<p>
<input type="text" class="dpt_editor_inputfield" id="deathPlaceIdentifier" maxlength="128"/>
<input type="text" class="dpt_editor_inputfield" id="secondPlaceIdentifier" maxlength="128"/>
</p>
</p>
</xed:repeat>
......
......@@ -98,7 +98,7 @@
<xed:bind xpath="@name" default="viafname">
<select id="dpt_search_selector_sortname-ltr" class="form-control-inline">
<option value="viafname">
<xed:output i18n="module.dptbase.viaf.search.anyname.labels"/>
<xed:output i18n="module.dptbase.viaf.search.name.labels"/>
</option>
<option value="viafidentifier">
<xed:output i18n="module.dptbase.viaf.search.id.labels"/>
......
......@@ -108,7 +108,7 @@
<xed:bind xpath="@name" default="viafname">
<select id="dpt_search_selector_sortname-rtl" class="form-control-inline">
<option value="viafname">
<xed:output i18n="module.dptbase.viaf.search.anyname.labels"/>
<xed:output i18n="module.dptbase.viaf.search.name.labels"/>
</option>
<option value="viafidentifier">
<xed:output i18n="module.dptbase.viaf.search.id.labels"/>
......
......@@ -2,8 +2,8 @@
<objecttype name="person" isChild="true" isParent="false" hasDerivates="true" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="datamodel.xsd">
<metadata>
<element name="preferredName" type="text" minOccurs="1" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="variantName" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="preferredName" type="personname" minOccurs="1" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="variantName" type="personname" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="recordType" type="text" minOccurs="1" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="recordSource" type="classification" minOccurs="1" style="select" notinherit="ignore" heritable="ignore">
<classification id="viafRecordSource"/>
......@@ -13,12 +13,12 @@
<type name="lcnaf" />
<type name="viaf" />
</element>
<element name="birthDate" type="historydate" minOccurs="0" maxOccurs="1" style="small" notinherit="ignore" heritable="ignore" />
<element name="birthPlace" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="birthPlaceIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="deathDate" type="historydate" minOccurs="0" maxOccurs="1" style="small" notinherit="ignore" heritable="ignore" />
<element name="deathPlace" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="deathPlaceIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<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" />
<element name="firstPlaceIdentifier" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<element name="secondDate" type="historydate" minOccurs="0" maxOccurs="1" style="small" notinherit="ignore" heritable="ignore" />
<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="profession" type="text" minOccurs="0" maxOccurs="unbounded" style="small" notinherit="ignore" heritable="ignore" />
<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" />
......
......@@ -111,6 +111,7 @@
</xs:complexType>
</xs:element>
</xsl:template>
<xsl:template match="element" mode="inner">
<xsl:param name="class" />
<xsl:param name="containsText" select="false()" />
......@@ -272,6 +273,30 @@
</xsl:apply-templates>
</xsl:template>
<xsl:template match="element[@type='personname']" mode="metadata">
<xsl:apply-templates select="." mode="enclosing">
<xsl:with-param name="class" select="'MCRMetaPersonName'" />
</xsl:apply-templates>
<xsl:variable name="innerSchema">
<xs:sequence>
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="firstname" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="callname" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="surname" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="fullname" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="academic" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="peerage" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="numeration" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="title" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="prefix" />
<xs:element maxOccurs="1" minOccurs="0" type="xs:string" name="affix" />
</xs:sequence>
</xsl:variable>
<xsl:apply-templates select="." mode="inner">
<xsl:with-param name="class" select="'MCRMetaPersonName'" />
<xsl:with-param name="complexType" select="xalan:nodeset($innerSchema)/*" />
</xsl:apply-templates>
</xsl:template>
<xsl:template match="element" mode="types">
<xsl:choose>
<xsl:when test="type">
......
......@@ -6,26 +6,18 @@ module.dptbase.viaf.areaOfActivity.label = Geographische Wirkungsberei
module.dptbase.viaf.areaOfActivity.view = Geographische Wirkungsbereich
module.dptbase.viaf.areaOfActivityIdentifier.label = Geographische Wirkungsbereich (ID)
module.dptbase.viaf.areaOfActivityIdentifier.view = Geographische Wirkungsbereich
module.dptbase.viaf.birthDate.from = von
module.dptbase.viaf.birthDate.label = Geburtsdatum
module.dptbase.viaf.birthDate.text = Text
module.dptbase.viaf.birthDate.to = bis
module.dptbase.viaf.birthPlace.in = in
module.dptbase.viaf.birthPlace.label = Geburtsort
module.dptbase.viaf.birthPlace.notfound = Referenz nicht gefunden!
module.dptbase.viaf.birthPlaceIdentifier.label = Geburtsort (ID)
module.dptbase.viaf.common.datecreate.labels = Erstellungsdatum
module.dptbase.viaf.deathDate.from = von
module.dptbase.viaf.deathDate.label = Todesdatum
module.dptbase.viaf.deathDate.text = Text
module.dptbase.viaf.deathDate.to = bis
module.dptbase.viaf.deathPlace.in = in
module.dptbase.viaf.deathPlace.label = Sterbeort
module.dptbase.viaf.deathPlace.notfound = Referenz nicht gefunden!
module.dptbase.viaf.deathPlaceIdentifier.label = Sterbeort (ID)
module.dptbase.viaf.editor.headline = Die mit * gekennzeichneten Daten sind Pflichtfelder.
module.dptbase.viaf.editor.label = lokalen Normdateieintrag
module.dptbase.viaf.editor.validation = Bitte f\u00FCllen Sie die markierten Felder noch aus!
module.dptbase.viaf.firstDate.from = von
module.dptbase.viaf.firstDate.label = Geburtsdatum
module.dptbase.viaf.firstDate.text = Text
module.dptbase.viaf.firstDate.to = bis
module.dptbase.viaf.firstPlace.in = in
module.dptbase.viaf.firstPlace.label = Geburtsort
module.dptbase.viaf.firstPlace.notfound = Referenz nicht gefunden!
module.dptbase.viaf.firstPlaceIdentifier.label = Geburtsort (ID)
module.dptbase.viaf.identifier.gnd = Identnummer GND
module.dptbase.viaf.identifier.label = Identifizierer
module.dptbase.viaf.identifier.lcnaf = Identnummer LCNAF
......@@ -55,7 +47,9 @@ module.dptbase.viaf.page.error.gndimport.text = Beim Dateinimport eines GND
module.dptbase.viaf.page.error.gndimport.title = Fehler beim GND-Datenimport
module.dptbase.viaf.page.error.locimport.text = Beim Dateinimport eines LoC-Datensatzes ist ein Fehler aufgetreten. Bitte Pr\u00FCfen Sie die eingegebene Nummer und testen Sie, dass die LoC Daten ausliefert.
module.dptbase.viaf.page.error.locimport.title = Fehler beim Datenimport von der LoC
module.dptbase.viaf.preferredName.fullname = komplett
module.dptbase.viaf.preferredName.label = Name (*)
module.dptbase.viaf.preferredName.title = Titel
module.dptbase.viaf.preferredName.validate = Die Eingabe eines namens ist erforderlich!
module.dptbase.viaf.profession.label = Beruf
module.dptbase.viaf.profession.view = Berufe
......@@ -65,9 +59,19 @@ module.dptbase.viaf.search.complex.label = Suche in Personennormdateie
module.dptbase.viaf.search.id.labels = Identifikationsnummer
module.dptbase.viaf.search.name.labels = Name
module.dptbase.viaf.search.place.labels = \u00D6rtlichkeiten
module.dptbase.viaf.secondDate.from = von
module.dptbase.viaf.secondDate.label = Todesdatum
module.dptbase.viaf.secondDate.text = Text
module.dptbase.viaf.secondDate.to = bis
module.dptbase.viaf.secondPlace.in = in
module.dptbase.viaf.secondPlace.label = Sterbeort
module.dptbase.viaf.secondPlace.notfound = Referenz nicht gefunden!
module.dptbase.viaf.secondPlaceIdentifier.label = Sterbeort (ID)
module.dptbase.viaf.source.gnd = GND-Datensatz der Deutschen Nationalbibliothek
module.dptbase.viaf.source.lcnaf = LCNAF Datensatz der Library of Congress Name Authority File
module.dptbase.viaf.source.local = lokaler Datensatz
module.dptbase.viaf.source.title = Originalquelle
module.dptbase.viaf.variantName.fullname = komplett
module.dptbase.viaf.variantName.label = Weitere Namensformen
module.dptbase.viaf.variantName.title = Titel
module.dptbase.viaf.variantName.view = Weitere Namensformen
......@@ -6,26 +6,18 @@ module.dptbase.viaf.areaOfActivity.label = Area of competence
module.dptbase.viaf.areaOfActivity.view = Area of competence
module.dptbase.viaf.areaOfActivityIdentifier.label = Area of competence (ID)
module.dptbase.viaf.areaOfActivityIdentifier.view = Area of competence
module.dptbase.viaf.birthDate.from = from
module.dptbase.viaf.birthDate.label = Date of birth
module.dptbase.viaf.birthDate.text = Text
module.dptbase.viaf.birthDate.to = to
module.dptbase.viaf.birthPlace.in = in
module.dptbase.viaf.birthPlace.label = Place of birth
module.dptbase.viaf.birthPlace.notfound = Reference not found!
module.dptbase.viaf.birthPlaceIdentifier.label = Birth place (ID)
module.dptbase.viaf.common.datecreate.labels = Creation date
module.dptbase.viaf.deathDate.from = from
module.dptbase.viaf.deathDate.label = Date of death
module.dptbase.viaf.deathDate.text = Text
module.dptbase.viaf.deathDate.to = to
module.dptbase.viaf.deathPlace.in = in
module.dptbase.viaf.deathPlace.label = Place of death
module.dptbase.viaf.deathPlace.notfound = Reference not found!
module.dptbase.viaf.deathPlaceIdentifier.label = Death place (ID)
module.dptbase.viaf.editor.headline = Fields with * are required.
module.dptbase.viaf.editor.label = local authority file entry
module.dptbase.viaf.editor.validation = Correct the marked fields!
module.dptbase.viaf.firstDate.from = from
module.dptbase.viaf.firstDate.label = Date of birth
module.dptbase.viaf.firstDate.text = text
module.dptbase.viaf.firstDate.to = to
module.dptbase.viaf.firstPlace.in = in
module.dptbase.viaf.firstPlace.label = Place of birth
module.dptbase.viaf.firstPlace.notfound = Reference not found!
module.dptbase.viaf.firstPlaceIdentifier.label = Birth place (ID)
module.dptbase.viaf.identifier.gnd = Identifier GND
module.dptbase.viaf.identifier.label = Identifier
module.dptbase.viaf.identifier.lcnaf = Identifier LCNAF
......@@ -55,7 +47,9 @@ module.dptbase.viaf.page.error.gndimport.text = You got an error while GND
module.dptbase.viaf.page.error.gndimport.title = Error in GND data import
module.dptbase.viaf.page.error.locimport.text = You got an error while LoC data import. Please check the number and the connection to the LoC.
module.dptbase.viaf.page.error.locimport.title = Error in LoC data import
module.dptbase.viaf.preferredName.fullname = full name
module.dptbase.viaf.preferredName.label = Name (*)
module.dptbase.viaf.preferredName.title = title
module.dptbase.viaf.preferredName.validate = The input of the name is required!
module.dptbase.viaf.profession.label = Profession
module.dptbase.viaf.profession.view = Professions
......@@ -65,9 +59,19 @@ module.dptbase.viaf.search.complex.label = Search in authority files
module.dptbase.viaf.search.id.labels = Identification number
module.dptbase.viaf.search.name.labels = Name
module.dptbase.viaf.search.place.labels = Places
module.dptbase.viaf.secondDate.from = from
module.dptbase.viaf.secondDate.label = Date of death
module.dptbase.viaf.secondDate.text = text
module.dptbase.viaf.secondDate.to = to
module.dptbase.viaf.secondPlace.in = in
module.dptbase.viaf.secondPlace.label = Place of death
module.dptbase.viaf.secondPlace.notfound = Reference not found!
module.dptbase.viaf.secondPlaceIdentifier.label = Death place (ID)
module.dptbase.viaf.source.gnd = GND record of the Deutschen Nationalbibliothek
module.dptbase.viaf.source.lcnaf = LCNAF record of Library of Congress Name Authority File
module.dptbase.viaf.source.local = local record
module.dptbase.viaf.source.title = Original source
module.dptbase.viaf.variantName.fullname = full name
module.dptbase.viaf.variantName.label = Alternative names
module.dptbase.viaf.variantName.title = title
module.dptbase.viaf.variantName.view = Alternative names
<field name="viafname" type="name" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.preferredName/preferredName | /mycoreobject/metadata/def.variantName/variantName" value="text()" sortable="true" />
xpath="/mycoreobject/metadata/def.preferredName/preferredName/fullname | /mycoreobject/metadata/def.variantName/variantName/fullname" value="text()" sortable="true" />
<field name="viafrecordtype" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.recordType/recordType" value="text()" />
......@@ -19,25 +19,25 @@
<field name="viafidentifier" type="identifier" source="objectMetadata" objects="viaf" value="text()"
xpath="/mycoreobject/metadata/def.identifier/identifier" sortable="true" />
<field name="viafbirthv" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.birthDate/birthDate[position()=1]" value="normalize-space(ivon)"/>
<field name="viafbirthb" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.birthDate/birthDate[position()=1]" value="normalize-space(ibis)"/>
<field name="viaffirstv" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.firstDate/firstDate[position()=1]" value="normalize-space(ivon)"/>
<field name="viaffirstb" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.firstDate/firstDate[position()=1]" value="normalize-space(ibis)"/>
<field name="viafbirthplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.birthPlace/birthPlace" value="text()" sortable="true" />
<field name="viaffirstplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.firstPlace/firstPlace" value="text()" sortable="true" />
<field name="viafdeathv" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.deathDate/deathDate[position()=1]" value="normalize-space(ivon)"/>
<field name="viafdeathb" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.deathDate/deathDate[position()=1]" value="normalize-space(ibis)"/>
<field name="viafsecondv" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.secondDate/secondDate[position()=1]" value="normalize-space(ivon)"/>
<field name="viafsecondb" type="integer" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.secondDate/secondDate[position()=1]" value="normalize-space(ibis)"/>
<field name="viafdeathplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.deathPlace/deathPlace" value="text()" sortable="true" />
<field name="viafsecondplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.secondPlace/secondPlace" value="text()" sortable="true" />
<field name="viafactivityplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.areaOfActivity/areaOfActivity" value="text()" sortable="true" />
<field name="viafplace" type="text" source="objectMetadata" objects="viaf"
xpath="/mycoreobject/metadata/def.areaOfActivity/areaOfActivity | /mycoreobject/metadata/def.birthPlace/birthPlace | /mycoreobject/metadata/def.deathPlace/deathPlace" value="text()" sortable="true" />
xpath="/mycoreobject/metadata/def.areaOfActivity/areaOfActivity | /mycoreobject/metadata/def.firstPlace/firstPlace | /mycoreobject/metadata/def.secondPlace/secondPlace" value="text()" sortable="true" />
\ No newline at end of file
......@@ -21,25 +21,29 @@
<xsl:copy-of select="structure"/>
<metadata>
<!-- preferred name -->
<def.preferredName class="MCRMetaLangText" heritable="false" notinherit="true">
<def.preferredName class="MCRMetaPersonName" heritable="false" notinherit="true">
<xsl:for-each select="metadata/def.gndxml/gndxml/rdf:Description/gnd:preferredNameForThePerson">
<preferredName inherited="0">
<xsl:attribute name="xml:lang">
<xsl:value-of select="@xml:lang"/>
</xsl:attribute>
<xsl:value-of select="text()"/>
<fullname>
<xsl:value-of select="text()"/>
</fullname>
</preferredName>
</xsl:for-each>