Skip to content

Commit

Permalink
Small fix to resolve #297
Browse files Browse the repository at this point in the history
  • Loading branch information
joeytakeda committed Apr 23, 2024
1 parent 5725aca commit 6e614df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xsl/json.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,8 @@
</xd:doc>
<xsl:function name="hcmc:getTotalTermsInDoc" as="xs:integer" new-each-time="no">
<xsl:param name="docUri" as="xs:string"/>
<xsl:variable name="thisDoc" select="$tokenizedDocs[document-uri(.) = $docUri]" as="document-node()"/>
<xsl:message select="$docUri"/>
<xsl:variable name="thisDoc" select="$tokenizedDocs[base-uri(.) = $docUri]" as="document-node()"/>
<xsl:variable name="thisDocSpans" select="$thisDoc//span[@ss-stem]" as="element(span)*"/>
<!--We tokenize these since there can be multiple stems for a given span-->
<xsl:variable name="thisDocStems" select="for $span in $thisDocSpans return tokenize($span/@ss-stem,'\s+')" as="xs:string+"/>
Expand Down
1 change: 1 addition & 0 deletions xsl/makeSearchPage.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@
data-allowwildcards="{if ($wildcardSearch) then 'yes' else 'no'}"
data-minwordlength="{if ($minWordLength) then $minWordLength else '3'}"
data-maxkwicstoshow="{if ($maxKwicsToShow) then $maxKwicsToShow else 10}"
data-scoringalgorithm="{if ($scoringAlgorithm) then $scoringAlgorithm else 'raw'}"
data-resultsperpage="{$resultsPerPage}"
onsubmit="return false;"
data-versionstring="{$versionString}"
Expand Down

0 comments on commit 6e614df

Please sign in to comment.