Skip to content

Commit

Permalink
detect no results digibib7
Browse files Browse the repository at this point in the history
  • Loading branch information
benibela committed May 4, 2024
1 parent 6ffbfd1 commit c8ab836
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions data/libraries/search/templates/digibib7/template
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
<action id="search-next-page">
<if test="contains($next-page, '/list/data')">
<s>
$search-next-page-available := false(),
$next-page-html := (),


$eventStreamText := unparsed-text($next-page),
let $eventStream := x:lines($eventStreamText)
for tumbling window $w in $eventStream start when true end $line when $line eq ""
Expand All @@ -54,8 +58,10 @@
(:todo multiple libraries:)
)
</s>
<page data="{$next-page-html}" pattern-href="search"/>
<page data="{$footer-html}" pattern-href="search-pagination"/>
<if test="exists($next-page-html)">
<page data="{$next-page-html}" pattern-href="search"/>
<page data="{$footer-html}" pattern-href="search-pagination"/>
</if>
</if>
<else>
<page url="{$next-page}"/>
Expand Down

0 comments on commit c8ab836

Please sign in to comment.