Commit 556f0d2d authored by jerome's avatar jerome
Browse files

entityfield for documents

parent 0cfc695a
......@@ -4,7 +4,7 @@
# command: clone https://github.com/subugoe/solr-importer
build-all:
image: gradle:4.10
image: gradle:4.4.1
script:
- gradle
services:
......
......@@ -5,8 +5,8 @@ allprojects {
repositories {
mavenCentral()
maven {
// necessary for a transitive dependency of Solr libraries
url 'https://repo.boundlessgeo.com/main/'
// necessary for a transitive dependency of Solr libraries old url 'https://repo.boundlessgeo.com/main/'
url 'https://maven.restlet.talend.com/'
}
}
apply plugin: 'java'
......
......@@ -103,6 +103,18 @@ Refer to comments in the code to understand the used algorithm.
<xsl:apply-templates select="doc($uri_path)/marc:record" />
</xsl:when>
</xsl:choose>
<xsl:choose>
<xsl:when test="//text/@xml:id">
<field name ="entity_documents">
<xsl:value-of select="//text/@xml:id"/>
</field>
</xsl:when>
<xsl:otherwise>
<field name ="entity_documents">
<xsl:value-of select="substring-after(substring-before(document-uri(/), '.xml'), 'Lit_Bearbeitung/')" /> <!--dirty solution not safe with other dirs-->
</field>
</xsl:otherwise>
</xsl:choose>
</doc>
</xsl:if>
</xsl:template>
......
......@@ -63,6 +63,7 @@
<field name="east_cordinate" type="string" multiValued="true"/>
<field name="north_cordinate" type="string" multiValued="true"/>
<field name="south_cordinate" type="string" multiValued="true"/>
<field name="entity_documents" type="string" multiValued="true"/>
<!-- for doctype 'literature' -->
<field name="uri" type="string" multiValued="true"/>
......
#Written by CorePropertiesLocator
#Mon Mar 16 08:05:29 UTC 2020
#Wed Apr 15 14:47:58 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
......
#Written by CorePropertiesLocator
#Mon Mar 16 08:05:29 UTC 2020
#Wed Apr 15 14:47:58 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
......
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