Skip to content

Commit c8ab836

Browse files
committed
detect no results digibib7
1 parent 6ffbfd1 commit c8ab836

File tree

1 file changed

+8
-2
lines changed
  • data/libraries/search/templates/digibib7

1 file changed

+8
-2
lines changed

data/libraries/search/templates/digibib7/template

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
<action id="search-next-page">
3737
<if test="contains($next-page, '/list/data')">
3838
<s>
39+
$search-next-page-available := false(),
40+
$next-page-html := (),
41+
42+
3943
$eventStreamText := unparsed-text($next-page),
4044
let $eventStream := x:lines($eventStreamText)
4145
for tumbling window $w in $eventStream start when true end $line when $line eq ""
@@ -54,8 +58,10 @@
5458
(:todo multiple libraries:)
5559
)
5660
</s>
57-
<page data="{$next-page-html}" pattern-href="search"/>
58-
<page data="{$footer-html}" pattern-href="search-pagination"/>
61+
<if test="exists($next-page-html)">
62+
<page data="{$next-page-html}" pattern-href="search"/>
63+
<page data="{$footer-html}" pattern-href="search-pagination"/>
64+
</if>
5965
</if>
6066
<else>
6167
<page url="{$next-page}"/>

0 commit comments

Comments
 (0)