From f9c27e1ea92692582a9a957404c6a34d5f80ad2e Mon Sep 17 00:00:00 2001 From: David Maus <maus@hab.de> Date: Mon, 16 Oct 2017 10:48:55 +0200 Subject: [PATCH] =?UTF-8?q?Repertorium:=20Ungef=C3=A4hre=20Datumsangaben?= =?UTF-8?q?=20indexieren?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/xproc/repertorium/solr.xsl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/xproc/repertorium/solr.xsl b/resources/xproc/repertorium/solr.xsl index e9210219..5fe7e9e4 100644 --- a/resources/xproc/repertorium/solr.xsl +++ b/resources/xproc/repertorium/solr.xsl @@ -15,8 +15,8 @@ <xsl:copy-of select="fun:field('title', 1.0, //tei:title[ancestor::tei:msDesc])"/> <xsl:copy-of select="fun:field('title', 1.0, //tei:rubric)"/> <xsl:copy-of select="fun:field('identifier', 1.0, //tei:idno[ancestor::tei:msDesc])"/> - <xsl:copy-of select="fun:field('date_min', 1.0, substring((//tei:origDate/@from, //tei:origDate/@not-before)[1], 1, 4))"/> - <xsl:copy-of select="fun:field('date_max', 1.0, substring((//tei:origDate/@to, //tei:origDate/@not-after)[1], 1, 4))"/> + <xsl:copy-of select="fun:field('date_min', 1.0, substring((//tei:origDate/@from, //tei:origDate/@notBefore)[1], 1, 4))"/> + <xsl:copy-of select="fun:field('date_max', 1.0, substring((//tei:origDate/@to, //tei:origDate/@notAfter)[1], 1, 4))"/> <xsl:if test="//tei:origDate/@when"> <xsl:copy-of select="fun:field('date_min', 1.0, substring(//tei:origDate/@when, 1, 4))"/> <xsl:copy-of select="fun:field('date_max', 1.0, substring(//tei:origDate/@when, 1, 4))"/> @@ -35,7 +35,7 @@ <xsl:copy-of select="fun:field('genre', 1.0, document(//tei:msItem/@class)/tei:catDesc/tei:term)"/> <xsl:copy-of select="fun:field('language', 1.0, fun:language(//tei:textLang/@mainLang))"/> - <xsl:copy-of select="fun:field('origdate_pivot', 1.0, fun:century((//tei:origDate/@when, //tei:origDate/@from, //tei:origDate/@not-before, //tei:origDate/@not-after)[1]))"/> + <xsl:copy-of select="fun:field('origdate_pivot', 1.0, fun:century((//tei:origDate/@when, //tei:origDate/@from, //tei:origDate/@notBefore, //tei:origDate/@after, //tei:origDate/@notAfter, //tei:origDate/@before)[1]))"/> <xsl:copy-of select="fun:field('coverage_pivot', 1.0, fun:century((//tei:date[@type = 'coverage']/@when, //tei:date[@type = 'coverage']/@from)[1]))"/> <xsl:copy-of select="fun:field('collection_pivot', 1.0, //tei:collection)"/> -- GitLab