Skip to content

Commit

Permalink
MIR-1338 fixed missing url encoding in solr query (#1033)
Browse files Browse the repository at this point in the history
  • Loading branch information
golsch authored Jul 31, 2024
1 parent a093c06 commit 9299a9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
</xsl:for-each>
</xsl:if>
<xsl:variable name="hitsPrecending"
select="document(concat('solr:q=',encoder:encode(concat('mods.relatedItem.preceding:', mycoreobject/@ID)), '&amp;rows=1000&amp;sort=mods.dateIssued desc,mods.dateIssued.host desc,mods.title.main desc&amp;group=true&amp;group.limit=100&amp;group.field=mods.yearIssued'))/response/lst[@name='grouped']/lst[@name='mods.yearIssued']" />
select="document(concat('solr:q=',encoder:encode(concat('mods.relatedItem.preceding:', mycoreobject/@ID)), '&amp;rows=1000&amp;sort=mods.dateIssued%20desc,mods.dateIssued.host%20desc,mods.title.main%20desc&amp;group=true&amp;group.limit=100&amp;group.field=mods.yearIssued'))/response/lst[@name='grouped']/lst[@name='mods.yearIssued']" />
<xsl:if test="$hitsPrecending/int[@name='matches'] &gt; 0">
<xsl:call-template name="listRelatedItems">
<xsl:with-param name="hits" select="$hitsPrecending" />
Expand Down

0 comments on commit 9299a9c

Please sign in to comment.