Commit 36f83ffd authored by bettin5's avatar bettin5
Browse files

gfl-99/image-uris in separaet solr-fiedls

parent 24957871
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd">
<bean id="sleep" class="sub.ent.api.ImporterStepSleep" />
<bean id="convert" class="sub.gfl.api.ImporterStepConvert" />
<bean id="upload" class="sub.ent.api.ImporterStepUpload" />
<bean id="coreSwap" class="sub.ent.api.ImporterStepCoreSwap" />
<bean id="sleep" class="sub.ent.api.ImporterStepSleep"/>
<bean id="convert" class="sub.gfl.api.ImporterStepConvert"/>
<bean id="upload" class="sub.ent.api.ImporterStepUpload"/>
<bean id="coreSwap" class="sub.ent.api.ImporterStepCoreSwap"/>
<bean id="importer" class="sub.ent.backend.Importer">
<property name="steps">
<list>
<ref bean="convert" />
<ref bean="upload" />
<ref bean="coreSwap" />
<ref bean="convert"/>
<ref bean="upload"/>
<ref bean="coreSwap"/>
</list>
</property>
</bean>
<bean id="config" class="sub.ent.config.ConfigStrings">
<property name="description" value="GFL-Datenimport aus Git" />
<property name="projectName" value="GFL" />
<property name="description" value="GFL-Datenimport aus Git"/>
<property name="projectName" value="GFL"/>
</bean>
</beans>
\ No newline at end of file
</beans>
......@@ -64,13 +64,15 @@ Refer to comments in the code to understand the used algorithm.
<xsl:template match="TEI">
<add>
<doc>
<xsl:apply-templates select="teiHeader | text" />
<xsl:apply-templates select="teiHeader| text" />
<xsl:for-each select="distinct-values(//@xml:lang)">
<field name="language">
<xsl:value-of select="." />
</field>
</xsl:for-each>
<xsl:apply-templates select="facsimile" />
</doc>
<xsl:apply-templates select="text" mode="page_splitting" />
</add>
</xsl:template>
......@@ -183,6 +185,16 @@ Refer to comments in the code to understand the used algorithm.
<!--################### text/body ##########################-->
<xsl:template match="facsimile">
<field name="page_ids">
<xsl:value-of select="./graphic/@xml:id"/>
</field>
<field name="page_images">
<xsl:value-of select="./graphic/@url"/>
</field>
</xsl:template>
<xsl:template match="text">
<field name="id">
......@@ -316,6 +328,11 @@ Refer to comments in the code to understand the used algorithm.
<xsl:value-of select="." />
</field>
</xsl:for-each>
<xsl:if test="./@facs">
<field name="page_ids"> <!-- TODO with out if generate empty field ?!? -->
<xsl:value-of select="./@facs"/>
</field>
</xsl:if>
</doc>
</xsl:if>
</xsl:for-each-group>
......
#Written by CorePropertiesLocator
#Thu Aug 16 14:15:30 UTC 2018
#Tue Feb 11 13:24:19 UTC 2020
schema=schema.xml
dataDir=data
name=gfl
......
#Written by CorePropertiesLocator
#Thu Aug 16 14:15:30 UTC 2018
#Tue Feb 11 13:24:19 UTC 2020
schema=schema.xml
dataDir=data
name=gfloffline
......
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