Skip to content

Commit

Permalink
Obvie
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Oct 5, 2023
1 parent 3af5845 commit f975e6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/alix/lucene/search/FieldInt.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public FieldInt(final Alix alix, final String name) throws IOException
this.reader = reader;
FieldInfos fieldInfos = FieldInfos.getMergedFieldInfos(reader);
FieldInfo info = fieldInfos.fieldInfo(name);
if (info == null) {
throw new IllegalArgumentException("Field \"" + name + "\" not found in this lucene base.");
}
// check infos
if (info.getDocValuesType() == DocValuesType.NUMERIC)
; // OK
Expand Down
3 changes: 3 additions & 0 deletions java/alix/xml/tei_common.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ Gobal TEI parameters and variables are divided in different categories
<xsl:when test="/*/tei:teiHeader/tei:profileDesc/tei:creation/tei:date[concat(.,@when,@notBefore,@notAfter,@from,@to)!='']">
<xsl:apply-templates mode="year" select="/*/tei:teiHeader/tei:profileDesc/tei:creation[1]/tei:date[1]"/>
</xsl:when>
<xsl:when test="/*/tei:teiHeader/tei:profileDesc/tei:correspDesc/tei:correspAction/tei:date">
<xsl:apply-templates mode="year" select="(/*/tei:teiHeader/tei:profileDesc/tei:correspDesc/tei:correspAction/tei:date)[1]"/>
</xsl:when>
<xsl:when test="/*/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:biblFull/tei:publicationStmt/tei:date">
<xsl:apply-templates mode="year" select="/*/tei:teiHeader/tei:fileDesc/tei:sourceDesc/tei:biblFull[1]/tei:publicationStmt[1]/tei:date[1]"/>
</xsl:when>
Expand Down

0 comments on commit f975e6e

Please sign in to comment.