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

add link

parent d2748ccb
......@@ -488,6 +488,42 @@
</td>
</tr>
<tr>
<td class="dpt_editor_name-ltr">
<label for="link">
<xed:output i18n="module.dptbase.viaf.link.label"/>
</label>
</td>
<td class="dpt_editor_value-ltr">
<p>
<xed:bind xpath="def.link[@class='MCRMetaLink']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="link">
<xed:bind xpath="@xlink:type" default="locator"/>
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:controls>append remove up down</xed:controls>
</p>
<p>
<xed:bind xpath="@xlink:title">
<input type="text" class="dpt_editor_inputfield" id="link" maxlength="512"/>
<xed:output i18n="module.dptbase.viaf.link.title"/>
</xed:bind>
</p>
<br/>
<p>
<xed:bind xpath="@xlink:href">
<input type="text" class="dpt_editor_inputfield" id="link" maxlength="512"/>
<xed:output i18n="module.dptbase.viaf.link.url"/>
</xed:bind>
</p>
</xed:repeat>
</xed:bind>
</p>
</td>
</tr>
<tr>
<td class="dpt_editor_name-ltr">
<label for="note">
......@@ -560,8 +596,8 @@
<button type="submit" class="dpt_editor_button dpt_editor_button_default" xed:target="cancel">
<xed:output i18n="module.dptbase.common.editor.button.cancel"/>
</button>
<!-- <button type="submit" class="dpt_editor_button dpt_editor_button_default" xed:target="debug"> <xed:output
i18n="module.dptbase.common.editor.button.debug"/> </button> -->
<button type="submit" class="dpt_editor_button dpt_editor_button_default" xed:target="debug"> <xed:output
i18n="module.dptbase.common.editor.button.debug"/> </button>
</div>
</td>
</tr>
......
......@@ -501,6 +501,42 @@
</td>
</tr>
<tr>
<td class="dpt_editor_name-rtl">
<label for="link">
<xed:output i18n="module.dptbase.viaf.link.label"/>
</label>
</td>
<td class="dpt_editor_value-rtl">
<p>
<xed:bind xpath="def.link[@class='MCRMetaLink']">
<xed:bind xpath="@notinherit" default="true"/>
<xed:bind xpath="@heritable" default="false"/>
<xed:repeat xpath="link">
<xed:bind xpath="@xlink:type" default="locator"/>
<xed:bind xpath="@inherited" default="0"/>
<p>
<xed:controls>append remove up down</xed:controls>
</p>
<p>
<xed:bind xpath="@xlink:title">
<input type="text" class="dpt_editor_inputfield" id="link" maxlength="512"/>
<xed:output i18n="module.dptbase.viaf.link.title"/>
</xed:bind>
</p>
<br/>
<p>
<xed:bind xpath="@xlink:href">
<input type="text" class="dpt_editor_inputfield" id="link" maxlength="512"/>
<xed:output i18n="module.dptbase.viaf.link.url"/>
</xed:bind>
</p>
</xed:repeat>
</xed:bind>
</p>
</td>
</tr>
<tr>
<td class="dpt_editor_name-rtl">
<label for="note">
......
<?xml version="1.0" encoding="UTF-8"?>
<mycoreclass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="MCRClassification.xsd"
ID="viafConfessionType">
<label xml:lang="de" text="record source location"/>
<label xml:lang="de" text="Konfession"/>
<label xml:lang="en" text="Confession"/>
<label xml:lang="ar" text="طائفة"/>
<categories>
<category ID="unknown">
<label xml:lang="de" text="unbekannt"/>
<label xml:lang="en" text="unknown"/>
<label xml:lang="ar" text="مجهول"/>
</category>
<category ID="christian">
<label xml:lang="de" text="christlich"/>
<label xml:lang="de" text="Christ"/>
<label xml:lang="en" text="Christian"/>
<label xml:lang="ar" text="مسيحي"/>
<category ID="maronit">
<label xml:lang="de" text="Maronit"/>
<label xml:lang="en" text="Maronite"/>
<label xml:lang="ar" text="ماروني"/>
</category>
<category ID="greek">
<label xml:lang="de" text="Griechisch-Orthodox"/>
<label xml:lang="en" text="Greek-Orthodox"/>
<label xml:lang="ar" text="روم أورثودكس"/>
</category>
<category ID="melkit">
<label xml:lang="de" text="Melkit"/>
<label xml:lang="en" text="Melkite"/>
<label xml:lang="ar" text="ملكي"/>
</category>
<category ID="protestant">
<label xml:lang="de" text="Protestant"/>
<label xml:lang="en" text="Protestant"/>
<label xml:lang="ar" text="بروتستانت"/>
</category>
<category ID="catholic">
<label xml:lang="de" text="katholisch"/>
<label xml:lang="de" text="Katholik"/>
<label xml:lang="en" text="Catholic"/>
<label xml:lang="ar" text="كاثوليك"/>
</category>
<category ID="coptic">
<label xml:lang="de" text="Kopte"/>
<label xml:lang="en" text="Copt"/>
<label xml:lang="ar" text="قبطي"/>
</category>
</category>
<category ID="islamic">
<label xml:lang="de" text="islamisch"/>
<label xml:lang="en" text="Islamic"/>
<label xml:lang="de" text="Muslim"/>
<label xml:lang="en" text="Muslim"/>
<label xml:lang="ar" text="مسلم"/>
<category ID="sunnite">
<label xml:lang="de" text="sunnitisch"/>
<label xml:lang="en" text="Sunnite"/>
<label xml:lang="de" text="Sunnit"/>
<label xml:lang="en" text="Sunni"/>
<label xml:lang="ar" text="سني"/>
</category>
<category ID="shiitic">
<label xml:lang="de" text="schiitisch"/>
<label xml:lang="en" text="Shiitic"/>
<label xml:lang="de" text="Schiit"/>
<label xml:lang="en" text="Shiite"/>
<label xml:lang="ar" text="شيعي"/>
</category>
<category ID="druze">
<label xml:lang="de" text="Druse"/>
<label xml:lang="en" text="Druze"/>
<label xml:lang="ar" text="درزي"/>
</category>
</category>
<category ID="jew">
<label xml:lang="de" text="Jude"/>
<label xml:lang="en" text="Jew"/>
<label xml:lang="ar" text="يهودي"/>
<category ID="rabbinic">
<label xml:lang="de" text="Rabbinisch"/>
<label xml:lang="en" text="Rabbinic"/>
<label xml:lang="ar" text="رباني"/>
</category>
<category ID="karaite">
<label xml:lang="de" text="Karäer"/>
<label xml:lang="en" text="Karaite"/>
<label xml:lang="ar" text="قرائي"/>
</category>
<category ID="samaritan">
<label xml:lang="de" text="Samaritaner"/>
<label xml:lang="en" text="Samaritan"/>
<label xml:lang="ar" text="سامري"/>
</category>
</category>
</categories>
......
#Generated by ResourceBundle Editor (http://eclipse-rbe.sourceforge.net)
#Generated by ResourceBundle Editor (http://essiembre.github.io/eclipse-rbe/)
indexpage.sub.introtext = \u064A\u0645\u0643\u0646 \u0627\u062E\u062A\u064A\u0627\u0631 \u0625\u062D\u0627\u0644\u0629 \u0627\u0644\u0623\u0634\u062E\u0627\u0635 \u0645\u0646 \u062E\u0644\u0627\u0644 \u0627\u0644\u0642\u0627\u0626\u0645\u0629.
......@@ -20,10 +19,10 @@ module.dptbase.viaf.firstPlace.in = \u0641\u064A
module.dptbase.viaf.firstPlace.label = \u0645\u0643\u0627\u0646 \u0627\u0644\u0625\u0632\u062F\u064A\u0627\u062F
module.dptbase.viaf.firstPlace.notfound = \u0627\u0644\u0625\u062D\u0627\u0644\u0629 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F\u0629!
module.dptbase.viaf.firstPlaceIdentifier.label = \u0645\u0643\u0627\u0646 \u0627\u0644\u0625\u0632\u062F\u064A\u0627\u062F (ID)
module.dptbase.viaf.identifier.gnd = GND
module.dptbase.viaf.identifier.gnd = \u0631\u0642\u0645 \u062A\u0639\u0631\u064A\u0641 GND
module.dptbase.viaf.identifier.label = \u0645\u0639\u0631\u0641
module.dptbase.viaf.identifier.lcnaf = LCNAF
module.dptbase.viaf.identifier.viaf = VIAF
module.dptbase.viaf.identifier.lcnaf = \u0631\u0642\u0645 \u062A\u0639\u0631\u064A\u0641 LCNAF
module.dptbase.viaf.identifier.viaf = \u0631\u0642\u0645 \u062A\u0639\u0631\u064A\u0641 VIAF
module.dptbase.viaf.identifier.view = \u0645\u0639\u0631\u0641
module.dptbase.viaf.import.gnd.button = \u0627\u0633\u062A\u064A\u0631\u0627\u062F
module.dptbase.viaf.import.gnd.placeholder = \u0625\u062F\u062E\u0627\u0644 \u0631\u0642\u0645 \u062A\u0639\u0631\u064A\u0641 GND
......@@ -58,11 +57,7 @@ module.dptbase.viaf.profession.label = \u0648\u0638\u064A\u0641\u0
module.dptbase.viaf.profession.view = \u0648\u0636\u0627\u0626\u0641
module.dptbase.viaf.professionIdentifier.label = \u0648\u0636\u064A\u0641\u0629\u00A0 (ID)
module.dptbase.viaf.professionIdentifier.view = \u0648\u0636\u0627\u0626\u0641
module.dptbase.viaf.recordType.corporation = Corporation
module.dptbase.viaf.recordType.event = Event
module.dptbase.viaf.recordType.label = \u0646\u0648\u0639 \u0627\u0644\u062A\u0633\u062C\u064A\u0644
module.dptbase.viaf.recordType.person = Person
module.dptbase.viaf.recordType.place = Place
module.dptbase.viaf.recordType.view = \u0646\u0648\u0639 \u0627\u0644\u062A\u0633\u062C\u064A\u0644
module.dptbase.viaf.search.complex.label = \u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u0645\u0644\u0641\u0627\u062A \u0627\u0644\u0625\u0633\u062A\u0646\u0627\u062F\u064A\u0629 \u0644\u0644\u0627\u0634\u062E\u0627\u0635
module.dptbase.viaf.search.id.labels = \u0631\u0642\u0645 \u0627\u0644\u062A\u0639\u0631\u064A\u0641
......@@ -84,3 +79,8 @@ module.dptbase.viaf.variantName.fullname = \u0627\u0644\u0625\u0633\u0
module.dptbase.viaf.variantName.label = \u0635\u064A\u063A \u0623\u062E\u0631\u0649 \u0644\u0644\u0625\u0633\u0645
module.dptbase.viaf.variantName.title = \u0639\u0646\u0648\u0627\u0646
module.dptbase.viaf.variantName.view = \u0635\u064A\u063A \u0623\u062E\u0631\u0649 \u0644\u0644\u0625\u0633\u0645
module.dptbase.viaf.link.help = . \u064A\u0645\u0643\u0646\u0643\u0645 \u0647\u0646\u0627 \u0625\u0636\u0627\u0641\u0629 \u0625\u0631\u062A\u0628\u0627\u0637 \u062E\u0627\u0631\u062C\u064A \u0645\u0646 \u062E\u0644\u0627\u0644 \u0625\u0639\u0637\u0627\u0626\u0643\u0645 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0648 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u0631\u062C\u0639\u064A \u0641\u064A \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A
module.dptbase.viaf.link.label = \u0627\u0644\u0631\u0627\u0628\u0637\u0629 \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629
module.dptbase.viaf.link.title = \u0627\u0644\u0639\u0646\u0648\u0627\u0646
module.dptbase.viaf.link.url = \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u0648\u0642\u0639
module.dptbase.viaf.link.view = \u0627\u0644\u0631\u0627\u0628\u0637\u0629 \u0627\u0644\u062E\u0627\u0631\u062C\u064A\u0629
......@@ -84,3 +84,8 @@ module.dptbase.viaf.gender.man = m
module.dptbase.viaf.gender.woman = weiblich
module.dptbase.viaf.confession.label = Konfession
module.dptbase.viaf.confession.view = Konfession
module.dptbase.viaf.link.help = Hier k\u00F6nnen Sie noch einen Verweis auf externe Ressourcen angeben. Dazu ist der Titel der Ressource und die URL anzugeben.
module.dptbase.viaf.link.label = Externer Link
module.dptbase.viaf.link.title = Titel
module.dptbase.viaf.link.url = URL
module.dptbase.viaf.link.view = Externer Link
......@@ -84,3 +84,8 @@ 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
module.dptbase.viaf.link.help = Here you can enter a reference to an external URL. Enter title and URL.
module.dptbase.viaf.link.label = External Link
module.dptbase.viaf.link.title = Title
module.dptbase.viaf.link.url = URL
module.dptbase.viaf.link.view = External Link
......@@ -16,9 +16,6 @@ module.dptbase.viaf.firstDate.to = sampai
module.dptbase.viaf.firstPlace.in = di
module.dptbase.viaf.firstPlace.label = Tempat kelahiran
module.dptbase.viaf.firstPlace.notfound = Tidak ada referensi1
module.dptbase.viaf.identifier.gnd = GND
module.dptbase.viaf.identifier.lcnaf = LCNAF
module.dptbase.viaf.identifier.viaf = VIAF
module.dptbase.viaf.indexpage.select = Pilihan entiti GND
module.dptbase.viaf.indexpage.sub.introtext.viaf = Select persons over this page.
module.dptbase.viaf.indexpage.title.all = Indeks
......@@ -52,3 +49,8 @@ module.dptbase.viaf.source.local = data lokal
module.dptbase.viaf.source.title = Sumber asli
module.dptbase.viaf.variantName.label = Nama-nama lain
module.dptbase.viaf.variantName.view = Nama-nama lain
module.dptbase.viaf.link.help = Di sini Anda bisa memasukkan sebuah url/link extern sebagai referensi. Isilih judul dan url!
module.dptbase.viaf.link.label = Link ekstern
module.dptbase.viaf.link.title = Judul
module.dptbase.viaf.link.url = URL
module.dptbase.viaf.link.view = Link ekstern
......@@ -93,7 +93,8 @@
<xsl:if test="@ind1 = '0' and marcxml:subfield[@code = 'a']">
<variantName inherited="0">
<xsl:attribute name="xml:lang">
<xsl:variable name="language" select="ld:detectLanguageByCharacter(marcxml:subfield[@code = 'a']/text())"/>
<xsl:variable name="language"
select="ld:detectLanguageByCharacter(marcxml:subfield[@code = 'a']/text())"/>
<xsl:choose>
<xsl:when test="$language">
<xsl:value-of select="$language"/>
......@@ -121,7 +122,8 @@
<xsl:if test="@ind1 = '1' and marcxml:subfield[@code = 'a']">
<variantName inherited="0">
<xsl:attribute name="xml:lang">
<xsl:variable name="language" select="ld:detectLanguageByCharacter(marcxml:subfield[@code = 'a']/text())"/>
<xsl:variable name="language"
select="ld:detectLanguageByCharacter(marcxml:subfield[@code = 'a']/text())"/>
<xsl:choose>
<xsl:when test="$language">
<xsl:value-of select="$language"/>
......@@ -331,26 +333,29 @@
</xsl:if>
</xsl:for-each>
<!-- profession -->
<xsl:for-each select="/marcxml:record/marcxml:datafield[@tag='550']">
<xsl:if test="marcxml:subfield[@code='i']/text() = 'Beruf'">
<xsl:if test="marcxml:subfield[@code='a']">
<def.profession class="MCRMetaLangText" heritable="false" notinherit="true">
<xsl:if
test="/marcxml:record/marcxml:datafield[@tag='550']/marcxml:subfield[@code='i']/text() = 'Beruf' and /marcxml:record/marcxml:datafield[@tag='550']/marcxml:subfield[@code='a']">
<def.profession class="MCRMetaLangText" heritable="false" notinherit="true">
<xsl:for-each select="/marcxml:record/marcxml:datafield[@tag='550']">
<xsl:if test="marcxml:subfield[@code='i']/text() = 'Beruf' and marcxml:subfield[@code='a']">
<profession inherited="0" xml:lang="de">
<xsl:value-of select="marcxml:subfield[@code='a']"/>
</profession>
</def.profession>
</xsl:if>
<xsl:for-each select="marcxml:subfield[@code='0']">
</xsl:if>
</xsl:for-each>
</def.profession>
</xsl:if>
<xsl:if test="contains(/marcxml:record/marcxml:datafield[@tag='550']/marcxml:subfield[@code='0']/text(),'DE-588')">
<def.professionIdentifier class="MCRMetaLangText" heritable="false" notinherit="true">
<xsl:for-each select="/marcxml:record/marcxml:datafield[@tag='550']/marcxml:subfield[@code='0']">
<xsl:if test="contains(text(),'DE-588')">
<def.professionIdentifier class="MCRMetaLangText" heritable="false" notinherit="true">
<professionIdentifier inherited="0" xml:lang="de">
<xsl:value-of select="substring-after(text(),')')"/>
</professionIdentifier>
</def.professionIdentifier>
<professionIdentifier inherited="0" xml:lang="de">
<xsl:value-of select="substring-after(text(),')')"/>
</professionIdentifier>
</xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:for-each>
</def.professionIdentifier>
</xsl:if>
<!-- xml of gnd as marc21 -->
<def.gndxml class="MCRMetaXML" heritable="false" notinherit="true">
<gndxml inherited="0">
......
......@@ -101,6 +101,22 @@
</xsl:template>
<xsl:template match="/mycoreobject[contains(@ID,'_viaf_')]" mode="citation" priority="1">
<xsl:if test="./metadata/def.link">
<div id="dpt_external_link_view">
<ul>
<xsl:for-each select="./metadata/def.link/link">
<li>
<a class="external" target="_blank">
<xsl:attribute name="href">
<xsl:value-of select="@xlink:href"/>
</xsl:attribute>
<xsl:value-of select="@xlink:title"/>
</a>
</li>
</xsl:for-each>
</ul>
</div>
</xsl:if>
<xsl:choose>
<xsl:when test="./metadata/def.identifier/identifier[@type='gnd']">
<xsl:variable name="gnd" select="./metadata/def.identifier/identifier[@type='gnd']"/>
......@@ -380,7 +396,7 @@ function showPNDBeaconResult(result) {
</xsl:if>
<!-- gender ***************************************************** -->
<xsl:if test="./metadata/def.gender">
<tr>
<xsl:choose>
......@@ -418,17 +434,17 @@ function showPNDBeaconResult(result) {
</tr>
</xsl:if>
<!-- SEC 04 *** Type *********************************************** -->
<!-- confession **************************************************** -->
<xsl:if test="./metadata/def.confession">
<xsl:call-template name="printValueLineClassification">
<xsl:with-param name="i18n" select="'module.dptbase.viaf.confession.view'" />
<xsl:with-param name="nodes" select="./metadata/def.confession/confession" />
<xsl:with-param name="next" select="'&lt;br /&gt;'" />
<xsl:with-param name="host" select="$objectHost" />
<xsl:with-param name="bold" select="false()" />
</xsl:call-template>
</xsl:if>
<xsl:if test="./metadata/def.confession">
<xsl:call-template name="printValueLineClassification">
<xsl:with-param name="i18n" select="'module.dptbase.viaf.confession.view'"/>
<xsl:with-param name="nodes" select="./metadata/def.confession/confession"/>
<xsl:with-param name="next" select="'&lt;br /&gt;'"/>
<xsl:with-param name="host" select="$objectHost"/>
<xsl:with-param name="bold" select="false()"/>
</xsl:call-template>
</xsl:if>
<!-- Profession data ********************************************* -->
......@@ -764,7 +780,7 @@ function showPNDBeaconResult(result) {
<xsl:param name="next"/>
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.firstDate/firstDate/text"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:template>
......@@ -777,7 +793,7 @@ function showPNDBeaconResult(result) {
<xsl:when test="$mycoreobject_node/metadata/def.firstPlace">
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.firstPlace/firstPlace"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
......@@ -788,7 +804,7 @@ function showPNDBeaconResult(result) {
<xsl:param name="next"/>
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.secondDate/secondDate/text"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:template>
......@@ -801,7 +817,7 @@ function showPNDBeaconResult(result) {
<xsl:when test="$mycoreobject_node/metadata/def.secondPlace">
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.secondPlace/secondPlace"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
......@@ -816,7 +832,7 @@ function showPNDBeaconResult(result) {
<xsl:when test="$mycoreobject_node/metadata/def.areaOfActivity">
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.areaOfActivity/areaOfActivity"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
......@@ -831,7 +847,7 @@ function showPNDBeaconResult(result) {
<xsl:when test="$mycoreobject_node/metadata/def.profession">
<xsl:call-template name="printI18N">
<xsl:with-param name="nodes" select="$mycoreobject_node/metadata/def.profession/profession"/>
<xsl:with-param name="next"/>
<xsl:with-param name="next" select="$next"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
......
......@@ -94,7 +94,7 @@
<xsl:if test="/mycoreobject/metadata/def.note/note/text()">
<xsl:copy-of select="/mycoreobject/metadata/def.note" />
</xsl:if>
<xsl:if test="/mycoreobject/metadata/def.link/link/text()">
<xsl:if test="/mycoreobject/metadata/def.link/link">
<xsl:copy-of select="/mycoreobject/metadata/def.link" />
</xsl:if>
<xsl:if test="/mycoreobject/metadata/def.gndxml">
......
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